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

Bug Entering play mode message freezes Unity

Discussion in 'Editor & General Support' started by NewMagic-Studio, May 15, 2023.

  1. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    432
    Hi,
    I am using 2021.3 with XR and randomly i get a message saying "Entering play mode" which lasts forever and i have to quit Unity and restart it again
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,718
    One potential cause is an infinite loop in your code.
     
  3. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    432
    No, cause it is random, most times plays fine
     
  4. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,900
    What do the logs say?
     
  5. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    432
    The last part says this. Unity is frozen a lot of times, happens with XR with Oculus Quest 2

    Registering precompiled user dll's ...
    Registered in 0.009224 seconds.
    Start importing Assets/XR/Settings/OpenXR Package Settings.asset using Guid(cf25ebd55f97f994196fa71860fb8c9b) Importer(-1,00000000000000000000000000000000) -> (artifact id: '9cebc092d931ba5cb77e4492a80cc272') in 0.007203 seconds
    Refreshing native plugins compatible for Editor in 2.34 ms, found 12 plugins.
    Preloading 0 native plugins for Editor in 0.00 ms.
    Asset Pipeline Refresh: Total: 0.172 seconds - Initiated by StopAssetImportingV2(NoUpdateAssetOptions)
    Registering precompiled user dll's ...
    Registered in 0.009366 seconds.
    Start importing Assets/Ett/FireTrainingVr/Scenes/Total_Scene.unity using Guid(43409275160fe57478de3af863bcfda0) Importer(-1,00000000000000000000000000000000) -> (artifact id: 'b25e3a61739d738e83e72a1a13da5808') in 0.000787 seconds
    Refreshing native plugins compatible for Editor in 1.96 ms, found 12 plugins.
    Preloading 0 native plugins for Editor in 0.00 ms.
    Asset Pipeline Refresh: Total: 0.190 seconds - Initiated by StopAssetImportingV2(NoUpdateAssetOptions)
    [Licensing::Client] Successfully resolved entitlements
    Asset Pipeline Refresh: Total: 0.003 seconds - Initiated by RefreshV2(NoUpdateAssetOptions)
    Reloading assemblies for play mode.
    Registering precompiled user dll's ...
    Registered in 0.008912 seconds.
    Reloading assemblies after forced synchronous recompile.
    [Licensing::Client] Successfully resolved entitlements
    Begin MonoManager ReloadAssembly