View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002580 | NoesisGUI | Unity | public | 2023-04-24 10:39 | 2023-05-29 13:33 |
| Reporter | stonstad | Assigned To | sfernandez | ||
| Priority | normal | Severity | crash | ||
| Status | resolved | Resolution | no change required | ||
| Product Version | 3.2.0 | ||||
| Target Version | 3.2.1 | Fixed in Version | 3.2.1 | ||
| Summary | 0002580: Crash reloading xaml with errors | ||||
| Description | It occurred during the XamlReload step. | ||||
| Platform | Any | ||||
| related to | 0002611 | resolved | sfernandez | Crash using singleton instance after reloading xaml |
|
Hi, I separated this issue in a new ticket to better track the different problems. This crash happened during the reload of "Assets/User Interface/ResourcesCommon.xaml", could you please attach it here and perhaps indicate what did you change to make it crash? |
|
|
I added <SolidColorBrush x:Key="SelectionBrush" Color="{StaticResource SelectionColor}"/> But in general, it does not matter what line I change. ResourcesCommon.xaml (15,366 bytes)
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:noesis="clr-namespace:NoesisGUIExtensions"
>
<!-- Font Families -->
<FontFamily x:Key="DefaultFontFamily">Fonts/#Trebuchet MS</FontFamily>
<FontFamily x:Key="HeadingFontFamily">Fonts/#Trebuchet MS</FontFamily>
<FontFamily x:Key="Trebuchet MS">Fonts/#Trebuchet MS</FontFamily>
<FontFamily x:Key="Teko">Fonts/#Teko</FontFamily>
<FontFamily x:Key="TekoLight">Fonts/#Teko Light</FontFamily>
<FontFamily x:Key="TekoMedium">Fonts/#Teko Medium</FontFamily>
<FontFamily x:Key="TekoBold">Fonts/#Teko SemiBold</FontFamily>
<FontFamily x:Key="Cascadia">Fonts/#Cascadia Code</FontFamily>
<FontFamily x:Key="Agency">Fonts/#AgencyFB</FontFamily>
<!-- Font Families for Vector Icons -->
<FontFamily x:Key="FontAwesome">Fonts/#Font Awesome 5 Pro</FontFamily>
<FontFamily x:Key="XboxFont">Fonts/#XboxOne</FontFamily>
<!-- Font Sizes -->
<sys:Single x:Key="DefaultFontSize">12</sys:Single>
<sys:Single x:Key="ContentFontSize">13</sys:Single>
<sys:Single x:Key="InputFontSize">11</sys:Single>
<sys:Single x:Key="NormalFontSize">11</sys:Single>
<sys:Single x:Key="Heading1FontSize">36</sys:Single>
<sys:Single x:Key="Heading2FontSize">24</sys:Single>
<sys:Single x:Key="Heading3FontSize">21</sys:Single>
<!--<sys:Single x:Key="Heading3FontSizeB">26</sys:Single>-->
<!-- candidate for removal -->
<sys:Single x:Key="Heading4FontSize">18</sys:Single>
<sys:Single x:Key="Heading5FontSize">15</sys:Single>
<sys:Single x:Key="Heading6FontSize">14</sys:Single>
<sys:Single x:Key="Heading7FontSize">12</sys:Single>
<!-- Font Brushes -->
<SolidColorBrush x:Key="DefaultFontBrush" Color="#FFFFFF" />
<SolidColorBrush x:Key="HeadingPrimaryFontBrush" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="HeadingSecondaryFontBrush" Color="#90FFFFFF" />
<LinearGradientBrush x:Key="OverlayBrush" EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#4CFFFFFF" Offset="0" />
<GradientStop Color="#4C000000" Offset="1" />
</LinearGradientBrush>
<!-- Brushes -->
<Color x:Key="SelectionColor">Orange</Color>
<Color x:Key="HUDTextColor">sc#1.0,0.85,0.85,0.85</Color>
<Color x:Key="HUDPrimaryColor">sc#0.6,0.3,0.3,0.3</Color>
<Color x:Key="HUDSecondaryColor">sc#0.30,0.25,0.25,0.25</Color>
<Color x:Key="HUDEmphasisColor">sc#1.0,0.8,0.8,0.8</Color>
<Color x:Key="HUDEmphasisShadowColor">sc#1.0,1.0,1.0,1.0</Color>
<SolidColorBrush x:Key="SelectionBrush" Color="{StaticResource SelectionColor}"/>
<SolidColorBrush x:Key="OverlayColor" Color="#99444444"/>
<SolidColorBrush x:Key="HUDTextBrush" Color="{StaticResource HUDTextColor}"/>
<SolidColorBrush x:Key="HUDPrimaryBrush" Color="{StaticResource HUDPrimaryColor}"/>
<SolidColorBrush x:Key="HUDSecondaryBrush" Color="{StaticResource HUDSecondaryColor}"/>
<SolidColorBrush x:Key="HUDEmphasisBrush" Color="{StaticResource HUDEmphasisColor}"/>
<!-- darker -->
<LinearGradientBrush x:Key="DividerGradientBrush" StartPoint="0,0" EndPoint="1,0" noesis:Element.PPAAMode="Disabled">
<GradientStop Color="Transparent" Offset="0" />
<GradientStop Color="#77FFFFFF" Offset="0.3" />
<GradientStop Color="#BBFFFFFF" Offset="0.5" />
<GradientStop Color="#77FFFFFF" Offset="0.3" />
<GradientStop Color="Transparent" Offset="1" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="DividerGradientBrush2" StartPoint="0,0" EndPoint="1,0" noesis:Element.PPAAMode="Disabled">
<GradientStop Color="#BBFFFFFF" Offset="0.0" />
<GradientStop Color="#BBFFFFFF" Offset="0.5" />
<GradientStop Color="#77FFFFFF" Offset="0.3" />
<GradientStop Color="Transparent" Offset="1" />
</LinearGradientBrush>
<Style TargetType="UserControl">
<Setter Property="FontFamily" Value="{StaticResource DefaultFontFamily}" />
<Setter Property="FontSize" Value="{StaticResource DefaultFontSize}" />
</Style>
<LinearGradientBrush x:Key="ControlBackgroundNormalOrange" EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFFFA700" Offset="0.482" />
<GradientStop Color="#FFFF7600" Offset="0.864" />
<GradientStop Color="#FFFFB400" Offset="0.169" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="ControlBackgroundNormalBlue" EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF99C7E2" Offset="0.14" />
<GradientStop Color="#FF87BDDD" Offset="0.375" />
<GradientStop Color="#FF4599CA" Offset="0.871" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="ControlBackgroundNormalGreen" EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFA0BB0E" Offset="0.176" />
<GradientStop Color="#FF6D9700" Offset="0.894" />
</LinearGradientBrush>
<!-- Popup Brush ("Notifications") -->
<LinearGradientBrush x:Key="PopupBackgroundBrush" EndPoint="0.5,0.968" StartPoint="0.5,0.063">
<GradientStop Color="#FF3E3E3E" Offset="0" />
<GradientStop Color="#FF2D2D2D" Offset="1" />
<GradientStop Color="#FF262626" Offset="0.519" />
</LinearGradientBrush>
<Style x:Key="HeadingBase" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource HeadingFontFamily}" />
<Setter Property="Foreground" Value="{StaticResource DefaultFontBrush}" />
<Setter Property="FontWeight" Value="Normal" />
</Style>
<!-- Text Block Styles-->
<Style x:Key="TitleText" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource Teko}" />
<Setter Property="FontWeight" Value="Light" />
<Setter Property="FontSize" Value="100" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
</Style>
<Style x:Key="StylizedHeading" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource TekoLight}" />
<Setter Property="FontSize" Value="{StaticResource Heading1FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="noesis:Text.Stroke" Value="#EE000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="4" />
</Style>
<Style x:Key="StylizedHeadingBold" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource Teko}" />
<Setter Property="FontSize" Value="34" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="noesis:Text.Stroke" Value="#EE000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="4" />
</Style>
<!-- Vector Icon Text Block Styles-->
<Style x:Key="XboxInput" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource XboxFont}" />
<Setter Property="FontSize" Value="25" />
<Setter Property="Foreground" Value="{StaticResource HeadingSecondaryFontBrush}" />
</Style>
<Style x:Key="FontAwesomeInput" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource FontAwesome}" />
<Setter Property="FontSize" Value="24" />
<Setter Property="Foreground" Value="{StaticResource HeadingSecondaryFontBrush}" />
</Style>
<!-- Text Block Styles-->
<Style x:Key="Heading1Primary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading1FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
</Style>
<Style x:Key="Heading2Primary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading2FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
</Style>
<Style x:Key="Heading2Secondary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading2FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingSecondaryFontBrush}" />
</Style>
<Style x:Key="Heading3Primary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading3FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="noesis:Text.Stroke" Value="#77000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="4" />
</Style>
<Style x:Key="Heading3PrimaryCentered" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading3FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="noesis:Text.Stroke" Value="#77000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="4" />
</Style>
<Style x:Key="Heading3PrimaryTextBox" BasedOn="{StaticResource {x:Type TextBox}}" TargetType="{x:Type TextBox}">
<!--<Setter Property="FontFamily" Value="{StaticResource HeadingFontFamily}" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="FontSize" Value="{StaticResource Heading3FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="noesis:Text.Stroke" Value="#77000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="4" />-->
</Style>
<Style x:Key="Heading3PrimaryNoStroke" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading3FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
</Style>
<Style x:Key="Heading3Secondary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading3FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingSecondaryFontBrush}" />
<Setter Property="noesis:Text.Stroke" Value="#77000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="3" />
</Style>
<Style x:Key="Heading4Primary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="FontSize" Value="{StaticResource Heading4FontSize}" />
<Setter Property="noesis:Text.Stroke" Value="#77000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="3" />
</Style>
<Style x:Key="Heading4PrimaryNoStroke" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="FontSize" Value="{StaticResource Heading4FontSize}" />
</Style>
<Style x:Key="Heading4Secondary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="{StaticResource HeadingSecondaryFontBrush}" />
<Setter Property="FontSize" Value="{StaticResource Heading4FontSize}" />
<Setter Property="noesis:Text.Stroke" Value="#77000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="3" />
</Style>
<Style x:Key="Heading5Primary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading5FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="FontWeight" Value="Normal"/>
</Style>
<Style x:Key="Heading5Secondary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading5FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingSecondaryFontBrush}" />
<Setter Property="FontWeight" Value="Normal" />
</Style>
<Style x:Key="Heading6Primary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading6FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="FontWeight" Value="Normal" />
</Style>
<Style x:Key="Heading6Secondary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading6FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingSecondaryFontBrush}" />
<Setter Property="FontWeight" Value="Normal" />
</Style>
<Style x:Key="HeaderStyleContentControl" TargetType="ContentControl">
<Setter Property="FontFamily" Value="{StaticResource Trebuchet MS}"/>
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}"/>
<Setter Property="FontSize" Value="{StaticResource Heading2FontSize}"/>
<Setter Property="FontWeight" Value="Normal" />
</Style>
<Style x:Key="HeaderStyleTextBlock" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource Trebuchet MS}"/>
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}"/>
<Setter Property="FontSize" Value="{StaticResource Heading2FontSize}"/>
<Setter Property="FontWeight" Value="Normal" />
</Style>
<Style x:Key="WindowTitle" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="27" />
<Setter Property="Foreground" Value="#111111" />
<Setter Property="FontFamily" Value="{StaticResource Teko}"/>
<!--<Setter Property="noesis:Text.Stroke" Value="#22666666" />
<Setter Property="noesis:Text.StrokeThickness" Value="2" />-->
</Style>
<Style x:Key="ShipIndicatorStyle" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="FontSize" Value="14" />
<Setter Property="Foreground" Value="#11A3CD"/>
<Setter Property="noesis:Text.Stroke" Value="#77000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="3" />
</Style>
</ResourceDictionary> |
|
|
I am able to reproduce this, moving from
to
or <Grid Working on it |
|
|
Sorry to reopen this. Should this behavior be present in 3.2.1? I just ran into it. |
|
|
I modified a color in a resources XAML file, and then on XAML reload the editor crashed. |
|
|
Could you please attach the XAML? Are you consistently reproducing this? |
|
|
Crashed while changing line 61 from# 99444444 to #55444444. ResourcesCommon-2.xaml (15,499 bytes)
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:noesis="clr-namespace:NoesisGUIExtensions"
>
<!-- Font Families -->
<FontFamily x:Key="DefaultFontFamily">Fonts/#Trebuchet MS</FontFamily>
<FontFamily x:Key="HeadingFontFamily">Fonts/#Trebuchet MS</FontFamily>
<FontFamily x:Key="Trebuchet MS">Fonts/#Trebuchet MS</FontFamily>
<FontFamily x:Key="Teko">Fonts/#Teko</FontFamily>
<FontFamily x:Key="TekoLight">Fonts/#Teko Light</FontFamily>
<FontFamily x:Key="TekoMedium">Fonts/#Teko Medium</FontFamily>
<FontFamily x:Key="TekoBold">Fonts/#Teko SemiBold</FontFamily>
<FontFamily x:Key="Cascadia">Fonts/#Cascadia Code</FontFamily>
<FontFamily x:Key="Agency">Fonts/#AgencyFB</FontFamily>
<FontFamily x:Key="Rajdhani">Fonts/#Rajdhani</FontFamily>
<!-- Font Families for Vector Icons -->
<FontFamily x:Key="FontAwesome">Fonts/#Font Awesome 5 Pro</FontFamily>
<FontFamily x:Key="XboxFont">Fonts/#XboxOne</FontFamily>
<!-- Font Sizes -->
<sys:Single x:Key="DefaultFontSize">12</sys:Single>
<sys:Single x:Key="ContentFontSize">13</sys:Single>
<sys:Single x:Key="InputFontSize">11</sys:Single>
<sys:Single x:Key="NormalFontSize">11</sys:Single>
<sys:Single x:Key="Heading1FontSize">36</sys:Single>
<sys:Single x:Key="Heading2FontSize">24</sys:Single>
<sys:Single x:Key="Heading3FontSize">21</sys:Single>
<!--<sys:Single x:Key="Heading3FontSizeB">26</sys:Single>-->
<!-- candidate for removal -->
<sys:Single x:Key="Heading4FontSize">18</sys:Single>
<sys:Single x:Key="Heading5FontSize">15</sys:Single>
<sys:Single x:Key="Heading6FontSize">14</sys:Single>
<sys:Single x:Key="Heading7FontSize">12</sys:Single>
<!-- Font Brushes -->
<SolidColorBrush x:Key="DefaultFontBrush" Color="#FFFFFF" />
<SolidColorBrush x:Key="HeadingPrimaryFontBrush" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="HeadingSecondaryFontBrush" Color="#FFAAAAAA" />
<LinearGradientBrush x:Key="OverlayBrush" EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#4CFFFFFF" Offset="0" />
<GradientStop Color="#4C000000" Offset="1" />
</LinearGradientBrush>
<!-- Brushes -->
<Color x:Key="SelectionColor">Orange</Color>
<Color x:Key="HUDTextColor">sc#1.0,0.85,0.85,0.85</Color>
<Color x:Key="HUDPrimaryColor">sc#0.6,0.3,0.3,0.3</Color>
<Color x:Key="HUDSecondaryColor">sc#0.30,0.25,0.25,0.25</Color>
<Color x:Key="HUDEmphasisColor">sc#1.0,0.8,0.8,0.8</Color>
<Color x:Key="HUDEmphasisShadowColor">sc#1.0,1.0,1.0,1.0</Color>
<SolidColorBrush x:Key="SelectionBrush" Color="{StaticResource SelectionColor}"/>
<!--<SolidColorBrush x:Key="OverlayColor" Color="#99444444"/>-->
<SolidColorBrush x:Key="OverlayColor" Color="#55444444"/>
<SolidColorBrush x:Key="HUDTextBrush" Color="{StaticResource HUDTextColor}"/>
<SolidColorBrush x:Key="HUDPrimaryBrush" Color="{StaticResource HUDPrimaryColor}"/>
<SolidColorBrush x:Key="HUDSecondaryBrush" Color="{StaticResource HUDSecondaryColor}"/>
<SolidColorBrush x:Key="HUDEmphasisBrush" Color="{StaticResource HUDEmphasisColor}"/>
<!-- darker -->
<LinearGradientBrush x:Key="DividerGradientBrush" StartPoint="0,0" EndPoint="1,0" noesis:Element.PPAAMode="Disabled">
<GradientStop Color="Transparent" Offset="0" />
<GradientStop Color="#77FFFFFF" Offset="0.3" />
<GradientStop Color="#BBFFFFFF" Offset="0.5" />
<GradientStop Color="#77FFFFFF" Offset="0.3" />
<GradientStop Color="Transparent" Offset="1" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="DividerGradientBrush2" StartPoint="0,0" EndPoint="1,0" noesis:Element.PPAAMode="Disabled">
<GradientStop Color="#BBFFFFFF" Offset="0.0" />
<GradientStop Color="#BBFFFFFF" Offset="0.5" />
<GradientStop Color="#77FFFFFF" Offset="0.3" />
<GradientStop Color="Transparent" Offset="1" />
</LinearGradientBrush>
<Style TargetType="UserControl">
<Setter Property="FontFamily" Value="{StaticResource DefaultFontFamily}" />
<Setter Property="FontSize" Value="{StaticResource DefaultFontSize}" />
</Style>
<LinearGradientBrush x:Key="ControlBackgroundNormalOrange" EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFFFA700" Offset="0.482" />
<GradientStop Color="#FFFF7600" Offset="0.864" />
<GradientStop Color="#FFFFB400" Offset="0.169" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="ControlBackgroundNormalBlue" EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF99C7E2" Offset="0.14" />
<GradientStop Color="#FF87BDDD" Offset="0.375" />
<GradientStop Color="#FF4599CA" Offset="0.871" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="ControlBackgroundNormalGreen" EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFA0BB0E" Offset="0.176" />
<GradientStop Color="#FF6D9700" Offset="0.894" />
</LinearGradientBrush>
<!-- Popup Brush ("Notifications") -->
<LinearGradientBrush x:Key="PopupBackgroundBrush" EndPoint="0.5,0.968" StartPoint="0.5,0.063">
<GradientStop Color="#FF3E3E3E" Offset="0" />
<GradientStop Color="#FF2D2D2D" Offset="1" />
<GradientStop Color="#FF262626" Offset="0.519" />
</LinearGradientBrush>
<Style x:Key="HeadingBase" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource HeadingFontFamily}" />
<Setter Property="Foreground" Value="{StaticResource DefaultFontBrush}" />
<Setter Property="FontWeight" Value="Normal" />
</Style>
<!-- Text Block Styles-->
<Style x:Key="TitleText" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource Teko}" />
<Setter Property="FontWeight" Value="Light" />
<Setter Property="FontSize" Value="100" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
</Style>
<Style x:Key="StylizedHeading" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource TekoLight}" />
<Setter Property="FontSize" Value="{StaticResource Heading1FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="noesis:Text.Stroke" Value="#EE000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="4" />
</Style>
<Style x:Key="StylizedHeadingBold" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource Teko}" />
<Setter Property="FontSize" Value="34" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="noesis:Text.Stroke" Value="#EE000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="4" />
</Style>
<!-- Vector Icon Text Block Styles-->
<Style x:Key="XboxInput" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource XboxFont}" />
<Setter Property="FontSize" Value="25" />
<Setter Property="Foreground" Value="{StaticResource HeadingSecondaryFontBrush}" />
</Style>
<Style x:Key="FontAwesomeInput" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource FontAwesome}" />
<Setter Property="FontSize" Value="24" />
<Setter Property="Foreground" Value="{StaticResource HeadingSecondaryFontBrush}" />
</Style>
<!-- Text Block Styles-->
<Style x:Key="Heading1Primary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading1FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
</Style>
<Style x:Key="Heading2Primary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading2FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
</Style>
<Style x:Key="Heading2Secondary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading2FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingSecondaryFontBrush}" />
</Style>
<Style x:Key="Heading3Primary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading3FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="noesis:Text.Stroke" Value="#77000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="4" />
</Style>
<Style x:Key="Heading3PrimaryCentered" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading3FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="noesis:Text.Stroke" Value="#77000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="4" />
</Style>
<Style x:Key="Heading3PrimaryTextBox" BasedOn="{StaticResource {x:Type TextBox}}" TargetType="{x:Type TextBox}">
<!--<Setter Property="FontFamily" Value="{StaticResource HeadingFontFamily}" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="FontSize" Value="{StaticResource Heading3FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="noesis:Text.Stroke" Value="#77000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="4" />-->
</Style>
<Style x:Key="Heading3PrimaryNoStroke" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading3FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
</Style>
<Style x:Key="Heading3Secondary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading3FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingSecondaryFontBrush}" />
<Setter Property="noesis:Text.Stroke" Value="#77000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="3" />
</Style>
<Style x:Key="Heading4Primary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="FontSize" Value="{StaticResource Heading4FontSize}" />
<Setter Property="noesis:Text.Stroke" Value="#77000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="3" />
</Style>
<Style x:Key="Heading4PrimaryNoStroke" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="FontSize" Value="{StaticResource Heading4FontSize}" />
</Style>
<Style x:Key="Heading4Secondary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="{StaticResource HeadingSecondaryFontBrush}" />
<Setter Property="FontSize" Value="{StaticResource Heading4FontSize}" />
<Setter Property="noesis:Text.Stroke" Value="#77000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="3" />
</Style>
<Style x:Key="Heading5Primary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading5FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="FontWeight" Value="Normal"/>
</Style>
<Style x:Key="Heading5Secondary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading5FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingSecondaryFontBrush}" />
<Setter Property="FontWeight" Value="Normal" />
</Style>
<Style x:Key="Heading6Primary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading6FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="FontWeight" Value="Normal" />
</Style>
<Style x:Key="Heading6Secondary" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="{StaticResource Heading6FontSize}" />
<Setter Property="Foreground" Value="{StaticResource HeadingSecondaryFontBrush}" />
<Setter Property="FontWeight" Value="Normal" />
</Style>
<Style x:Key="HeaderStyleContentControl" TargetType="ContentControl">
<Setter Property="FontFamily" Value="{StaticResource Trebuchet MS}"/>
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}"/>
<Setter Property="FontSize" Value="{StaticResource Heading2FontSize}"/>
<Setter Property="FontWeight" Value="Normal" />
</Style>
<Style x:Key="HeaderStyleTextBlock" TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="{StaticResource Trebuchet MS}"/>
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}"/>
<Setter Property="FontSize" Value="{StaticResource Heading2FontSize}"/>
<Setter Property="FontWeight" Value="Normal" />
</Style>
<Style x:Key="WindowTitle" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="27" />
<Setter Property="Foreground" Value="#111111" />
<Setter Property="FontFamily" Value="{StaticResource Teko}"/>
<!--<Setter Property="noesis:Text.Stroke" Value="#22666666" />
<Setter Property="noesis:Text.StrokeThickness" Value="2" />-->
</Style>
<Style x:Key="ShipIndicatorStyle" BasedOn="{StaticResource HeadingBase}" TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="{StaticResource HeadingPrimaryFontBrush}" />
<Setter Property="FontSize" Value="14" />
<Setter Property="Foreground" Value="#11A3CD"/>
<Setter Property="noesis:Text.Stroke" Value="#77000000" />
<Setter Property="noesis:Text.StrokeThickness" Value="3" />
</Style>
</ResourceDictionary> |
|
|
It isn't consistent but it has happened two or three times today. |
|
|
Following the callstack and the code you attached in ticket 0002579 I see this is related to the UIStateMachine which is used like a singleton. public static void FadeIn(this FrameworkElement frameworkElement, FrameworkElement parent, TimeSpan duration, Action completed = null) |
|
|
Yes, I am trying this now. |
|
|
The exception is thrown! I'm investigating the singleton behavior with UIStateMachine. I agree that it is suspect and likely related to the Unity app domain reload behavior and static initialization. |
|
|
For some reason, when I hit a breakpoint on this code Unity enters into an endless loop or crashes. For this reason, I haven't been able to debug state within the call stack. But the good news is that these defensive checks prevents Unity from crashing now, which is great. |
|
|
Even without the checks we shouldn't crash, right @Sergio? |
|
|
Crashing Unity should be considered a bug in our code, so we have to fix those crashes. |
|
|
I created ticket 0002611 to investigate this issue (which is different from the one solved in this ticket). |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2023-04-24 10:39 | sfernandez | New Issue | |
| 2023-04-24 10:40 | sfernandez | Reporter | sfernandez => stonstad |
| 2023-04-24 10:40 | sfernandez | Assigned To | => sfernandez |
| 2023-04-24 10:40 | sfernandez | Status | new => assigned |
| 2023-04-24 10:40 | sfernandez | Target Version | => 3.2.1 |
| 2023-04-24 10:40 | sfernandez | Note Added: 0008448 | |
| 2023-04-24 10:40 | sfernandez | File Added: Crash_2023-04-23_200357222.zip | |
| 2023-04-24 10:43 | sfernandez | Status | assigned => feedback |
| 2023-04-24 10:43 | sfernandez | Note Added: 0008449 | |
| 2023-04-24 18:11 | stonstad | Note Added: 0008458 | |
| 2023-04-24 18:11 | stonstad | File Added: ResourcesCommon.xaml | |
| 2023-04-24 18:11 | stonstad | Status | feedback => assigned |
| 2023-04-24 20:10 | jsantos | Assigned To | sfernandez => jsantos |
| 2023-04-24 20:11 | jsantos | Note Added: 0008460 | |
| 2023-04-24 20:11 | jsantos | Note Edited: 0008460 | |
| 2023-04-24 20:11 | jsantos | Note Edited: 0008460 | |
| 2023-04-24 20:12 | jsantos | Note Edited: 0008460 | |
| 2023-04-24 20:19 | sfernandez | Note Edited: 0008460 | |
| 2023-04-24 20:23 | sfernandez | Note Edited: 0008460 | |
| 2023-05-05 18:00 | jsantos | Status | assigned => resolved |
| 2023-05-05 18:00 | jsantos | Resolution | open => fixed |
| 2023-05-05 18:00 | jsantos | Fixed in Version | => 3.2.1 |
| 2023-05-19 18:41 | stonstad | Status | resolved => feedback |
| 2023-05-19 18:41 | stonstad | Resolution | fixed => reopened |
| 2023-05-19 18:41 | stonstad | Note Added: 0008491 | |
| 2023-05-19 18:42 | stonstad | Note Added: 0008492 | |
| 2023-05-19 18:42 | stonstad | File Added: Crash_2023-05-19_163841910.zip | |
| 2023-05-19 18:42 | stonstad | Status | feedback => assigned |
| 2023-05-19 19:46 | jsantos | Note Added: 0008494 | |
| 2023-05-19 19:46 | jsantos | Status | assigned => feedback |
| 2023-05-19 19:46 | jsantos | Assigned To | jsantos => sfernandez |
| 2023-05-19 21:46 | stonstad | Note Added: 0008497 | |
| 2023-05-19 21:46 | stonstad | File Added: ResourcesCommon-2.xaml | |
| 2023-05-19 21:46 | stonstad | Status | feedback => assigned |
| 2023-05-19 21:47 | stonstad | Note Added: 0008498 | |
| 2023-05-22 11:19 | sfernandez | Status | assigned => feedback |
| 2023-05-22 11:19 | sfernandez | Note Added: 0008499 | |
| 2023-05-26 22:05 | stonstad | Note Added: 0008513 | |
| 2023-05-26 22:05 | stonstad | Status | feedback => assigned |
| 2023-05-26 22:21 | stonstad | Note Added: 0008514 | |
| 2023-05-27 15:08 | stonstad | Note Added: 0008515 | |
| 2023-05-27 21:31 | jsantos | Note Added: 0008516 | |
| 2023-05-29 10:40 | sfernandez | Note Added: 0008517 | |
| 2023-05-29 13:32 | sfernandez | Relationship added | related to 0002611 |
| 2023-05-29 13:33 | sfernandez | Note Added: 0008518 | |
| 2023-05-29 13:33 | sfernandez | Status | assigned => resolved |
| 2023-05-29 13:33 | sfernandez | Resolution | reopened => no change required |
| 2025-10-10 13:29 | jsantos | Category | Unity3D => Unity |