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.

+1 vote

Wwise Runtime Crash
Unity 6000.0.25f1
Wwise Unity Integration Version 2024.1.0.8669.3283
Wwise Version: 2024.1.0.8669
SDK Platform: Android

Steps to Reproduce:

With the introduction of AutoBanks, which rely on the Project Database to work, the default Wwise Project Settings after integrating with Unity have changed. They now include the following settings, which are mandatory:

"
Generate JSON Metadata -> now checked 
Object GUID -> was already checked
Object Path -> was already checked
"
https://www.audiokinetic.com/en/library/edge/?source=Unity&id=pg_important_migration_notes_2024_1_0.html

-> Not changing to to use AutoBanks

Build normally like before for Unity platform Android, observe that the build finishes successfully with no errors about Wwise.
Upload the .apk to Quest device and launch the app on device.

What Happens:

The short intro scene does not have sound (has Wwise timeline events) and then afterwards when loading the main scene the app crashes.

The device adb log:

...

18:50:50.512 23451 23477 I Unity         : AkUnitySoundEngineInitialization:InitializeSoundEngine() (at <unity project>\Assets\Wwise\API\Runtime\Handwritten\Common\AkUnitySoundEngineInitialization.cs:50)
18:50:50.512 23451 23477 I Unity         : AkSoundEngineController:Init(AkInitializer) (at <unity project>\Assets\Wwise\MonoBehaviour\Runtime\AkSoundEngineController.cs:168)
18:50:50.512 23451 23477 I Unity         : AkInitializer:OnEnab
18:50:50.528 23451 23477 E Unity         : Wwise: Android initialization failure.
18:50:50.528 23451 23477 E Unity         : UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
18:50:50.528 23451 23477 E Unity         : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
18:50:50.528 23451 23477 E Unity         : UnityEngine.Logger:LogFormat(LogType, String, Object[])
18:50:50.528 23451 23477 E Unity         : UnityEngine.Debug:LogErrorFormat(String, Object[])
18:50:50.528 23451 23477 E Unity         : AkLogger:WwiseInternalLogError(String) (at <unity project>\Assets\Wwise\API\Runtime\Handwritten\Common\AkLogger.cs:60)
18:50:50.528 23451 23477 E Unity         : AkUnitySoundEngine:Init(AkInitializationSettings) (at <unity project>\Assets\Wwise\API\Runtime\Generated\Android\AkUnitySoundEngine_Android.cs:1141)
18:50:50.528 23451 23477 E Unity         : AkUnitySoundEngineInitialization:InitializeSoundEngine() (at <unity project>\Assets\Wwise\API\Runtime\Handwritten\Common\AkUnitySoundEngineInitialization.cs:50)
18:50:50.528 23451 23477 E Unity         : AkSoundEngineController:Init(AkInitializer) (at <unity project>\Assets\Wwise\MonoBehaviour\Runtime\AkSoundEngineController.cs:168)
18:50:50.528 23451 23477 E Unity         : AkInitializer:O
18:50:50.529 23451 23477 E Unity         : WwiseUnity: Failed to initialize the sound engine. Reason: AK_Fail
18:50:50.529 23451 23477 E Unity         : UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
18:50:50.529 23451 23477 E Unity         : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
18:50:50.529 23451 23477 E Unity         : UnityEngine.Logger:Log(LogType, Object)
18:50:50.529 23451 23477 E Unity         : UnityEngine.Debug:LogError(Object)
18:50:50.529 23451 23477 E Unity         : AkUnitySoundEngineInitialization:InitializeSoundEngine() (at <unity project>\Assets\Wwise\API\Runtime\Handwritten\Common\AkUnitySoundEngineInitialization.cs:53)
18:50:50.529 23451 23477 E Unity         : AkSoundEngineController:Init(AkInitializer) (at <unity project>\Assets\Wwise\MonoBehaviour\Runtime\AkSoundEngineController.cs:168)
18:50:50.529 23451 23477 E Unity         : AkInitializer:OnEnable() (at <unity project>\Assets\Wwise\MonoBehaviour\Runtime\AkInitializer.cs:162)
18:50:50.529 23451 23477 E Unity         : 
18:50:50.530 23451 23477 E Unity         : Wwise: Term() called before successful initialization.
...
12:03:47.340 20310 20332 I AKDEBUG       : Wwise warning in AK::SoundEngine::RenderAudio(): AkInitializer.cs Awake() was not executed yet. Set the Script Execution Order properly so the current call is executed after.

This waring above spams to some frequency and then the crash occurs:

