# Fmod Unity Bug: Crash when plug in/out headset when override callback

**URL:** https://qa.fmod.com/t/fmod-unity-bug-crash-when-plug-in-out-headset-when-override-callback/20902
**Category:** Unity
**Created:** [November 24, 2023, 2:42am UTC](https://qa.fmod.com/t/fmod-unity-bug-crash-when-plug-in-out-headset-when-override-callback/20902 "2023-11-24T02:42:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gooby](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gooby](https://qa.fmod.com/u/gooby)
#### Post date: [November 24, 2023, 2:42am UTC](https://qa.fmod.com/t/fmod-unity-bug-crash-when-plug-in-out-headset-when-override-callback/20902/1 "2023-11-24T02:42:52Z")

</div>

I’m having this issue where I get an error when unplugging my headset which pops up in development builds. I’m wondering why its an error when it seems like it should be a warning at best?

So I browse google and find some answers where I override the core system callback for device list changed .I do this in Start of a simple script on an object in the scene. But when I do that, unplugging (and plugging in) my headset causes the editor to crash.

Another option is to change the log setting to Warning, but I DO want to receive other error logs so that’s a no-go.

Any advice on how to solve either of these issues? Thanks in advance!

Fmod plugin 2.02  
Unity 2022.3.12 LTS

---

<div class="post-metadata">

### Author: ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)
#### Post date: [November 26, 2023, 11:09pm UTC](https://qa.fmod.com/t/fmod-unity-bug-crash-when-plug-in-out-headset-when-override-callback/20902/2 "2023-11-26T23:09:52Z")

</div>

Hi,

So that I can try to reproduce the issue on my end, can I get you to provide the code you’re using to override the device list changed callback, as well as your exact FMOD minor version number (i.e. 2.02.xx)?
