Search Issue Tracker
Fixed
Fixed in 2021.3.25f1, 2022.2.19f1, 2023.1.0b15, 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
- Vertex data is displaced when building with Addressables with Optimize Mesh Data enabled
- [macOS] “Input.GetMouseButtonDown” gets set to true when pressing and when releasing the mouse button in the Device Simulator view if "targetFrameRate" is set in the script
- UWP Capabilities are not changed when rebuilding the project
- [Oculus] Lights causing artifacts when Forward+ Rendering is selected
- Game Window Icons are white when in light mode
Resolution Note (fix version 2023.2.0a9):
Editor: Fixed a crash that occurs when you set the custom-rolloff-curve to null on an audio source.