Search Issue Tracker
Fixed
Fixed in 2021.3.32f1, 2022.3.12f1, 2023.1.18f1, 2023.2.0b15, 2023.3.0a11
Votes
0
Found in
2020.3.34f1
2021.3.5f1
2022.2.0a17
2023.1.0a4
2023.2.0a1
Issue ID
UUM-10237
Regression
No
Resetting Audio Settings on game object which has DontDestroyOnLoad causes a crash
How to reproduce:
# Open Mobile Audio test Suite project (link in comments)
# Open MainMenu scene
# Create a new script and add this code ~AudioConfiguration audioConfig = AudioSettings.GetConfiguration();~
~audioConfig.speakerMode = AudioSpeakerMode.Mono;~
~AudioSettings.Reset(audioConfig);~ to Start() function
# Add new script to Canvas prefab in MainMenu scene
# Play MainMenu scene
# Press begin button -> it loads next scene, but Canvas game object has ~DontDestroyOnLoad(this.gameObject);~ so it stays
Actual Result: when next scene loads whole editor crashes
Expected Result: Scene Loads and audio setting are reset
Tested and reproduced on Editor and Android devices
Comments (1)
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
- PlayerPrefs get corrupted when a minimized fullscreen Player is closed through the Taskbar
- "To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations." warning is printed when JobTempMemoryLeakValidation switch is enabled
- Main Thread stalling when loading Audio Source asset asynchronously while preloading another Audio Source asset
- Material artifacts occur in the Material Preview window when baked lighting is applied to scenes
- “ArgumentOutOfRangeException” after saving, reseting and re-add Default Tile Palette Tools to the list in Preferences window
mitaywalle
Nov 01, 2023 17:12
- 2022.3.12f1
- Android build
we experience infinite freeze on AudioSettings.Reset() at scene loading time. Trying to reproduce at empty project