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

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: 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 ===========

  1. Resolution Note (fix version 2021.1):

    Fixed in: 2021.1.0a1

  2. Resolution Note (fix version 2020.2):

    Fixed in: 2020.2.0b5

  3. Resolution Note (fix version 2020.1):

    Fixed in: 2020.1.10f1

  4. Resolution Note (fix version 2019.4):

    Fixed in: 2019.4.13f1

  5. Resolution Note (fix version 2018.4):

    Fixed in: 2018.4.29f1

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.