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
- Line Brush blue outline appears at incorrect position when painting start of line in Tile Palette
- [URP] All materials render black when building via batchmode or without rendering Scene/Game view in Editor if Decal renderer Technique is set to "Automatic"
- Player Tags list shows extra blank space behind the scrollbar in the "Player Tags" settings window
- Edit Angular Limits gizmo handles are small and easy to miss-click in the Scene view
- Duplicate Player Tag save fails silently with no error or validation message
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.