Game hangs up for a sec when using programmer sound.


(Zsombor Bencsik) #1

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?


(リチャード清水) #2

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


(Zsombor Bencsik) #3

Hi Richards,

Of course here you go.

Thanks,
Z


(リチャード清水) #4

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?


(Zsombor Bencsik) #5

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.


(Zsombor Bencsik) #6

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


(リチャード清水) #7

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.


(Zsombor Bencsik) #8

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.


(リチャード清水) #9

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?


(Zsombor Bencsik) #10

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


(リチャード清水) #11

Thanks for the update Z.