Search Issue Tracker
Duplicate
Votes
3
Found in
2017.4.0f1
2018.4.0f1
2019.1.0a1
2019.1.0f2
2019.2.0a1
2019.3.0a1
Issue ID
1172919
Regression
No
Unity hangs when using winmm timers
How to reproduce:
1. Open the attached project ("case_1172919-DWM.Test2.zip")
2. Open the repro scene ("SampleScene")
3. Open the "Test.cs" script and change the path to the MIDI file at line 19 (MIDI file is located in "Assets/test.mid")
4. Enter the Play Mode
5. Notice "starting!" message in the console
6. Wait until the music stops playing and "disposed!" message appears in the console
7. Exit the Play Mode
8. Enter the Play Mode again
Expected results: Unity continues to work
Actual results: Unity freezes
Reproducible with: 2017.4.31f1, 2018.4.5f1, 2019.1.13f1, 2019.2.0f1, 2019.3.0a11
Notes:
If at first try the Play Mode was stopped while the music was still playing (before the "disposed!" message), the Editor will not freeze during the second entering to the Play Mode, but no music will be heard
Comments (1)
-
unity_etFF0NFhhcGSMQ
Jun 21, 2020 17:34
This issue happens 100% of the time for me. I have to remember to stop the running game before recompiling the code, or Unity will lock up.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Icon section shows incomplete message and unusable check box in Build Profiles and Player Settings window instead of “Not applicable for this platform” for Dedicated Server Platform
- "Editor unavailable" message is displayed when navigating to "Get set up" tab in Unity Hub
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
This is a duplicate of issue #1308216