Not signed in
Copyright © 2026 Unity Technologies
Added lazy initialisation of a data structure that previously might be uninitialised in very rare cases when calling AudioMixer.SetFloat.
Added lazy initialisation of a data structure that previously might be uninitialised in very rare cases when calling AudioMixer.SetFloat.
Added lazy initialisation of data structure that previously might be uninitialised in very rare cases when calling AudioMixer.SetFloat.
As this is marked as a 2022.2 regression, a 2021.3 port is not relevant.
Reproduction steps:
1. Open the attached project “CrashRepro”
2. Open the “SpiritWorldMap” Scene
3. Enter the Play Mode
Expected result: The Editor enters the Play Mode
Actual result: Editor crashes
Reproducible with: 2022.2.19f1, 2022.2.20f1
Not reproducible with: 2022.2.18f1, 2023.1.0b7, 2023.1.0b17
Could not test with: 2020.3.48f1, 2021.3.25f1, 2022.2.a10, 2023.1.0a1 - 2023.1.0b6, 2023.2.0a15 (Packages errors)
Reproducible on: macOS Ventura 13.3.1 (a) (M1 Max), macOS Ventura 13.3.1 (a) (Intel), Windows 10
First few lines of the stack trace:
#0 0x00000101efa3dc in AudioMixerController::SetFloat(char const*, float)
#1 0x00000100763130 in AudioMixer_CUSTOM_SetFloat(ScriptingBackendNativeObjectPtrOpaque*, ScriptingBackendNativeStringPtrOpaque*, float)
{{#2 0x0000033aeee2dc in (wrapper managed-to-native) UnityEngine.Audio.AudioMixer:SetFloat (UnityEngine.Audio.AudioMixer,string,single) [
+ 0xe4] (0x33aeee1f8 0x33aeee398) [0x14ff42a80 - Unity Child Domain]}}
{{#3 0x0000033aeedfe8 in AudioManager:SetGroupVolume (string,single) [
+ 0xc0] [/Users/horatiuroman/Unity/spirit_world_unity_new/Assets/Scripts/Audio/AudioManager.cs :: 146u] (0x33aeedf28 0x33aeee07c) [0x14ff42a80 - Unity Child Domain]}}
{{#4 0x0000033aeeddfc in AudioManager:OnValidate () [
+ 0xb4] [/Users/horatiuroman/Unity/spirit_world_unity_new/Assets/Scripts/Audio/AudioManager.cs :: 120u] (0x33aeedd48 0x33aeedea4) [0x14ff42a80 - Unity Child Domain]}}
{{#5 0x0000032396ac74 in (wrapper runtime-invoke) object:runtime_invoke_void_this_ (object,intptr,intptr,intptr) [
+ 0x124] (0x32396ab50 0x32396ae00) [0x14ff42a80 - Unity Child Domain]}}
Sign in to see your voted issues