View Issue Details

IDProjectCategoryView StatusLast Update
0001603NoesisGUIUnity3Dpublic2019-12-31 00:20
ReporterstonstadAssigned Tosfernandez 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.2.5 
Target Version2.2.6Fixed in Version2.2.6 
Summary0001603: Bad XAML Causes Crash on Unity Editor Start
DescriptionReferencing an unknown variable in XAML multitriggers causes crash on Assembly reload and editor start.

encl. stack dump, and log

Stack Trace of Crashed Thread 22560:
0x00007FFB02367EB6 (Noesis) DispatcherObject_GetStaticType
0x00007FFB02365BB4 (Noesis) DependencyObject_GetStaticType
0x00007FFB023665B0 (Noesis) DependencyObject_GetStaticType
0x00007FFB02375EF2 (Noesis) TriggerBase_GetStaticType
0x00007FFB0242DBA8 (Noesis) MultiTrigger_GetStaticType
0x00007FFB02481E72 (Noesis) TemplateBindingExpression_GetStaticType
...

Steps To ReproduceBad XAML. PART_Grid does not exist.

 <ControlTemplate x:Key="StandardButtonTemplate" TargetType="Button">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="35"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="35"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="70"/>
            </Grid.RowDefinitions>

            <Rectangle x:Name="PART_Image_L" Grid.Column="0" Fill="{StaticResource buttonup_l}"/>
            <Rectangle x:Name="PART_Image_M" Grid.Column="1" Fill="{StaticResource buttonup_m}"/>
            <Rectangle x:Name="PART_Image_R" Grid.Column="2" Fill="{StaticResource buttonup_r}"/>

            <ContentPresenter x:Name="PART_ContentPresenter" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="{DynamicResource _ContentPresenterMargin}" Opacity="1" RenderTransformOrigin="0.5, 0.5"/>
        </Grid>
        <ControlTemplate.Triggers>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsMouseOver" Value="False"/>
                    <Condition Property="IsFocused" Value="False"/>
                    <Condition Property="IsPressed" Value="False"/>
                </MultiTrigger.Conditions>
                <MultiTrigger.Setters>
                    <Setter TargetName="PART_Image_L" Property="Fill" Value="{StaticResource buttonup_l}"/>
                    <Setter TargetName="PART_Image_M" Property="Fill" Value="{StaticResource buttonup_m}"/>
                    <Setter TargetName="PART_Image_R" Property="Fill" Value="{StaticResource buttonup_r}"/>
                    <Setter TargetName="PART_ContentPresenter" Property="Opacity" Value="0.75"/>
                    <Setter TargetName="PART_Grid" Property="Background" Value="Red"/>
                </MultiTrigger.Setters>
            </MultiTrigger>
...

Not a blocker or issue for us.
TagsNo tags attached.
PlatformAny

Activities

stonstad

stonstad

2019-12-17 15:57

reporter  

Crashes.zip (533,822 bytes)

Issue History

Date Modified Username Field Change
2019-12-17 15:57 stonstad New Issue
2019-12-17 15:57 stonstad File Added: Crashes.zip
2019-12-17 17:45 sfernandez Assigned To => sfernandez
2019-12-17 17:45 sfernandez Status new => assigned
2019-12-17 17:45 sfernandez Target Version => 2.2.6
2019-12-31 00:20 sfernandez Status assigned => resolved
2019-12-31 00:20 sfernandez Resolution open => fixed
2019-12-31 00:20 sfernandez Fixed in Version => 2.2.6