Unity Issue Tracker - Main Thread stalling when loading Audio Source asset asynchronously while preloading another Audio Source asset
Fixed
UUM-100966
Main Thread stalling when loading Audio Source asset asynchronously while preloading another Audio Source asset
Unity: Audio Authoring
Fixed
6.3.X
6.2.X
6.1.X
6.0.X
Won't Fix
2022.3.X
Fixed an issue that would cause the main thread to stall when loading projects/scenes.
2022.3 has reached EOL May 30 2025.
How to reproduce:
1. Open the project “IN-95467_My project”
2. Open Window → Analysis → Profiler
3. Run the build: File → Build Profiles → tick Autoconnect Profiler
4. In Build Profiles click the Build button
5. Run the Build
6. In the Profiler make sure the record button is red (recording)
7. In the running Build click the button “InitiateTest”
8. As soon as the terrain is loaded in the Build click the record button
9. Observe the CPU usage in the Profiler
Expected result: No big CPU spike, Loading.AwakeFromLoad runs without locking the main Persistant Manager
Actual result: Big CPU spike and stalling main thread with Loading.AwakeFromLoad and Loading.LockPesistentManager