Unity Issue Tracker - Crash in audiomixerruntime.cpp when loading AudioMixer assetbundles built prior to 2021
Fixed
UUM-30040
Crash in audiomixerruntime.cpp when loading AudioMixer assetbundles built prior to 2021
Unity: Audio Authoring
Fixed
2021.3.X
Won't Fix
2023.3.X
2023.2.X
2023.1.X
This issue is only relevant for 2021.3 because the offending code was removed in 2022.X.
This issue is only relevant for 2021.3 because the offending code was removed in 2022.X.
This issue is only relevant for 2021.3 because the offending code was removed in 2022.X.
Added default initialisation of a member variable that would be garbled when loading asset bundles that were created before the variable was introduced, causing a crash from illegal memory access.
Open the repro project and play SampleScene to potentially reproduce. Also try a standalone player. The repro loads a scene bundle built in 2019 which contains an audio source and mixer with filters. The repro is not 100% reliable as it depends on uninitialized memory to crash.
Try using a locally produced build of the Editor.
The issue is that AudioMixerConstant::groupConnectionCount was added in [Internal link] but was not default initialized. If the loaded asset doesn't contain this it may end up with an undefined value.
You can force reproduce the crash by default-initializing groupConnectionCount to a high value to mock-up possible memory state.
Prioritise and Follow this issue
Have a workaround or additional info about this issue?