Search Issue Tracker
Fixed in 2021.1.X
Fixed in 2018.4.X, 2019.4.X, 2020.1.X, 2020.2.X
Votes
0
Found in
5.6.1f1
2018.4
2019.4
2020.1
2020.2
Issue ID
928576
Regression
No
Unity crashes in Play Mode at FMOD_Resampler_Linear
Reproduction steps:
1. Open project attached (CarPhysics.zip).
2. Press Play.
Expected result: Editor in play mode will work fine.
Actual result: Editor crashes after about 10 frames.
Notes: Works fine on the standalone build.
Reproduced on: 2020.2.0a20, 2020.1.3f1, 2019.4.8f1, 2018.4.26f1, 2017.2.0b2, 2017.1.0f3, 5.6.2p2, 5.5.0f3
This looks like a corner-case that our version of the FMOD middleware doesn't handle properly. Specifically it's a case where the play head is at the beginning and playback is reverse due to a negative pitch value on a non-looped AudioClip.
In the specific repro case something in the scripts is causing the pitch to be negacive for a short duration when the car in the scene lands on the ground, so it's easy to work around the issue by clamping the pitch so it doesn't get below 0 in line 808 of "mncaronemore.cs":
CarSounds[i].pitch = Mathf.Max(0.0f, engineRPM * pitchas);
========== OUTPUTING STACK TRACE ==================
0x000000014209134B (Unity) FMOD_Resampler_Linear
0x00000001420819D5 (Unity) FMOD::DSPWaveTable::read
0x00000001420313BB (Unity) FMOD::DSPFilter::read
0x00000001420313BB (Unity) FMOD::DSPFilter::read
0x00000001420313BB (Unity) FMOD::DSPFilter::read
0x00000001420313BB (Unity) FMOD::DSPFilter::read
0x00000001420313BB (Unity) FMOD::DSPFilter::read
0x00000001420313BB (Unity) FMOD::DSPFilter::read
0x00000001420313BB (Unity) FMOD::DSPFilter::read
0x00000001420313BB (Unity) FMOD::DSPFilter::read
0x00000001420313BB (Unity) FMOD::DSPFilter::read
0x00000001420313BB (Unity) FMOD::DSPFilter::read
0x0000000142081F4E (Unity) FMOD::DSPSoundCard::read
0x000000014202FAE4 (Unity) FMOD::Output::mix
0x0000000142084195 (Unity) FMOD::OutputWASAPI::mixerUpdate
0x0000000142027AF1 (Unity) FMOD::Thread::callback
0x000000014185FAFB (Unity) endthreadex
0x000000014185FB8F (Unity) endthreadex
0x00007FFA5F422774 (KERNEL32) BaseThreadInitThunk
0x00007FFA60020D61 (ntdll) RtlUserThreadStart
========== END OF STACKTRACE ===========
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
- UI Toolkit Debugger Pick Element does not react to the Burst Inspector window when hovering over the Burst Inspector window
- Some buttons in the Burst Inspector window crop the button text from the left side making it unreadable when the window is smaller, and the window has to be almost fullscreen for the full button text to show
- Text in the Burst Inspector Left side panel overlaps/goes out of bounds when scrolling
- Multiple "Incompatible keyword states" or “Keyword state size mismatch (60 vs 59 keywords)“ Errors when opening the project
- Non-editable Repeat - X and Repeat - Y settings appear when UI Builder Canvas Background is set to image
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.0a1
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0b5
Resolution Note (fix version 2020.1):
Fixed in: 2020.1.10f1
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.13f1
Resolution Note (fix version 2018.4):
Fixed in: 2018.4.29f1