Search Unity

  1. Dismiss Notice
  2. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice

Bug Unity 2020.1 crashes when loading a specific scene

Discussion in 'Editor & General Support' started by blackfox_studio, Jul 25, 2020.

  1. blackfox_studio

    blackfox_studio

    Joined:
    Apr 8, 2019
    Posts:
    40
    Stack:
    • Unity 2020.1
    • macOS Catalina 10.15.4
    I ported my project from Unity 2019.4 to 2020.1. In the project, there are 10 scenes and the editor crashes 100% of the times when loading scene 0. Loading all the other scenes doesn't create any problem.

    Here's the log:

    Code (CSharp):
    1.  
    2. UnityEngine.UIElements.UIEventRegistration:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:74)
    3. UnityEngine.UIElements.<>c:<.cctor>b__1_2(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:28)
    4. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
    5.  
    6. [./Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp line 115]
    7. (Filename: /Users/builduser/buildslave/unity/build/Modules/AssetDatabase/Editor/ScriptBindings/AssetDatabase.bindings.cs Line: 234)
    8.  
    9. Loaded scene 'Assets/_Scenes/Lobby/Lobby.unity'
    10.     Deserialize:            90.551 ms
    11.     Integration:            261.606 ms
    12.     Integration of assets:  5.098 ms
    13.     Thread Wait Time:       17.903 ms
    14.     Total Operation Time:   375.158 ms
    15. System memory in use before: 438.3 MB.
    16. System memory in use after: 439.0 MB.
    17.  
    18. Unloading 4 unused Assets to reduce memory usage. Loaded Objects now: 5474.
    19. Total: 32.649901 ms (FindLiveObjects: 0.690053 ms CreateObjectMapping: 0.188748 ms MarkObjects: 31.748189 ms  DeleteObjects: 0.022191 ms)
    20.  
    21. gi::BakeBackendSwitch: Clear() active clients.
    22. [EnlightenBakeManager] m_Clear = false;
    23. [00:00:00] Enlighten: Precompute started.
    24. Obtained 32 stack frames.
    25. #0  0x0000010d8db970 in GameObject::QueryComponentByType(Unity::Type const*) const
    26. #1  0x0000010d281c7a in UI::AddRenderersToCanvas(JobFence&, Transform const*, UI::Canvas*, int&)
    27. #2  0x0000010d282138 in UI::AddRenderersToCanvas(JobFence&, Transform const*, UI::Canvas*, int&)
    28. #3  0x0000010d282138 in UI::AddRenderersToCanvas(JobFence&, Transform const*, UI::Canvas*, int&)
    29. #4  0x0000010d281b93 in UI::Canvas::UpdateBatchOrder()
    30. #5  0x0000010d281691 in UI::Canvas::UpdateBatches(bool)
    31. #6  0x0000010d25919b in UI::CanvasManager::WillRenderCanvases()
    32. #7  0x0000010d25b939 in UI::InitializeCanvasManager()::UIEventsWillRenderCanvasesRegistrator::Forward()
    33. #8  0x0000010e108f20 in InitPlayerLoopCallbacks()::PostLateUpdatePlayerUpdateCanvasesRegistrator::Forward()
    34. #9  0x0000010e0ebb6e in ExecutePlayerLoop(NativePlayerLoopSystem*)
    35. #10 0x0000010e0ebbda in ExecutePlayerLoop(NativePlayerLoopSystem*)
    36. #11 0x0000010e0ebe7c in PlayerLoop()
    37. #12 0x0000010f5f6f12 in PlayerLoopController::UpdateScene(bool)
    38. #13 0x0000010f5e8dd7 in PlayerLoopController::UpdateSceneIfNeeded()
    39. #14 0x0000010f5e65ba in Application::TickTimer()
    40. #15 0x000001118cfd45 in -[EditorApplication TickTimer]
    41. #16 0x007fff39d663ca in __NSFireTimer
    42. #17 0x007fff3768f9b9 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
    43. #18 0x007fff3768f51f in __CFRunLoopDoTimer
    44. #19 0x007fff3768f007 in __CFRunLoopDoTimers
    45. #20 0x007fff37673daa in __CFRunLoopRun
    46. #21 0x007fff37672ffe in CFRunLoopRunSpecific
    47. #22 0x007fff362a6abd in RunCurrentEventLoopInMode
    48. #23 0x007fff362a66f4 in ReceiveNextEventCommon
    49. #24 0x007fff362a6579 in _BlockUntilNextEventMatchingListInModeWithFilter
    50. #25 0x007fff348f1c99 in _DPSNextEvent
    51. #26 0x007fff348f04e0 in -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
    52. #27 0x007fff348e21ee in -[NSApplication run]
    53. #28 0x007fff348b3ff6 in NSApplicationMain
    54. #29 0x0000011190dd37 in EditorMain(int, char const**)
    55. #30 0x0000011190ded9 in main
    56. #31 0x007fff715bbcc9 in start
    57. Launching bug reporter
    58. [Unity Package Manager (Upm)]
    59. Parent process [36994] was terminated
    60. QObject: Cannot create children for a parent that is in a different thread.
    61. (Parent is QObject(0x7fb6af073cf0), parent's thread is QThread(0x7fb6aa50b690), current thread is Thread(0x7fb6af0a3960)
    62.  
    63. )
    Seems like the problem is with Enlighten but I'm not sure how can I change it since I need to access the scene in the editor to update the settings. Maybe I can edit directly a file?
     
    Last edited: Jul 25, 2020
  2. UisceKitty

    UisceKitty

    Joined:
    Mar 28, 2013
    Posts:
    7
  3. blackfox_studio

    blackfox_studio

    Joined:
    Apr 8, 2019
    Posts:
    40