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.

AK:EventManager crash on Switch during initialization

+1 vote
When running a build on Switch, the game will crash as soon as a scene is loaded that contains the WwiseGlobal - AkInitializer object. The only specific error in the log points to AK:EventManager but doesn't give many details besides that. Below is the full stack trace. Does anyone know how to fix this? Sound works fine in editor, as well as in PC builds.

Initialize engine version: 2018.2.20f1 (cef3e6c0c622)
Initialised in 3.294401 seconds.
UnloadTime: 0.692969 ms
Wwise warning: AkInitializer.cs Awake() was not executed yet.  Set the Script Execution Order properly so the current call is executed after.WwiseUnity: Sound engine initialized successfully.
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
AkWwiseInitializationSettings:InitializeSoundEngine()
AkSoundEngineController:Init(AkInitializer)
AkInitializer
:OnEnable()
 
(Filename: .\Runtime/Export/Debug.bindings.h Line: 43)

Starting main loop at 3.419028 seconds.

UserException handler is called at pid=375
==============================================================================
  不正なメモリ領域へのデータアクセス (ExceptionType=0x0101)
  未マップ空間へのメモリアクセスが発生 (DFSC=0x04)
  Accessed to: 0x5A5A5A5A5A5A5A72
==============================================================================

Thread         : 0x00000012A48A4168 (AK::EventManager)
  Stack Top    : 0x0000007316BA4000
  Stack Bottom : 0x0000007316BB4000 (size=0x10000)

tpidrro = 0x0000003726356200
tpidr   = 0x0000003BEE87CCC0

pstate  = 0xA0000000 (N=1 Z=0 C=1 V=0 Q=0 J=0 E=0 T=0 IT=0x00 GE=0x0)
fpcr    = 0x00000000
fpsr    = 0x0000001A
afsr0   = 0x00000000
afsr1   = 0x00000000
esr     = 0x92000044 (EC=0x24 IL=1 ISS=0x000044)
far     = 0x5A5A5A5A5A5A5A72

Stack trace:
  0x000000129FBE6828 _Z13tlsf_memalignPvmm+0x88
Setting up 1 worker threads for Enlighten.
  Thread -> id: 3beea146d8 -> priority: 1
  0x000000129FBE4FB0 _????AK9MemoryMgr6MallocEim+0x78
  0x000000129FD1CCD0 _????AkSink4InitEPN2AK17IAkPluginMemAllocEPNS0_20IAkSinkPluginContextEPNS0_14IAkPluginParamER13AkAudioFormat+0x118
  0x000000129FC558D0 _????AkDevice10CreateSinkEv+0x1F4
[HINT] DEBUG HUD can be enabled by pressing the DebugPad (A+B+L+ZL).
  0x000000129FC56630 _????CAkOutputMgr16_AddOutputDeviceEmR16AkOutputSettingsjR5AkSetIm17AkHybridAllocatorILj8ELh8EELj1EE9AkSetTypebb+0x1F4
  0x000000129FC572B4 _????CAkOutputMgr14InitMainDeviceERK16AkOutputSettings+0xE0
  0x000000129FBFD9F4 _????CAkAudioMgr15ProcessMsgQueueEbRb+0xE08
  0x000000129FBFC840 _????CAkAudioMgr7PerformEv+0x114
  0x000000129FC04578 _????CAkAudioThread18EventMgrThreadFuncEPv+0x54
  0x00000012A6434418 (unknown)
  0x00000012A643A528 (unknown)
asked Apr 1, 2019 in General Discussion by Cameron R. (120 points)

1 Answer

0 votes
Hey!

Did you manage to get it working?

If so could you please help us. We have the same issue.

Kind regards,
Damian
answered Aug 19, 2019 by Damian K. (180 points)
...