Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

(Case 1157753) [0.8.6] Editor crash when try to load same scene second time

Discussion in 'Addressables' started by optimise, May 26, 2019.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,113
    The Unity Editor will crash when trying to load the same scene second time. I does not happen at older Addressables version. The working version I believe is until around 0.6.8-preview or 0.7.4-preview. There are two error logged when you back from Game scene to Title scene. First error "Assertion failed on expression: 'm_PreventLoadingFromFile != nameSpaceID'
    UnityEngine.SceneManagement.SceneManager:Internal_SceneUnloaded(Scene)". Second error "UnloadAssetBundle failed
    UnityEngine.SceneManagement.SceneManager:Internal_SceneUnloaded(Scene)
    ".
     
  2. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    thanks for letting us know and filing a ticket! we've seen this error occasionally but have had a lot of trouble digging up a consistent reproduction.
     
    optimise likes this.
  3. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,113
    @unity_bill, it still crash at latest Addressables 1.1.3-preview with latest Unity 2019.1.7 and Unity 2018.4.2
     
    Last edited: Jun 19, 2019
  4. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,113
  5. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    thanks for the bug report. this is a huge help.
    edit: FYI, this is being looked at by another team. Seems to be a deeper issue independent of Addressables. If you don't see any movement on the ticket, feel free to post again here and I'll check it out.
     
    aurelien-morel-ubiant likes this.
  6. Samasab

    Samasab

    Joined:
    May 13, 2018
    Posts:
    13
    Got the same issue, reloading same scene crashes the game. Hope the team finds the answer soon.
     
  7. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    so, the underlying crash is an editor bug, being investigated, but we have a fix coming out this week that may provide a workaround. Once 1.1.8 (or so) is out, try again. The change in question is this:

    - Fixed issue around assets losing dependencies when unloaded then reloaded. This would manifest most often as sprites losing their texture or prefabs losing their shader/material/texture.

    which doesn't mention scenes, but could be at play here.