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
- NullReferenceException is thrown when pressing the "Enter" key to select an item in a ListView
- Burst internal compiler errors are thrown when creating a new 2D project
- Tile Paint action disappears from Undo History when Tile Selection tool has been used beforehand
- The pregenerated LightDefinition.cs.hlsl does not match the source LightDefinition.cs when regenerating shader includes
- Crash on GizmoDrawingPhysics2D::DrawCompositeCollider2DGizmo when opening a Scene that has corrupted GameObjects with Tilemap Components
This is a duplicate of issue #1308216