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.

Unity AkSoundEngine.SetState/GetState can cause CRASH on Mac

0 votes

If I call AkSoundEngine.SetState or AkSoundEngine.GetState on Mac, and the music track containing the specified state is not currently playing, the game will crash to desktop. This should be caught by WWise and maybe throw a warning or error. 

Here's the crash log:

Shader warmup: 20 shaders 43 combinations 0.002s
Receiving unhandled NULL exception
Obtained 46 stack frames.
#0  0x0000011f848e00 in CSharp_SetState__SWIG_1
#1  0x00000120cbbc62 in  (wrapper managed-to-native) AkSoundEnginePINVOKE:CSharp_SetState__SWIG_1 (string,string) + 0x152 (0x120cbbb10 0x120cbbcad) [0x117303660 - Unity Child Domain]
#2  0x00000120cbba9d in  AkSoundEngine:SetState (string,string) + 0x8d (0x120cbba10 0x120cbbaf9) [0x117303660 - Unity Child Domain]
#3  0x00000120cbb495 in  Spacewave.AudioManager:SetMusicState (GameData.MusicStateId) + 0x235 (0x120cbb260 0x120cbb4e3) [0x117303660 - Unity Child Domain]
#4  0x00000120cb9267 in  Spacewave.GameplayManager/<DoRoundStart>c__Iterator3:MoveNext () + 0x1f7 (0x120cb9070 0x120cb95b3) [0x117303660 - Unity Child Domain]
#5  0x0000011c1d447c in  UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr) + 0x18c (0x11c1d42f0 0x11c1d44aa) [0x117303660 - Unity Child Domain]
#6  0x0000011c1d45c3 in  (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_intptr (object,intptr,intptr,intptr) + 0x113 (0x11c1d44b0 0x11c1d46f6) [0x117303660 - Unity Child Domain]
#7  0x0000010aa6e596 in mono_get_runtime_build_info
#8  0x0000010ab9918e in mono_runtime_invoke
#9  0x00000101df48cd in ScriptingInvocation::Invoke(MonoException**, bool)
#10 0x00000101b820c7 in Coroutine::InvokeMoveNext(MonoException**)
#11 0x00000101b81b96 in Coroutine::Run(bool*)
#12 0x0000010229f7c8 in MonoBehaviour::TryCreateAndRunCoroutine(MonoObject*, ScriptingMethodMono, Coroutine**)
#13 0x0000010229fdc1 in MonoBehaviour::StartCoroutineManaged2(MonoObject*)
#14 0x0000011c1d42ba in  (wrapper managed-to-native) UnityEngine.MonoBehaviour:StartCoroutine_Auto_Internal (System.Collections.IEnumerator) + 0xfa (0x11c1d41c0 0x11c1d42e9) [0x117303660 - Unity Child Domain]
#15 0x0000011c1d4167 in  UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator) + 0x87 (0x11c1d40e0 0x11c1d41a8) [0x117303660 - Unity Child Domain]
#16 0x000001269c8a6a in  Spacewave.GameplayManager:StartNextRound () + 0x3ca (0x1269c86a0 0x1269c8a8e) [0x117303660 - Unity Child Domain]
#17 0x0000011ff33bc9 in  Spacewave.GameplayManager/<Start>c__Iterator2:MoveNext () + 0x1d79 (0x11ff31e50 0x11ff33e44) [0x117303660 - Unity Child Domain]
#18 0x0000011c1d447c in  UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr) + 0x18c (0x11c1d42f0 0x11c1d44aa) [0x117303660 - Unity Child Domain]
#19 0x0000011c1d45c3 in  (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_intptr (object,intptr,intptr,intptr) + 0x113 (0x11c1d44b0 0x11c1d46f6) [0x117303660 - Unity Child Domain]
#20 0x0000010aa6e596 in mono_get_runtime_build_info
#21 0x0000010ab9918e in mono_runtime_invoke
#22 0x00000101df48cd in ScriptingInvocation::Invoke(MonoException**, bool)
#23 0x00000101b820c7 in Coroutine::InvokeMoveNext(MonoException**)
#24 0x00000101b81b96 in Coroutine::Run(bool*)
#25 0x000001018159ca in DelayedCallManager::Update(int)
#26 0x00000101ad1b59 in PlayerLoop()
#27 0x0000010264e6d9 in Application::UpdateScene(bool)
#28 0x0000010264b69c in Application::UpdateSceneIfNeeded()
#29 0x0000010264acea in Application::TickTimer()
#30 0x007fff93021dec in __NSFireTimer
#31 0x007fff8a022b94 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
#32 0x007fff8a022823 in __CFRunLoopDoTimer
#33 0x007fff8a02237a in __CFRunLoopDoTimers
#34 0x007fff8a019871 in __CFRunLoopRun
#35 0x007fff8a018ed8 in CFRunLoopRunSpecific
#36 0x007fff8c3f7935 in RunCurrentEventLoopInMode
#37 0x007fff8c3f776f in ReceiveNextEventCommon
#38 0x007fff8c3f75af in _BlockUntilNextEventMatchingListInModeWithFilter
#39 0x007fff84dc1df6 in _DPSNextEvent
#40 0x007fff84dc1226 in -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
#41 0x007fff84db5d80 in -[NSApplication run]
#42 0x007fff84d7f368 in NSApplicationMain
#43 0x000001026ef168 in EditorMain(int, char const**)
#44 0x000001026ef979 in main
#45 0x00000100002724 in start
Launching bug reporter
 

asked Apr 29, 2017 in General Discussion by Justin R. (290 points)

Please sign-in or register to answer this question.

...