18:51:31.352 26104 26104 F DEBUG         : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xd4
18:51:31.352 26104 26104 F DEBUG         : Cause: null pointer dereference
18:51:31.352 26104 26104 F DEBUG         : x0  0000000000000001  x1  00000000000000d4  x2  0000000000000040  x3  00000078699afb60
18:51:31.352 26104 26104 F DEBUG         : x4  0000000000000008  x5  b4000078d20d4180  x6  0000000000000001  x7  0000000000000000
18:51:31.352 26104 26104 F DEBUG         : x8  6302d185d4b4a97c  x9  0000000000000000  x10 0000000000000002  x11 0000000000000100
18:51:31.352 26104 26104 F DEBUG         : x12 fffffffffffffffc  x13 0000000000000001  x14 0000000000000003  x15 ffffffffffffffff
18:51:31.352 26104 26104 F DEBUG         : x16 0000000000000001  x17 0000007b26d72848  x18 0000000000000003  x19 0000000000000038
18:51:31.352 26104 26104 F DEBUG         : x20 0000000000000000  x21 0000000000000040  x22 0000007a29439c40  x23 b400007aa37a3a20
18:51:31.352 26104 26104 F DEBUG         : x24 0000000000000000  x25 0000007a29439c40  x26 0000007882ba79f0  x27 0000000000000000
18:51:31.352 26104 26104 F DEBUG         : x28 0000007a0de9c000  x29 0000007a294386c0
18:51:31.352 26104 26104 F DEBUG         : lr  00000078829afc4c  sp  0000007a29438670  pc  0000007882b76e00  pst 0000000060001000
18:51:31.352 26104 26104 F DEBUG         : backtrace:
18:51:31.352 26104 26104 F DEBUG         : #00 pc 0000000000411e00  /data/app/<long name>/lib/arm64/libAkUnitySoundEngine.so (BuildId: 14124686d1eaba645eb15e19c92962e14cb86e62)
18:51:31.352 26104 26104 F DEBUG         : #01 pc 000000000024ac48  /data/app/<long name>/lib/arm64/libAkUnitySoundEngine.so (BuildId: 14124686d1eaba645eb15e19c92962e14cb86e62)
18:51:31.352 26104 26104 F DEBUG         : #02 pc 0000000000198c94  /data/app/<long name>/lib/arm64/libAkUnitySoundEngine.so (BuildId: 14124686d1eaba645eb15e19c92962e14cb86e62)
18:51:31.352 26104 26104 F DEBUG         : #03 pc 000000000013eb98  /data/app/<long name>/lib/arm64/libAkUnitySoundEngine.so (BuildId: 14124686d1eaba645eb15e19c92962e14cb86e62)
18:51:31.352 26104 26104 F DEBUG         : #04 pc 0000000000150488  /data/app/<long name>/lib/arm64/libAkUnity

in General Discussion by Egill (260 points)
I have a problem that is very similar to this one.
My log show these lines:
...
12-15 00:25:02.981 11347 11370 I Unity : WwiseUnity: Wwise(R) SDK Version 2024.1.1 Build 8691.
12-15 00:25:02.981 11347 11370 I Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
12-15 00:25:02.981 11347 11370 I Unity : AkUnitySoundEngineInitialization:InitializeSoundEngine()
12-15 00:25:02.981 11347 11370 I Unity : AkInitializer:OnEnable()
12-15 00:25:02.981 11347 11370 I Unity : 12-15 00:25:02.990 11347 11370 I Unity : WwiseUnity: Setting Plugin DLL path to: NULL
12-15 00:25:02.990 11347 11370 I Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
12-15 00:25:02.990 11347 11370 I Unity : AkCommonPlatformSettings:get_AkInitializationSettings()
12-15 00:25:02.990 11347 11370 I Unity : AkUnitySoundEngineInitialization:InitializeSoundEngine()
12-15 00:25:02.990 11347 11370 I Unity : AkInitializer:OnEnable()
12-15 00:25:02.990 11347 11370 I Unity :
12-15 00:25:03.000 11347 11451 I VrApi : FPS=72/72,Prd=45ms,Tear=0,Early=0,Stale=0,Stale2/5/10/max=0/0/0/0,VSnc=1,Lat=-1,Fov=0,CPU4/GPU=2/2,1382/456MHz,OC=3F,TA=0/38/38,SP=N/F/F,Mem=1708MHz,Free=2535MB,PLS=0,Temp=30.0C/0.0C,TW=1.22ms,App=3.91ms,GD=0.54ms,CPU&GPU=7.55ms,LCnt=2(DR72,LM2),GPU%=0.43,CPU%=0.11(W0.19),DSF=1.00,CFL=13.35/17.93,ICFLp95=16.77,LD=0,SF=1.00,LP=0,DVFS=0
12-15 00:25:03.014 11347 11370 E Unity : Wwise: Android initialization failure.
12-15 00:25:03.014 11347 11370 E Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
12-15 00:25:03.014 11347 11370 E Unity : AkUnitySoundEnginePINVOKE:CSharp_Init(IntPtr)
12-15 00:25:03.014 11347 11370 E Unity : AkUnitySoundEngineInitialization:InitializeSoundEngine()
12-15 00:25:03.014 11347 11370 E Unity : AkInitializer:OnEnable()
12-15 00:25:03.014 11347 11370 E Unity :
12-15 00:25:03.014 11347 11370 E Unity : WwiseUnity: Failed to initialize the sound engine. Reason: AK_Fail
12-15 00:25:03.014 11347 11370 E Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
12-15 00:25:03.014 11347 11370 E Unity : AkUnitySoundEngineInitialization:InitializeSoundEngine()
12-15 00:25:03.014 11347 11370 E Unity : AkInitializer:OnEnable() 12-15 00:25:03.014 11347 11370 E Unity :
12-15 00:25:03.015 11347 11370 E Unity : Wwise: Term() called before successful initialization.
12-15 00:25:03.015 11347 11370 E Unity : UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
12-15 00:25:03.015 11347 11370 E Unity : AkUnitySoundEnginePINVOKE:CSharp_Term()
12-15 00:25:03.015 11347 11370 E Unity : AkUnitySoundEngineInitialization:InitializeSoundEngine()
12-15 00:25:03.015 11347 11370 E Unity : AkInitializer:OnEnable()
12-15 00:25:03.015 11347 11370 E Unity :
...
Is there any updates on this issue?

Please sign-in or register to answer this question.

...