Search Issue Tracker
Fixed in 2021.3.25f1
Fixed in 2021.3.X, 2022.2.X, 2023.1.X, 2023.2.X, 2023.2.0a9
Votes
0
Found in
2021.3.20f1
2022.2.10f1
2023.1.0b7
2023.2.0a5
Issue ID
UUM-29578
Regression
No
Crash on AudioSource::SetCustomRolloffCurve when entering Play Mode with AudioSource component
How to reproduce:
1. Open the user attached “Unity Audio Curve Repro.zip“ project
2. Add the “CurveOofMonoTest.cs” script to a GameObject
3. Enter Play Mode
4. Observe crash
Reproducible with: 2021.3.20f1, 2022.2.10f1, 2023.1.0b7, 2023.2.0a5
Could not test with: 2020.3.46f1 (Compiler errors)
Reproduced on: Windows 10 (Intel)
First lines of stack trace:
0x00007ff6a2645754 (Unity) AudioSource::SetCustomRolloffCurve
0x00007ff6a143b654 (Unity) AudioSource_CUSTOM_SetCustomCurveHelper
0x0000025ca0025068 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.AudioSource:SetCustomCurveHelper (UnityEngine.AudioSource,UnityEngine.AudioSourceCurveType,UnityEngine.AnimationCurve)
0x0000025ca0024fa3 (Mono JIT Code) UnityEngine.AudioSource:SetCustomCurve (UnityEngine.AudioSourceCurveType,UnityEngine.AnimationCurve)
0x0000025ca0024da3 (Mono JIT Code) CurveOofMonoTest:Awake () (at C:/Users/LenovoLap/Desktop/Project/IN-30198_Unity Audio Curve Repro/Assets/CurveOofMonoTest.cs:12)
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note (fix version 2023.2):
Editor: Fixed a crash that occurs when you set the custom-rolloff-curve to null on an audio source.