Search Issue Tracker

Fixed in 2017.3.0f3

Fixed in 5.6.X, 2017.1.X, 2017.2.X

Votes

0

Found in

2017.1.0f3

Issue ID

930814

Regression

Yes

Crash in mono_jit_runtime_invoke when Animator instantiated from Script enters a Sub-State Machine with StateMachineBehaviour

Animation

-

How to reproduce:
1. Open the attached users project "2017AnimatorCrash" and "scene" scene
2. Enter playmode and open Animator window
3. Notice that "Spawned Animator" GameObject was instantiated, click on it
4. Notice "New State" looping, go to the Parameters section of Animator
5. Enable "DoThing" trigger to enter a Sub-State Machine

Expected result: After enabling "DoThing" trigger, Animator enters a Sub-State Machine, no crash occurs
Actual result: Crash occurs

Regression introduced in - 2017.1.0b5
Reproducible with - 2017.2.0b3, 2017.1.0f3, 2017.1.0b5
Not reproducible with - 2017.1.0b4, 5.6.2p3

Fixed in: 2017.3.0a5

Comments (1)

  1. mred-tcg

    Nov 28, 2017 17:02

    I have reproduced this or a similar issue in 5.6.3p1

    Will the fix be merged back to 5.6.x?

    ========== OUTPUTING STACK TRACE ==================

    0x00007FFD869B52FB (mono) [c:\buildslave\mono\build\mono\mini\mini.c:4737] mono_jit_compile_method
    0x00007FFD86908439 (mono) [c:\buildslave\mono\build\mono\metadata\object.c:2623] mono_runtime_invoke
    0x0000000141077A05 (Unity) scripting_method_invoke
    0x000000014106CFF1 (Unity) ScriptingInvocation::Invoke
    0x00000001408895F0 (Unity) StateMachineBehaviourPlayer::FireBehaviour
    0x000000014088977E (Unity) StateMachineBehaviourPlayer::FireStateMachineBehaviour
    0x00000001418C1FD1 (Unity) mecanim::statemachine::EvaluateSelectors
    0x00000001418C21D6 (Unity) mecanim::statemachine::EvaluateTransitions
    0x00000001418C3158 (Unity) mecanim::statemachine::EvaluateStateMachine
    0x00000001408989AE (Unity) AnimatorControllerPlayable::UpdateGraph
    0x000000014089B81D (Unity) AnimatorControllerPlayable::PrepareFrame
    0x0000000140A41D51 (Unity) Playable::PrepareFrameVisitor
    0x0000000140A42103 (Unity) RecursivePlayableTraverser::Traverse
    0x0000000140A443CB (Unity) PlayableGraph::PrepareFrame
    0x000000014148B425 (Unity) MemoryManager::StaticInitialize
    0x0000000140D4A0C3 (Unity) JobQueue::Exec
    0x0000000140D490B9 (Unity) JobQueue::Steal
    0x0000000140D49477 (Unity) JobQueue::ExecuteJobFromQueue
    0x0000000140D4A3B4 (Unity) JobQueue::ProcessJobs
    0x0000000140D4A49E (Unity) JobQueue::WorkLoop
    0x00000001411D7EBC (Unity) Thread::RunThreadWrapper
    0x00007FFDCC402774 (KERNEL32) BaseThreadInitThunk
    0x00007FFDCD3C0D51 (ntdll) RtlUserThreadStart

    ========== END OF STACKTRACE ===========

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.