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

Mono Upgrade Editor hangs when .NET 4.6 is used

Discussion in 'Experimental Scripting Previews' started by ZimM, Aug 22, 2017.

  1. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    After switching a pretty big project to Unity 2017.1.0p3, I've tried the new .NET 4.6 runtime and, to my surprise, everything seemed to work just fine. That is, until I've tried closing the Editor. It completely locks up, so I have to use the Task Manager to kill it. The last line in the Editor.log file is
    Code (CSharp):
    1. Cleanup mono
    Reverting back to .NET 3.5 fixes the issue, so it's clearly related to .NET 4.6 runtime somehow. I've tried to pinpoint the issue and sent a bug report with a repro project (case 944152). However, I'm really not sure what's causing the hang. The code isn't doing anything special. Any ideas for a workaround?
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,921
    Thanks for reporting this issue. I'm communicated with our QA team about it, and we will investigate it.
     
  3. goldbug

    goldbug

    Joined:
    Oct 12, 2011
    Posts:
    766
    I am affected by the same issue. Any suggestion Josh?
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,921
    According to the note in the bug report, this issue was corrected in 2017.1.1p2. Please try that version of Unity. If you're still seeing a hang, we would love another bug report. The cause might be different. Thanks!
     
  5. goldbug

    goldbug

    Joined:
    Oct 12, 2011
    Posts:
    766
    I need 2017.2

    I assume the bug is this one?
    • (958346) - Scripting: Fixed hang on exit in batch mode.
    I don't see that bug fix in the release notes of 2017.2 or any of it's patch releases. I also don't see it in 2017.2.1

    Could you confirm which patch has it for 2017.2?
     
  6. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,921
    Actually, I was looking at case 944152. It looks like this was corrected in the first 2017.2 release. So if you are still seeing a hang in 2017.2, it might be something different.
     
  7. goldbug

    goldbug

    Joined:
    Oct 12, 2011
    Posts:
    766
    @JoshPeterson Finally managed to open the bug. It took about 8 hours to upload the project, I have no idea why the bug reporting tool is so painfully slow.

    Basically I am seeing the hang when I run the unit tests from command line in unity. Please take a look at 1010892

    This bug happens with 2017.2 and 2017.3.1, It may happen with other versions. It only happens with .Net 4.6 runtime, but does not happen with .Net 3.5.
     
  8. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,921
    Thanks, we will investigate!
     
  9. joncham

    joncham

    Unity Technologies

    Joined:
    Dec 1, 2011
    Posts:
    276
  10. goldbug

    goldbug

    Joined:
    Oct 12, 2011
    Posts:
    766