Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Occasional assertion failure on termination

+1 vote

I've been experiencing the following assertion failure on explicit termination of the Wwise libraries - it occurs approximately 40% of the time.

 

 

/Volumes/Data/Jenkins/workspace/MAC_2014.1/Wwise/SDK/source/SoundEngine/AkMusicEngine/Common/AkMidiBaseCtx.cpp:127:Release failed assertion `m_lRef > 0'

 

Note that I don't actually use midi, nor do I initialise anything midi related.

Here's the backtrace:

 

* thread #9: tid = 0x591278, 0x00007fff8c6de282 libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGTRAP

  * frame #0: 0x00007fff8c6de282 libsystem_kernel.dylib`__pthread_kill + 10

    frame #1: 0x00007fff8e62c4c3 libsystem_pthread.dylib`pthread_kill + 90

    frame #2: 0x000000010007270c GL Demo OSX`_MacAssert(in_pFunc=0x00000001002a6654, in_pFile=0x000000010029a55b, in_LineNum=127, in_pCondition=0x000000010029a550) + 76 at AkAssert.h:72

    frame #3: 0x00000001000a5a5f GL Demo OSX`CAkMidiBaseCtx::Release(this=0x00000001024ef000) + 159 at AkMidiBaseCtx.cpp:127

    frame #4: 0x00000001000ad8e4 GL Demo OSX`CAkMidiDeviceCtx::DetachAndRelease(this=0x00000001024ef000) + 132 at AkMidiDeviceCtx.cpp:178

    frame #5: 0x00000001000ae10c GL Demo OSX`CAkMidiDeviceMgr::DestroyCtx(this=0x000000010253c4c8) + 124 at AkMidiDeviceMgr.cpp:115

    frame #6: 0x00000001000ae750 GL Demo OSX`CAkMidiDeviceMgr::NextFrame(this=0x000000010253c4c8, in_uNumSamples=1024) + 96 at AkMidiDeviceMgr.cpp:251

    frame #7: 0x000000010006ff20 GL Demo OSX`CAkMusicRenderer::PerformNextFrameBehavior((null)=false) + 400 at AkMusicRenderer.cpp:685

    frame #8: 0x00000001000dfd1d GL Demo OSX`CAkAudioMgr::Perform(this=0x00000001024fbd18) + 429 at AkAudioMgr.cpp:459

    frame #9: 0x00000001001f49a2 GL Demo OSX`CAkAudioThread::EventMgrThreadFunc(lpParameter=0x00000001024fbdb4) + 226 at AkAudioThread.cpp:60

    frame #10: 0x00007fff8e62a2fc libsystem_pthread.dylib`_pthread_body + 131

    frame #11: 0x00007fff8e62a279 libsystem_pthread.dylib`_pthread_start + 176

    frame #12: 0x00007fff8e6284b1 libsystem_pthread.dylib`thread_start + 13

 

asked Jan 26, 2015 in General Discussion by Tim K. (480 points)

1 Answer

+1 vote
 
Best answer

Seems to be fixed in 2014.1.3 build 5219

Release notes show:

  • WG-26650 Fixed: Crash in MusicEngine::Term (due to CAkMidiDeviceMgr).

 

So far so good

answered Feb 4, 2015 by Tim K. (480 points)
selected Feb 4, 2015 by Bernard R. (Audiokinetic)
...