Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

AssetBundle with Animator Crash unity

Discussion in 'Editor & General Support' started by bhinjlk, Jun 24, 2015.

  1. bhinjlk

    bhinjlk

    Joined:
    Dec 15, 2014
    Posts:
    10
    I'm trying to load a scene from an Asset Bundle. In this scene there is a simple gameobject with a simple animator with its animation (By example a cube moving from left to right, then right to left repeatedly).
    I packed up this scene in an Asset Bundle and then I load it in another scene but Unity crash.

    If I delete de animator from the cube it works perfectly. how can I do this keeping the animator with his animation?
     
  2. bhinjlk

    bhinjlk

    Joined:
    Dec 15, 2014
    Posts:
    10
    Strangely with LoadLevelAdditive it works, I will have to load an empty scene and over it load additively the scene with animator.
     
  3. MarimoAli

    MarimoAli

    Joined:
    Jan 16, 2015
    Posts:
    18
    Has this been happening with 5.1 or earlier versions ?
     
  4. bhinjlk

    bhinjlk

    Joined:
    Dec 15, 2014
    Posts:
    10
    It works perfectly before 5.1 but not now :(
     
  5. mdrotar

    mdrotar

    Joined:
    Aug 26, 2013
    Posts:
    377
    I'm having the same issue when loading a scene from Asset Bundles. It does appear to have something to do with an Animator but I'm only using animators for UI buttons. I believe it has to do with Animator because if I use Visual Studio to debug the crashed application it shows the call stack which includes some calls relating to Animator. I've attached an image of the call stack. It is a pretty hard crash though. The Unity bug reporter doesn't even come up.

    It does not crash on the Android device when I deploy it. Only if I'm running it from the editor.
     

    Attached Files:

    bhinjlk likes this.
  6. mdrotar

    mdrotar

    Joined:
    Aug 26, 2013
    Posts:
    377
    @bhinjlk It sounds like you have a pretty small project that can reproduce this. Did you file a bug report for it?
     
  7. bhinjlk

    bhinjlk

    Joined:
    Dec 15, 2014
    Posts:
    10
    I'll do that
     
  8. watsonsong

    watsonsong

    Joined:
    May 13, 2015
    Posts:
    555