Bug report : FMOD sometimes keeps playing after playmode ended

On my M1 Mac Mini, FMOD often keeps playing after I end playmode in the Unity editor.

I believe the bug mostly happens if I made some changes to scripts while in playmode. I have Unity set up to compile after I end playmode, and it seems like when this happens, the FMOD instance isn’t properly cleaned up.

Because of this I try to avoid saving changes to scripts while in playmode, but I often forget and it still happens several times a day, so I’m hoping this can be fixed.


It sounds like the FMOD system is not being cleaned up correctly when exiting play mode. I’ve not been able to replicate this issue on our machines, are you able to make a small Unity project where this happens and share it with us?

It happened with me a few times during the last 3 days.

I’m using Macbook Pro 16" with Unity 2020.2.1f1.

I can’t replicate though.

Are you able to share that Unity project with us to investigate further, please?

I’m sorry, I didn’t see these responses. It’s a somewhat large game project with lot of proprietary code, and a bunch of plugins that I purchased, so I can’t just share the source.

This makes it more difficult but you will need to check for things that could be keeping the FMOD system from being cleaned up. Do you use callbacks in your code? Try searching for GCHandle.Alloc, GCHandle.ToIntPtr, or GCHandleType.Pinned. Maybe there’s something pinned to memory that could be causing this to happen.