Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X, 2021.2.X
Votes
1
Found in
2019.3.0a11
2019.4
2020.3
2021.1
2021.1.5f1
2021.2
Issue ID
1341752
Regression
Yes
Crash on AudioMixer_CUSTOM_FindSnapshot when passing null as an argument to FindSnapshot()
How to reproduce:
1. Open the attached project from "MinimalTest.zip"
2. Open Scene "SampleScene"
3. Enter Play Mode
Reproducible with: 2019.3.0a11, 2019.4.28f1, 2020.3.13f1, 2021.1.13f1, 2021.2.0b1
Not reproducible with: 2018.4.36f1, 2019.3.0a10
Expected result: Console should throw a "NullReferenceException" error
Actual result: The Editor crashes
First lines of stack trace:
0x00007ff6e3913288 (Unity) AudioMixer_CUSTOM_FindSnapshot
0x000001da9a2551d6 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Audio.AudioMixer:FindSnapshot (UnityEngine.Audio.AudioMixer,string)
0x000001da9a254f13 (Mono JIT Code) [test.cs:13] test:Update ()
0x000001dafddf6dd0 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffa8c24e640 (mono-2.0-bdwgc) [mini-runtime.c:2812] mono_jit_runtime_invoke
0x00007ffa8c1d2ad2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
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
- Crash on mecanim::SetValueWeight when switching the AnimationMixerPlayable connection with Animator's UpdateMode set to "Animate Physics"
- The "StringComparer.InvariantCultureIgnoreCase.GetHashCode()" returns different Hash Codes for the same word with the only difference being case sensitivity in WebGL
- 2D Light Textures show the lights of any 'blend style' index higher than theirs (if present) when they aren't visible by the Camera using Render Graph
- [SpeedTree] Wireframe mode not rendering correctly ST assets
- Light2D affecting only the Default Sorting Layer will also affect any Custom Lit Sprite not on that Layer when using Render Graph
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a4
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0b10
Resolution Note (fix version 2021.1):
Fixed in 2021.1.22f1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.19f1
Added errors logged in the Console
Resolution Note (fix version 2019.4):
Fixed in 2019.4.31f1
Now an error is logged in console when passing null as an argument to FindSnapshot()