Thank you for submitting your inquiry.
You can track the status of your inquiry here.
You may want to save your case's ticket: 1065590_p5vr9ftohapf1apf


    (Open) Unity hangs when a native DLL uses Windows PPL (Parallel Patterns Library) for multithreading
     
     
     
    5
    Unity hangs when a native DLL uses Windows PPL (Parallel Patterns Library) for multithreading

    Unity always hangs after you make a call to a native library that uses the Windows PPL. All you have to do to test is is to run the project twice (start, stop, start). You'll notice that on the first run, the native call works and the debug line appears in the console.

    After the first run, Unity is left in a weird state where you can't close it or run the game again. Based on my research this is because Mono is looking at all the new threads and trying to close them, but failing to do so. You can see a discussion about the issue on the thread below.

    https://mbientlab.com/community/discussion/comment/6717/#Comment_6717

    I have attached a minimum repro code for a native DLL that can cause this issue. It's 5 lines of code.

    Any workarounds appreciated.


    License type: Free
     
       
      To follow up on this case, send email to bugs@unity3d.com mentioning 'Case 1065590' in the subject.
      Your Cases:
      Case Title Status Date Opened
      1065590 Unity hangs when a native DLL uses Windows PPL (Parallel Patterns Library) for multithreading Open 7/30/2018 4:20 PM