# Game hangs up for a sec when using programmer sound.

**URL:** <https://qa.fmod.com/t/game-hangs-up-for-a-sec-when-using-programmer-sound/14120>\
**Category:** Unreal Engine\
**Created:** [October 1, 2018, 8:14am UTC](https://qa.fmod.com/t/game-hangs-up-for-a-sec-when-using-programmer-sound/14120 "2018-10-01T08:14:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![zsombor.bencsik](https://avatars.discourse-cdn.com/v4/letter/z/ee7513/32.png) [@zsombor.bencsik](https://qa.fmod.com/u/zsombor.bencsik)\
**Post date:** [October 1, 2018, 8:14am UTC](https://qa.fmod.com/t/game-hangs-up-for-a-sec-when-using-programmer-sound/14120/1 "2018-10-01T08:14:13Z")

</div>

So I’m trying to use fmod for handling the voiceover. But as soon as I set the programmer instrument name and play the game hangs up for a sec and I get this error message.

LogOutputDevice: Error: === Handled ensure: ===  
LogOutputDevice: Error: Ensure condition failed: IsInGameThread() [File:D:\Build++UE4\Sync\Engine\Source\Runtime\Core\Private\Modules\ModuleManager.cpp] [Line: 350]  
LogOutputDevice: Error: Stack:  
LogOutputDevice: Error: [Callstack] 0x00007ff93aae71e6 UE4Editor-Core.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff93a820c82 UE4Editor-Core.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff93a83b346 UE4Editor-Core.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff93a8e6ae0 UE4Editor-Core.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff93a8e6c17 UE4Editor-Core.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925f92102 UE4Editor-FMODStudio.dll!UFMODAudioComponent::EventCallbackCreateProgrammerSound() [a:\unreal engine\zero caliber\zerocaliber\zerocaliber\plugins\fmodstudio\source\fmodstudio\private\fmodaudiocomponent.cpp:533]  
LogOutputDevice: Error: [Callstack] 0x00007ff925f955a6 UE4Editor-FMODStudio.dll!UFMODAudioComponent\_EventCallback() [a:\unreal engine\zero caliber\zerocaliber\zerocaliber\plugins\fmodstudio\source\fmodstudio\private\fmodaudiocomponent.cpp:492]  
LogOutputDevice: Error: [Callstack] 0x00007ff925c855e0 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925c85312 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925c84bbd fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925bf2654 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925c0b902 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925c96da8 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925c92a14 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925c9e968 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925ca7e37 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925bf4890 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925bf0643 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925caf90f fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925cad6ca fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925caf6b8 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925bf8432 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925bf7211 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925c6ac69 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925c815be fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925c7ff40 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925c804d9 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925b37081 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925b37e97 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925cbd503 fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff925cbd6aa fmodstudioL64.dll!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff9aba93034 KERNEL32.DLL!UnknownFunction []  
LogOutputDevice: Error: [Callstack] 0x00007ff9ae211461 ntdll.dll!UnknownFunction []

Anyone got a clue?

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [October 2, 2018, 5:03am UTC](https://qa.fmod.com/t/game-hangs-up-for-a-sec-when-using-programmer-sound/14120/2 "2018-10-02T05:03:56Z")

</div>

Hi Zsombor,

Can you provide the code or blueprints for how you’re setting this up? It’s hard to tell from this callstack alone.

Thanks,  
Richard

---

<div class="post-metadata">

**Author:** ![zsombor.bencsik](https://avatars.discourse-cdn.com/v4/letter/z/ee7513/32.png) [@zsombor.bencsik](https://qa.fmod.com/u/zsombor.bencsik)\
**Post date:** [October 2, 2018, 8:43am UTC](https://qa.fmod.com/t/game-hangs-up-for-a-sec-when-using-programmer-sound/14120/3 "2018-10-02T08:43:35Z")

</div>

Hi Richards,

Of course here you go.

[[Album] Imgur ![](https://i.imgur.com/RfLS1jd.jpg?fb "Imgur") ](https://imgur.com/a/AIvpdGM)

Thanks,  
Z

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [October 3, 2018, 1:46am UTC](https://qa.fmod.com/t/game-hangs-up-for-a-sec-when-using-programmer-sound/14120/4 "2018-10-03T01:46:02Z")

</div>

> [@](#):
>
> Hi Richards,
> 
> Of course here you go.  
> [Imgur: The magic of the Internet](https://imgur.com/a/AIvpdGM)
> 
> Thanks,  
> Z

Hi Zsombor,

Your blueprint looks fine. Could you confirm which version of FMOD Studio you’re using? There was a fix in 1.10.05 for programmer sound creation flags which would improve performance. Could you also try recording a Profiler session to see if there’s any RAM/CPU issues being recorded?

---

<div class="post-metadata">

**Author:** ![zsombor.bencsik](https://avatars.discourse-cdn.com/v4/letter/z/ee7513/32.png) [@zsombor.bencsik](https://qa.fmod.com/u/zsombor.bencsik)\
**Post date:** [October 3, 2018, 9:34am UTC](https://qa.fmod.com/t/game-hangs-up-for-a-sec-when-using-programmer-sound/14120/5 "2018-10-03T09:34:34Z")

</div>

Its UE4 4.20 with 1.10.08. I don’t think its that its related to RAM/CPU since I’m getting this ERROR only on the first play. If I restart the level its all good.

---

<div class="post-metadata">

**Author:** ![zsombor.bencsik](https://avatars.discourse-cdn.com/v4/letter/z/ee7513/32.png) [@zsombor.bencsik](https://qa.fmod.com/u/zsombor.bencsik)\
**Post date:** [October 3, 2018, 10:49am UTC](https://qa.fmod.com/t/game-hangs-up-for-a-sec-when-using-programmer-sound/14120/6 "2018-10-03T10:49:38Z")

</div>

Moreover, the game we’re working on is crashing on level restart and unfortunately we’re getting this error.  
Access violation - code c0000005 (first/second chance not available)

ZeroCaliber!FFMODStudioModule::FinishSetListenerPosition() [c:\zerocaliber\zerocaliber\plugins\fmodstudio\source\fmodstudio\private\fmodstudiomodule.cpp:914]  
ZeroCaliber!FFMODStudioModule::UpdateViewportPosition() [c:\zerocaliber\zerocaliber\plugins\fmodstudio\source\fmodstudio\private\fmodstudiomodule.cpp:797]  
ZeroCaliber!FFMODStudioModule::Tick() [c:\zerocaliber\zerocaliber\plugins\fmodstudio\source\fmodstudio\private\fmodstudiomodule.cpp:745]  
ZeroCaliber!FTicker::Tick()  
ZeroCaliber!FEngineLoop::Tick()  
ZeroCaliber!GuardedMain()  
ZeroCaliber!GuardedMainWrapper()  
ZeroCaliber!WinMain()  
ZeroCaliber!\_\_scrt\_common\_main\_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe\_common.inl:288]  
kernel32  
ntdll

Have you ever encountered this error message in unreal?

Thanks,  
Z

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [October 4, 2018, 12:22am UTC](https://qa.fmod.com/t/game-hangs-up-for-a-sec-when-using-programmer-sound/14120/7 "2018-10-04T00:22:44Z")

</div>

Hi Z,

We can’t really understand much from these callstacks. Could you zip up your Unreal project and upload it? Go into your profile page, click on the Upload tab and upload your project there. It should ping support once it’s done.

---

<div class="post-metadata">

**Author:** ![zsombor.bencsik](https://avatars.discourse-cdn.com/v4/letter/z/ee7513/32.png) [@zsombor.bencsik](https://qa.fmod.com/u/zsombor.bencsik)\
**Post date:** [October 4, 2018, 7:53am UTC](https://qa.fmod.com/t/game-hangs-up-for-a-sec-when-using-programmer-sound/14120/8 "2018-10-04T07:53:30Z")

</div>

Hi Richard!

Not sure if that’s a viable option since the game is pretty hefty in size 40+gb. Any idea about the restart crash? The log snippet is the very end of the crashlog.

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [October 5, 2018, 1:44am UTC](https://qa.fmod.com/t/game-hangs-up-for-a-sec-when-using-programmer-sound/14120/9 "2018-10-05T01:44:28Z")

</div>

Hi Z,

The callstack only says it’s crashing at the “setListenerPosition” function. My only thoughts are that an invalid value is being passed into it once the level resets but this shouldn’t cause a crash.

If you zip up the project only containing the Config, Content, Plugins, and Source folder, does this help reduce the size by much?

---

<div class="post-metadata">

**Author:** ![zsombor.bencsik](https://avatars.discourse-cdn.com/v4/letter/z/ee7513/32.png) [@zsombor.bencsik](https://qa.fmod.com/u/zsombor.bencsik)\
**Post date:** [October 5, 2018, 10:10am UTC](https://qa.fmod.com/t/game-hangs-up-for-a-sec-when-using-programmer-sound/14120/10 "2018-10-05T10:10:46Z")

</div>

Hey Richard,

Thanks for helping out. Turns out it wasn’t fmod that was causing the crash after all. And the programmer sound bug was solved by modifying the sourcecode of fmod by our programmer.

Z

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [October 8, 2018, 2:42am UTC](https://qa.fmod.com/t/game-hangs-up-for-a-sec-when-using-programmer-sound/14120/11 "2018-10-08T02:42:15Z")

</div>

Thanks for the update Z.
