Search Unity

Bug 2022.1.0f1 crashing when exit play mode

Discussion in 'Editor & General Support' started by binster, May 16, 2022.

  1. binster

    binster

    Joined:
    Oct 16, 2012
    Posts:
    13
    Not sure what could be causing this - there was a warning that DoTween needed to be updated when I upgraded from 2021.3.0f1 - but this crash seems to be happening after loading the backup level after exiting play mode

    Here's what seems to be the pertinent part of the editor.log after crashing :

    Loaded scene 'Temp/__Backupscenes/4.backup'
    Deserialize: 291.300 ms
    Integration: 6328.871 ms
    Integration of assets: 15.872 ms
    Thread Wait Time: -0.006 ms
    Total Operation Time: 6636.037 ms
    [LicensingClient] Successfully resolved entitlements

    =================================================================
    Native Crash Reporting
    =================================================================
    Got a UNKNOWN while executing native code. This usually indicates
    a fatal error in the mono runtime or one of the native libraries
    used by your application.
    =================================================================

    =================================================================
    Managed Stacktrace:
    =================================================================
    =================================================================
    Received signal SIGSEGV
    Obtained 14 stack frames
    0x00007ff63c655e0f (Unity) UI::Canvas::UpdateCanvasRectTransform
    0x00007ff63c63b840 (Unity) `UI::InitializeCanvasManager'::`2'::EarlyUpdateUpdateCanvasRectTransformRegistrator::Forward
    0x00007ff63bcd25cc (Unity) ExecutePlayerLoop
    0x00007ff63bcd26a3 (Unity) ExecutePlayerLoop
    0x00007ff63bcd8430 (Unity) PlayerLoop
    0x00007ff63cc49ffe (Unity) PlayerLoopController::UpdateScene
    0x00007ff63cc3567e (Unity) PlayerLoopController::ExitPlayMode
    0x00007ff63cc44da4 (Unity) PlayerLoopController::SetIsPlaying
    0x00007ff63cc48470 (Unity) Application::TickTimer
    0x00007ff63d0ae7fa (Unity) MainMessageLoop
    0x00007ff63d0b35e4 (Unity) WinMain
    0x00007ff63e3ffc8e (Unity) __scrt_common_main_seh
    0x00007ff941677034 (KERNEL32) BaseThreadInitThunk
    0x00007ff9423a2651 (ntdll) RtlUserThreadStart
     
  2. alexiskennedy

    alexiskennedy

    Joined:
    Sep 21, 2016
    Posts:
    4
    I'm seeing something similar. I have a bug into Core Support but no fix yet.

    Obtained 12 stack frames

    0x00007ff768b15e0f (Unity) UI::Canvas::UpdateCanvasRectTransform
    0x00007ff768afb840 (Unity) `UI::InitializeCanvasManager'::`2'::EarlyUpdateUpdateCanvasRectTransformRegistrator::Forward
    0x00007ff7681925cc (Unity) ExecutePlayerLoop
    0x00007ff7681926a3 (Unity) ExecutePlayerLoop
    0x00007ff768198430 (Unity) PlayerLoop
    0x00007ff769109f6a (Unity) PlayerLoopController::UpdateScene
    0x00007ff7691081e2 (Unity) Application::TickTimer
    0x00007ff76956e7fa (Unity) MainMessageLoop
    0x00007ff7695735e4 (Unity) WinMain
    0x00007ff76a8bfc8e (Unity) __scrt_common_main_seh
    0x00007ffd32807034 (KERNEL32) BaseThreadInitThunk
    0x00007ffd32f42651 (ntdll) RtlUserThreadStart
     
  3. alexiskennedy

    alexiskennedy

    Joined:
    Sep 21, 2016
    Posts:
    4
    In my case, the crashes stopped when I removed a Canvas from a GameObject a couple of levels down the hierarchy from a ScreenOverlayCanvas. The GameObject was a prefab, which I guess might be relevant because Unity also crashed when I removed the Canvas from a prefab. There was nothing exotic I can see about the context.
     
  4. alexiskennedy

    alexiskennedy

    Joined:
    Sep 21, 2016
    Posts:
    4
    Unity support tells me this is fixed in 2022.1.4 - and I can't repro, looks fixed in that version.
     
  5. mgeorgedeveloper

    mgeorgedeveloper

    Joined:
    Jul 10, 2012
    Posts:
    324
    Unity closes with "Got a UNKNOWN while executing native code" in the log, in 2022.1.5 when entering play mode.
     
  6. mgeorgedeveloper

    mgeorgedeveloper

    Joined:
    Jul 10, 2012
    Posts:
    324
    Ignore that - it was my own code going into infinite recursion.
     
  7. RaventurnPatrick

    RaventurnPatrick

    Joined:
    Aug 9, 2011
    Posts:
    250
  8. FlyVC

    FlyVC

    Joined:
    Jan 5, 2020
    Posts:
    30
    also confirming happening in 2021.3.12f1 LTS, super annoying.

    A render texture inside a masked scroll rect caused this crash for me, it just had to be activated once, the editor still crashed even when I close all menus before. my workaround was to disable it completely when im inside the editor.
     
    Last edited: Nov 2, 2022
  9. novaVision

    novaVision

    Joined:
    Nov 9, 2014
    Posts:
    518
    Same here, crash each time on orientation change in Unity 2021.3.21