Search Issue Tracker

Won't Fix

Votes

0

Found in

5.4.0f3

Issue ID

845512

Regression

No

Unity crashes when more than one queued animation is set to enabled

Animation

-

To reproduce:
1. Extract "QueuedAnimationsCrash.zip".
2. Play "Test" scene.
3. In a Game window press "Crash/errors" or "Crash/errors (with weight)"
4. You should get some state.GetEnabled() errors or a Crash. (the more times you press a button, the higher chance of crashing, but usually crashes on the first click)

Expected result: enabled animations are played.
Actual result: You get state.GetEnabled() errors or a crash.

Reproducible: 5.2.3f1, 5.3.1f1, 5.4.2f2, 5.5.0b11, 5.6.0a2

Crash happens when you try to play queued animations (Animation.PlayQueued with QueueMode.CompleteOthers),
and you set more than 1 animation "enabled = true;".

Crash call stack:

output_l
vsnprintf_l
vsnprintf
VFormat
Format
Animation::CrossFade
Animation::UpdateQueuedAnimations
Animation::UpdateAnimation
AnimationManager::Update
PlayerLoop
Application::UpdateScene
Application::UpdateSceneIfNeeded
Application::TickTimer
FindMonoBinaryToUse
WinMain
strnlen

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.