Search Issue Tracker

Active

Votes

0

Found in

5.6.1f1

Issue ID

928576

Regression

No

Unity crashes in Play Mode at FMOD_Resampler_Linear

Audio

-

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: 5.5.0f3, 5.6.2p2, 2017.1.0f3, 2017.2.0b2

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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.