Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug Hard crash on scene loading and unloading.

Discussion in '2023.2 Beta' started by YuriyPopov, Jul 5, 2023.

  1. YuriyPopov

    YuriyPopov

    Joined:
    Sep 5, 2017
    Posts:
    237
    And I do mean hard. Both player and editor just crash, no stack trace, no error handler. It’s also completely random. The methods in question are the async ones, loading is additive. I wish I could provide more info but I dont know how.
     
  2. SomethingElse12

    SomethingElse12

    Joined:
    Apr 4, 2022
    Posts:
    60
    Could be because of occlusion culling & too many vfx'es. Had same issue. Possibly APV's. should try disabling some of the features to find out what. From my experience could be any of the Unity features being over abused. Using async load/unload in my game too.
     
  3. YuriyPopov

    YuriyPopov

    Joined:
    Sep 5, 2017
    Posts:
    237
    Right but we dont have occlusion culling, or apv because of the procedural nature of the game. We do use the vfx graph but the effects are pooled in a different scene.
     
  4. SomethingElse12

    SomethingElse12

    Joined:
    Apr 4, 2022
    Posts:
    60
    Yes, effects even if disabled. even if the gameobjects are inactive, they still eat compute resources and there is some limit at which point it causes the crash. Worth a try disabling them at all to see if its the issue. In my case I had to chop down the vfx pools for it not to crash. Unless you are not loading that scene with vfx'es at all, then I don't have anymore suggestions. Let me know if you figure it out - worth knowing all the possible cases.