- Home /
App crashes due to FMOD error
We've been encountering random crashes with, what we perceive to be, an audio issue. The following is basically what we ALWAYS see in the console and log outputs:
FMOD::SystemI::createChannelGroupInternal(char const*, FMOD::ChannelGroupI**, bool, bool)
Fyi, we've implemented a simple singleton pattern to manage our audio playback, implementing locks on the function that actually plays the clip, implement simple checks to not play audioClips consecutively, etc. The singleton basically instantiates a prefab with an AudioSource attached, then we dynamically attach a clip to that AudioSource and simply call Play(). We understand there could be a bit of an overhead with regards to how separate gameObjects need to be instantiated just for audio, but with how our game is setup, this is currently the best method we can go for.
We just can't figure out where this error could be coming from. We have a hunch it's at the point where the gameObject is instantiated. But that's about it.
Any ideas? Thanks.
[Update - Added Crash Log]
Thread 2 name: WebThread
Thread 2 Crashed:
0 libsystem_kernel.dylib 0x321c232c __pthread_kill + 8
1 libsystem_c.dylib 0x366b8f54 pthread_kill + 48
2 libsystem_c.dylib 0x366b1fe4 abort + 88
3 Aaaaaaaa 0x0078491c FMOD::SystemI::createChannelGroupInternal(char const*, FMOD::ChannelGroupI**, bool, bool) + 1642572
4 Aaaaaaaa 0x00775404 FMOD::SystemI::createChannelGroupInternal(char const*, FMOD::ChannelGroupI**, bool, bool) + 1579828
5 libsystem_c.dylib 0x366c3532 _sigtramp + 42
6 JavaScriptCore 0x373310b2 JSC::HandleHeap::markWeakHandles(JSC::HeapRootVisi tor&) + 78
7 JavaScriptCore 0x3732cc78 JSC::Heap::markRoots() + 640
8 JavaScriptCore 0x3732c99e JSC::Heap::reset(JSC::Heap::SweepToggle) + 14
9 JavaScriptCore 0x3732c982 JSC::Heap::collectAllGarbage() + 10
10 WebCore 0x37674198 WebCore::ThreadTimers::sharedTimerFiredInternal() + 92
11 WebCore 0x3767410a WebCore::timerFired(__CFRunLoopTimer*, void*) + 58
12 CoreFoundation 0x30eb1a5c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUN CTION__ + 8
13 CoreFoundation 0x30eb16c2 __CFRunLoopDoTimer + 358
14 CoreFoundation 0x30eb0298 __CFRunLoopRun + 1200
15 CoreFoundation 0x30e334d6 CFRunLoopRunSpecific + 294
16 CoreFoundation 0x30e3339e CFRunLoopRunInMode + 98
17 WebCore 0x376c7128 RunWebThread(void*) + 396
18 libsystem_c.dylib 0x3667ac16 _pthread_start + 314
19 libsystem_c.dylib 0x3667aad0 thread_start + 0
Additional info: We've implemented the Burstly SD$$anonymous$$ for our ads, and Crystal SD$$anonymous$$ for our social features.
Updated my original questions (added a crash log). I'm also looking into the external libraries we've integrated (Burstly SD$$anonymous$$ and Crystal SD$$anonymous$$) if they are thumb-compiled.
Extra info found in the forum thread I posted in (if you want to follow progress into this issue) >> http://forum.unity3d.com/threads/108979-App-crashed-in-F$$anonymous$$OD-SystemI-createChannelGroupInternal