Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity 5.2.0f2: Editor sometimes freezes when leaving play mode

Discussion in '5.2 Beta' started by Peter77, Aug 27, 2015.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,589
    The editor sometimes freezes when leaving play mode (Windows 7). The only option to continue is to kill the Unity.exe process and restart the editor.

    Anyone else having this problem?

    PS: The editor freezes, does not crash as reported here.
     
  2. Alex-Lian

    Alex-Lian

    Guest

    Please grab a crash dump via Task Manager and submit a bug and report the # here.
     
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,589
    I'm not able to reproduce the freeze anymore. Now it also crashes every time I leave play mode, bug reported as:

    (Case 723283) 5.2: Editor crash when leaving play mode

    I guess it's a duplicate of this one, but who knows.
     
  4. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,589
    Today the editor is freezing again when leaving playmode. Submitted the following bug-report, dump attached as well.

    (Case 723639) 5.2: Editor sometimes freezes when leaving playmode
     
  5. movra

    movra

    Joined:
    Feb 16, 2013
    Posts:
    566
  6. Alex-Lian

    Alex-Lian

    Guest

    A quick look at the bug seems to be something related to logging regarding recalculating the hierarchy view. Having folk take a look.
     
  7. shawn

    shawn

    Unity Technologies

    Joined:
    Aug 4, 2007
    Posts:
    552
    Hi, we're having a difficult time reproducing this bug. So looking for any kind of information that would help give us a clue.

    One question I have, does this still happen in an empty project?
     
  8. XxPleYxX

    XxPleYxX

    Joined:
    Jul 26, 2011
    Posts:
    41
    I had the same problem and I solved it by disabling "Preferences / General / Enable Alpha Numeric Sorting". I think something is wrong with "Alphabetical Sort".

    This is the loop that cause the freeze.

     
  9. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,589
    No, I haven't noticed the issue in an empty project, but I didn't spent hours trying to reproduce it there.

    I don't do anything special to trigger the bug. I just press Play, play the game for a few seconds or minutes and press Stop.

    I can repro the bug with my project rather easily, but also not always. It requires a few tries:
    * Start Unity
    * Load Scene in editor
    * Press Play
    * Play 3 minutes
    * Press Stop
    => Editor freezing or crashing.

    The game is loading and creating game objects while it's running. I might had have "Alphabetical Sort" activated, but I'm not certain because I switch between Alphabetical and Transform-Sort back and forth as needed. I often use the "Mute Audio" option in the editor. I usually have VS 2012 open the entire time.
     
  10. shawn

    shawn

    Unity Technologies

    Joined:
    Aug 4, 2007
    Posts:
    552
    So it seems like this is a project-specific kind of bug (enabling Alpha Numeric Sorting isn't helping us reproduce it). We'll need a project that reproduces this behavior to investigate further. If anyone has one that they are willing to upload to a bug, please do so and provide a case number here.
     
  11. XxPleYxX

    XxPleYxX

    Joined:
    Jul 26, 2011
    Posts:
    41
    Case number 725519
     
    Last edited: Sep 7, 2015
  12. shawn

    shawn

    Unity Technologies

    Joined:
    Aug 4, 2007
    Posts:
    552
    Thanks! We've managed to reproduce it now. We're looking into it.
     
  13. shawn

    shawn

    Unity Technologies

    Joined:
    Aug 4, 2007
    Posts:
    552
    So we've identified the root issue. The use of DontDestroyOnLoad() along with AlphaNumeric Sorting is causing the crash. (The repro project submitted has InControl in it with DontDestroyOnLoad being used). We're still looking into the fix.
     
  14. WI_Lee

    WI_Lee

    Joined:
    Mar 14, 2015
    Posts:
    6
    Hi Shawn,

    Wondering if this could be related to a similar crash bug I reported? Case number 720757.

    Thanks.
     
  15. shawn

    shawn

    Unity Technologies

    Joined:
    Aug 4, 2007
    Posts:
    552
    Unlikely, but we're still digging into that one too.
     
  16. liang.zhao

    liang.zhao

    Unity Technologies

    Joined:
    Oct 30, 2014
    Posts:
    4
    725519 is fixed. It's a stupid mistake. Forgot to clean the sorted list, when unloading the scene.
     
  17. gekidoslair

    gekidoslair

    Joined:
    Sep 7, 2012
    Posts:
    127
    100% repro here. Submitted bug report. Will try disabling alpha sort to see if that fixes it.
     
  18. gekidoslair

    gekidoslair

    Joined:
    Sep 7, 2012
    Posts:
    127
    disabling alpha sort seems to have fixed the issue.
     
  19. nocanwin

    nocanwin

    Joined:
    May 7, 2009
    Posts:
    176
    disabling alphabetic sorting fixed the issue for me too.
     
  20. then00b

    then00b

    Joined:
    Oct 5, 2012
    Posts:
    8
    Not sure the status of this at this point but this was also happening to me and after reading the posts here, was remedied by disabling alphanumeric sorting.
     
  21. liang.zhao

    liang.zhao

    Unity Technologies

    Joined:
    Oct 30, 2014
    Posts:
    4
    The fix will be in 5.2.0 patch 1.
     
  22. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,760
  23. shawn

    shawn

    Unity Technologies

    Joined:
    Aug 4, 2007
    Posts:
    552
    This is also fixed with the same fix in 5.2.0 patch 1.
     
  24. Tomi-Tukiainen

    Tomi-Tukiainen

    Joined:
    Jun 8, 2013
    Posts:
    26
    I'm having Unity Editor 5.2.0f3 crash or freeze completely white every time after exiting play mode. Alphanumeric sorting disabled. Development environment is Mac / OS-X.

    Case# 726748