Search Issue Tracker




Found in


Issue ID




[IL2CPP] Application crashes if object with running animation is destroyed



1. Open attached project
2. Build to iOS IL2CPP
3. Project will crash on device after few seconds

Note: mono does not have this issue

Comments (17)

  1. Hephalistofene

    Sep 14, 2015 07:48

    Hi, I just ran into the same problem on 5.2.0f3.
    Editor and application crashed on destroying several gameObjects.
    Reading your comments I was able to fix it by adding two simple things. <3
    Basically i get the component Animator of the gameObject and disable it. (.enabled = false;)
    Then I added a 0.1f timer to the Destroy function, and it works.
    Hope this can help!

  2. bachirk

    Aug 02, 2015 23:02

    This is still happening with 5.1.2f1 it even crashes the Editor, not just on mobile!

  3. mjohnsonOOO

    Jul 21, 2015 21:27

    As the original bug submitter, I can say that version 5.1.1p3 (and I believe as early as 5.1.1p1) is working for us. This includes the sample project I sent to Unity to replicate the crash. If anyone here is still triggering this problem with those versions of Unity, you will likely need to submit a new sample project that triggers the issue.

  4. mechagon

    Jun 09, 2015 07:44

    My comment that it would've been fixed in 5.0.2p1 was in the forum thread and based on the fact that I couldn't reproduce it in my specific case. There was no mention about this in the change log so I guess it was just luck on my side.

    We were able to reproduce it in our case also in 5.1.0 so it means it is NOT fixed yet.

  5. nindim

    Jun 07, 2015 10:05


    I don't think this was fixed in 5.0.2p1. The bug would be marked as "Fixed" and not active if that was the case.

    Here are the reported fixes from 5.0.2p1 (notice that 694004 is not in the list)


    (674763) - iOS/IL2CPP: Implemented embedded resources for IL2CPP.
    (692742) - iOS/IL2CPP: Fixed property getter being extremely slow on IL2CPP.
    (none) - iOS: Fixed crash on A7 SoC when locking the screen.
    (687297) - iOS: Fixed Xcode project supported platforms and SDKs settings.
    (693343) - Mecanim: Fixed duplicated parameter in blend tree of blend tree
    (694616) - Plugins: Windows plugins won't be included to OSX package, when building for X86 architecture.
    (none) - VR: Added 3D splash screen to Unity Personal Edition Builds.
    (679061) - Windows Phone/Store: Fixed assembly converter crashing when a type generic class derives from a generic class which has a generic parameter that is array of generic parameters of the derived class (e. g. class Derived : MyBase<string, T[]>).

  6. 0xsven

    Jun 05, 2015 13:28

    Please ignore my comment. My issue was caused by an infinite loop happening very irregularly and showed the same symptoms as described here.

  7. haruto-otake

    Jun 04, 2015 02:00

    It's also present in 5.1.0f2.

  8. Mantas Puida

    Jun 03, 2015 14:25

    It was reported as fixed in 5.0.2p1.
    5.1 fix will come with 5.1 patch release 1.

  9. bokim

    Jun 02, 2015 16:51

    The same issue occurs in 5.1.0f2 when I try to open a different scene.

  10. bokim

    Jun 02, 2015 16:51

    The same issue occurs in 5.1.0f2 when I try to open a different scene.

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.