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. Dismiss Notice

LoadLevelAsync with Substances freeze/crash

Discussion in 'Editor & General Support' started by silentslack, Oct 28, 2016.

  1. silentslack

    silentslack

    Joined:
    Apr 5, 2013
    Posts:
    379
    Hi,

    I have an issue when I load a scene asynchronously that has a substance material applied to an object in the loading scene. The editor will freeze at this check:

    Code (CSharp):
    1.  
    2.             async.allowSceneActivation = true;
    3.  
    4.             Scene loadedScene = PE_SceneUtility.GetScene(unitySceneName);
    5.             while (loadedScene.isLoaded == false)
    6.             {
    7.                 Debug.Log("Currently waiting for load status of " + unitySceneName);
    8.                 yield return null;
    9.             }
    10.  
    11.  
    It will spit out a few logs before freezing. I'm imagining something is happening at engine level from allowSceneActivation. This only happens when a substance material exists in the loading scene and will not freeze every time. I would say about 50% of the time it freezes up.

    I have tried to recreate the bug in a smaller size project but couldn't seem to raise it, perhaps it has something to do with the amount of work required from the load?

    Anyone else seen something similar?

    Thanks
     
  2. ChromeCat

    ChromeCat

    Joined:
    Jan 27, 2016
    Posts:
    35
    I'm having exact same issue. I have a substance material inside scene, and when I'm lucky, it survives, but when I load a model which use substance material, it freezes.. Sometime not freeze I don't know why it causes.
     
  3. silentslack

    silentslack

    Joined:
    Apr 5, 2013
    Posts:
    379
    Yep I still have this issue :(

    I can't play a particular scene from the editor as it's hit and miss whether Unity will decide to freeze up or not. If I have it already loaded in the hierarchy on play it is fine but my whole game built upon level streaming. Very frustrating.
     
  4. Twil75

    Twil75

    Joined:
    Aug 30, 2012
    Posts:
    22
    Same problem for me :(
    Need remove substance material :(