# Fmod event & Unity 5

**URL:** <https://qa.fmod.com/t/fmod-event-unity-5/11723>\
**Category:** Unity\
**Created:** [November 19, 2014, 11:35am UTC](https://qa.fmod.com/t/fmod-event-unity-5/11723 "2014-11-19T11:35:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tichau](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@Tichau](https://qa.fmod.com/u/Tichau)\
**Post date:** [November 19, 2014, 11:35am UTC](https://qa.fmod.com/t/fmod-event-unity-5/11723/1 "2014-11-19T11:35:15Z")

</div>

We tried to port our game on the unity 5.0 beta. This works well except for the fmod part.  
Fmod initializes itself without any problems but calls to getEvent crash the game (only on builds, not in editor)

========== OUTPUTING STACK TRACE ==================

000007FEF02E1F00 (fmod\_event64) FMOD::MusicSystemI::getParameters  
000007FEF02E25F7 (fmod\_event64) FMOD::MusicSystemI::getParameters  
000007FEF02E2CE8 (fmod\_event64) FMOD::MusicSystemI::getParameters  
000007FEF02BFB97 (fmod\_event64) FMOD::EventI::start  
000007FEF02B4080 (fmod\_event64) FMOD::EventGroupI::freeEventData  
000007FEF02B49A9 (fmod\_event64) FMOD::EventGroupI::getGroupByIndex  
000007FEF02CDBEF (fmod\_event64) FMOD::EventProjectI::getEvent  
000007FEF02D52A3 (fmod\_event64) FMOD::EventQueueEntryI::getInfoOnlyEvent  
000007FEF02D2B8D (fmod\_event64) FMOD::EventSystem::getEvent  
00000000174D9134 (Mono JIT Code) (wrapper managed-to-native) FMOD.EventSystem:FMOD\_EventSystem\_GetEvent (intptr,string,FMOD.EVENT\_MODE,intptr&)  
00000000174D8F68 (Mono JIT Code) FMOD.EventSystem:getEvent (string,FMOD.EVENT\_MODE,FMOD.Event&)  
00000000174D8E2F (Mono JIT Code) Amplitude.Unity.Audio.AudioManager:Get2DEvent (Amplitude.StaticString,FMOD.EVENT\_MODE)

Also, call to fmodEventSystem.update function fails with the following error :  
ERR\_INTERNAL - An error occured that wasn’t supposed to. Contact support.

What is this internal error ? did you have any incompatibility feedbacks of unity 5 and fmod ?

Thanks,

---

<div class="post-metadata">

**Author:** ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)\
**Post date:** [November 20, 2014, 1:15am UTC](https://qa.fmod.com/t/fmod-event-unity-5/11723/2 "2014-11-20T01:15:24Z")

</div>

> [@](#):
>
> We tried to port our game on the unity 5.0 beta. This works well except for the fmod part.  
> Fmod initializes itself without any problems but calls to getEvent crash the game (only on builds, not in editor)
> 
> ========== OUTPUTING STACK TRACE ==================
> 
> 000007FEF02E1F00 (fmod\_event64) FMOD::MusicSystemI::getParameters  
> 000007FEF02E25F7 (fmod\_event64) FMOD::MusicSystemI::getParameters  
> 000007FEF02E2CE8 (fmod\_event64) FMOD::MusicSystemI::getParameters  
> 000007FEF02BFB97 (fmod\_event64) FMOD::EventI::start  
> 000007FEF02B4080 (fmod\_event64) FMOD::EventGroupI::freeEventData  
> 000007FEF02B49A9 (fmod\_event64) FMOD::EventGroupI::getGroupByIndex  
> 000007FEF02CDBEF (fmod\_event64) FMOD::EventProjectI::getEvent  
> 000007FEF02D52A3 (fmod\_event64) FMOD::EventQueueEntryI::getInfoOnlyEvent  
> 000007FEF02D2B8D (fmod\_event64) FMOD::EventSystem::getEvent  
> 00000000174D9134 (Mono JIT Code) (wrapper managed-to-native) FMOD.EventSystem:FMOD\_EventSystem\_GetEvent (intptr,string,FMOD.EVENT\_MODE,intptr&)  
> 00000000174D8F68 (Mono JIT Code) FMOD.EventSystem:getEvent (string,FMOD.EVENT\_MODE,FMOD.Event&)  
> 00000000174D8E2F (Mono JIT Code) Amplitude.Unity.Audio.AudioManager:Get2DEvent (Amplitude.StaticString,FMOD.EVENT\_MODE)
> 
> Also, call to fmodEventSystem.update function fails with the following error :  
> ERR\_INTERNAL - An error occured that wasn’t supposed to. Contact support.
> 
> What is this internal error ? did you have any incompatibility feedbacks of unity 5 and fmod ?
> 
> Thanks,

FMOD\_ERR\_INTERNAL could have a lot of reasons, a debug log can help there. Your callstack for the crash doesn’t help much because you don’t have the PDB files. If you send a crash minidump we can get more information from that.

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [November 24, 2014, 10:29am UTC](https://qa.fmod.com/t/fmod-event-unity-5/11723/3 "2014-11-24T10:29:44Z")

</div>

If you want a supported interface between unity and FMOD i’d recommend using FMOD Studio and the downloadable unity integration.
