View Issue Details

IDProjectCategoryView StatusLast Update
0000787NoesisGUIUnitypublic2018-11-23 02:12
ReporterScherub Assigned Tosfernandez  
PrioritynormalSeveritycrash 
Status resolvedResolutionfixed 
Target Version2.2.0Fixed in Version2.2.0b1 
Summary0000787: Using ColorAnimation on a Brush target crashes NoesisGUI
Description

Hi, I use the following Storyboard:

[code]
<Storyboard x:Key="ShowStoryboard">
<ColorAnimation From="Transparent" To="#CC000000" Duration="0:0:0.25" Storyboard.TargetName="MainGrid" Storyboard.TargetProperty="Background" />

            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="WindowBorder" Storyboard.TargetProperty="RenderTransform.ScaleX">
                <EasingDoubleKeyFrame KeyTime="0:0:0" Value="0.0" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="1.025" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.35" Value="1.0" />
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="WindowBorder" Storyboard.TargetProperty="RenderTransform.ScaleY">
                <EasingDoubleKeyFrame KeyTime="0:0:0" Value="0.0" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="1.05" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.35" Value="1.0" />
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

[/code]

Both DoubleAnimations work without any problems but the ColorAnimation crashes NoesisGUI. I remember there was a problem with the ColorAnimation a long time ago. I don't know whether that was fixed. But the problem reported there was about using Static/DynamicResources in combination with ColorAnimation.

I'll give the ColorAnimationUsingKeyframes a try now.

I've also attached the crash dumps and various logs.

Attached Files
PlatformAny

Activities

Scherub

Scherub

2015-12-22 18:43

reporter   ~0003420

Okay, I've changed the ColorAnimation to:

[code]
<ColorAnimation From="Transparent" To="{DynamicResource DarkenBackgroundColor}" Duration="0:0:0.25" Storyboard.TargetName="MainGrid" Storyboard.TargetProperty="(Grid.Background).(SolidColorBrush.Color)" />
[/code]

and it works now, even when using a DynamicResource. :)

Anyway, it still probably shouldn't crash NoesisGUI under certain circumstances. :)

sfernandez

sfernandez

2015-12-22 19:51

manager   ~0003421

The crash occurs when using a ColorAnimtion with a target property that is not of type Color. This probably occurs with all the Animation timelines if target property doesn't match the animation type.

I changed the summary to reflect this and will fix it as soon as possible.

Issue History

Date Modified Username Field Change
2015-12-22 18:32 Scherub New Issue
2015-12-22 18:32 Scherub File Added: NoesisGUI-Dumps - 20151222.zip
2015-12-22 18:43 Scherub Note Added: 0003420
2015-12-22 19:51 sfernandez Note Added: 0003421
2015-12-22 19:51 sfernandez Status new => assigned
2015-12-22 19:51 sfernandez Summary Using ColorAnimation seems to crash NoesisGUI => Using ColorAnimation on a Brush target crashes NoesisGUI
2015-12-24 11:07 jsantos Assigned To => sfernandez
2018-11-01 02:14 jsantos View Status public => private
2018-11-21 12:58 jsantos Target Version => 2.2.0
2018-11-21 12:58 jsantos View Status private => public
2018-11-21 12:58 jsantos Platform => Any
2018-11-23 02:12 sfernandez Status assigned => resolved
2018-11-23 02:12 sfernandez Resolution open => fixed
2018-11-23 02:12 sfernandez Fixed in Version => 2.2.0b1
2025-10-10 13:29 jsantos Category Unity3D => Unity