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
- Physics SyncColliders 3x-7x performance regression from 2022LTS to U6
- ListView's '+' button causes a recursively dispatching event when the visual element area is filled up
- Soft keyboard closes immediately after multiple touches are made if Pointer Behavior is set to SingleUnifiedPointer
- UI Image batching breaks when interleaving elements with mixed z-positions and materials
- KeyNotFoundException is thrown when retrieving some values from HyperLinkClickedEventArgs
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