# Unity 2021.3.33, fmod 2.02.20, crash on stop playmode

**URL:** <https://qa.fmod.com/t/unity-2021-3-33-fmod-2-02-20-crash-on-stop-playmode/21096>\
**Category:** Unity\
**Created:** [January 13, 2024, 5:04pm UTC](https://qa.fmod.com/t/unity-2021-3-33-fmod-2-02-20-crash-on-stop-playmode/21096 "2024-01-13T17:04:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wichur](https://avatars.discourse-cdn.com/v4/letter/w/e68b1a/32.png) [@Wichur](https://qa.fmod.com/u/Wichur)\
**Post date:** [January 13, 2024, 5:04pm UTC](https://qa.fmod.com/t/unity-2021-3-33-fmod-2-02-20-crash-on-stop-playmode/21096/1 "2024-01-13T17:04:06Z")

</div>

Hello, I have a problem with my project, after update to the latest version of fmod have silent crash on stop from playmode. No logs, no crash, just editor closed.  
I know which sound doing this but It worked before good. I tried downgrade, change versions but no result.  
The same with changing emitter to event instance.  
Problem is when sound is playing, when I stop it manually is OK. I can stop playmode and again turn on.

this method OnEngineState(0) is in OnDestroy too, to stop sound

```auto
public void OnEngineState(int state)
    {
        Debug.Log($"{name} state: {state}");
        if (state > 0)
        {
            simuEngine.IsRunning = true;

            soundEventInstance = FMODUnity.RuntimeManager.CreateInstance(soundEventReference);
            soundEventInstance.start();
        }
        else
        {
            simuEngine.IsRunning = false;

            soundEventInstance.stop(FMOD.Studio.STOP_MODE.ALLOWFADEOUT);
            soundEventInstance.release();
        }
    }

```

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/805aa0ce2d393ed66159f24cfb11e786841e533e.png)

---

<div class="post-metadata">

**Author:** ![Wichur](https://avatars.discourse-cdn.com/v4/letter/w/e68b1a/32.png) [@Wichur](https://qa.fmod.com/u/Wichur)\
**Post date:** [January 15, 2024, 6:29am UTC](https://qa.fmod.com/t/unity-2021-3-33-fmod-2-02-20-crash-on-stop-playmode/21096/3 "2024-01-15T06:29:26Z")

</div>

I manually unload all banks and it works… i don’t know why but it works,  
thank you

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [January 16, 2024, 2:17am UTC](https://qa.fmod.com/t/unity-2021-3-33-fmod-2-02-20-crash-on-stop-playmode/21096/4 "2024-01-16T02:17:58Z")

</div>

Hi,

Thank you for sharing the solution.

Is it possible to get the full reproduction steps to test on my side?
