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
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
This is a duplicate of issue #1308216