Err_channel_stolen

Hi,
I encountered the error [FMOD] ChannelControl::isPlaying(00000079571AF4C0:false) returned ERR_CHANNEL_STOLEN for CHANNELCONTROL (0x7D2001D). I don’t really know where it is coming from or how to fix it.

The scene this is appearing was previously working. So I am unsure what has changed.

I am with Unity 2020.3.24f1 and FMOD Unity Integration 2.01.11
Any help with chasing down the bug would be appreciated.

Bests,
constantin

ERR_CHANNEL_STOLEN means a virtual voice has had it’s channel stolen by another voice and it is now invalid. It should only come up when API Error Logging is enabled and as long as you can’t hear voices being cut off suddenly it’s safe to ignore.
If you do notice voices cutting out however you can try increasing the virtual channel count in the FMOD Unity settings. If you are still getting the error then it might be that the Max Instances setting of an event is too low and it’s channel is being stolen as a result. Such events can be identified using the the FMOD Studio Profiler. In the 3D Preview window, virtual channels are displayed as hollow grey circles.

Clicking on the hollow grey circles will open the instance in the deck:
image

Clicking on the arrow icon will open the event that is going virtual in FMOD Studio. On this event you can then increase the Max Instances which will prevent this error.
You should also check the Max Instances settings of any buses that this event is in, including the Master Bus.
If you are still getting the error after that, then you may need to do some optimization, but try checking the Max Instances first.

1 Like

Many thanks for the in-depth explanations. I know where to look now. :slight_smile:

1 Like

Hi, @jeff_fmod 2 questions:

  1. So if I understand correctly, it is not truly an error seeing as it is the intended effect caused by specific settings (ie max instances?)
  2. how do you make these messages stop showing up in the console though? It spams the console and makes it difficult to see other errors.

I am not sure what integration I’m looking at there, is that Unity?
If it’s Unity, you can turn it off by disabling Enable API Error Logging.
If you aren’t using Unity, then if you could please tell me which Engine you are using and where you got your FMOD integration from then I can tell you how to turn off those errors.