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
-
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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
This is a duplicate of issue #1308216