FMOD null pointer on Android - crash at startup

I’m unable to start my game on android. I find it opens to a black screen and spits out these errors in the logs:

09-07 20:38:19.245 20924 20924 E InputEventReceiver: Exception dispatching input event.
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI: Version '2020.3.17f1 (a4537701e4ab)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI: Build fingerprint: 'samsung/p3quew/p3q:11/RP1A.200720.012/G998U1UEU4AUGQ:user/release-keys'
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI: Revision: '18'
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI: ABI: 'arm64'
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI: Timestamp: 2021-09-07 20:38:18-0700
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI: pid: 20924, tid: 21900, name: Thread-9  >>> studio.shortsleeve.voodoodetective <<<
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI: uid: 10471
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI: Cause: null pointer dereference
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI:     x0  0000000000000000  x1  0000006cb8dd5c88  x2  0000006cb8dd5ca8  x3  0000000000000040
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI:     x4  0000000000000010  x5  0000000000000000  x6  0080000000000000  x7  525e434e4c44ff60
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI:     x8  0000000000000000  x9  0000000000000000  x10 0000000000000000  x11 71eb000000040104
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI:     x12 0000000000000000  x13 0000000001d70688  x14 0000000001d70688  x15 a52db9b232b00a3e
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI:     x16 0000006cb1da29a8  x17 0000006cb1d41080  x18 0000006d8fdea000  x19 0000000000000000
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI:     x20 000000000000001e  x21 0000000000000003  x22 0000006cb2280e20  x23 0000006cb21fa180
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI:     x24 0000006cb223c200  x25 0000006cb8dd7000  x26 0000006c800235e0  x27 0000006c8002d2f0
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI:     x28 0000000000000000  x29 0000006cb8dd5da0
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI:     sp  0000006cb8dd5c80  lr  0000006cb1d410c8  pc  0000006cb1d410d8
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI:
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI: backtrace:
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI:       #00 pc 00000000000b80d8  /data/app/~~0e8aNHx-v4C_K2HnHbDxBA==/studio.shortsleeve.voodoodetective-TZTDmd5dUbzVcDTYnqw9BQ==/lib/arm64/libfmodstudio.so (FMOD::Studio::EventInstance::setUserData(void*)+88)
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI:
09-07 20:38:19.245 20924 20924 E MessageQueue-JNI: 	at libfmodstudio.FMOD::Studio::EventInstance::setUserData(void*)(setUserData:88)
09-07 20:38:19.245 20924 20924 E AndroidRuntime: FATAL EXCEPTION: main
09-07 20:38:19.245 20924 20924 E AndroidRuntime: Process: studio.shortsleeve.voodoodetective, PID: 20924
09-07 20:38:19.245 20924 20924 E AndroidRuntime: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-07 20:38:19.245 20924 20924 E AndroidRuntime: Version '2020.3.17f1 (a4537701e4ab)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
09-07 20:38:19.245 20924 20924 E AndroidRuntime: Build fingerprint: 'samsung/p3quew/p3q:11/RP1A.200720.012/G998U1UEU4AUGQ:user/release-keys'
09-07 20:38:19.245 20924 20924 E AndroidRuntime: Revision: '18'
09-07 20:38:19.245 20924 20924 E AndroidRuntime: ABI: 'arm64'
09-07 20:38:19.245 20924 20924 E AndroidRuntime: Timestamp: 2021-09-07 20:38:18-0700
09-07 20:38:19.245 20924 20924 E AndroidRuntime: pid: 20924, tid: 21900, name: Thread-9  >>> studio.shortsleeve.voodoodetective <<<
09-07 20:38:19.245 20924 20924 E AndroidRuntime: uid: 10471
09-07 20:38:19.245 20924 20924 E AndroidRuntime: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10
09-07 20:38:19.245 20924 20924 E AndroidRuntime: Cause: null pointer dereference
09-07 20:38:19.245 20924 20924 E AndroidRuntime:     x0  0000000000000000  x1  0000006cb8dd5c88  x2  0000006cb8dd5ca8  x3  0000000000000040
09-07 20:38:19.245 20924 20924 E AndroidRuntime:     x4  0000000000000010  x5  0000000000000000  x6  0080000000000000  x7  525e434e4c44ff60
09-07 20:38:19.245 20924 20924 E AndroidRuntime:     x8  0000000000000000  x9  0000000000000000  x10 0000000000000000  x11 71eb000000040104
09-07 20:38:19.245 20924 20924 E AndroidRuntime:     x12 0000000000000000  x13 0000000001d70688  x14 0000000001d70688  x15 a52db9b232b00a3e
09-07 20:38:19.245 20924 20924 E AndroidRuntime:     x16 0000006cb1da29a8  x17 0000006cb1d41080  x18 0000006d8fdea000  x19 0000000000000000
09-07 20:38:19.245 20924 20924 E AndroidRuntime:     x20 000000000000001e  x21 0000000000000003  x22 0000006cb2280e20  x23 0000006cb21fa180
09-07 20:38:19.245 20924 20924 E AndroidRuntime:     x24 0000006cb223c200  x25 0000006cb8dd7000  x26 0000006c800235e0  x27 0000006c8002d2f0
09-07 20:38:19.245 20924 20924 E AndroidRuntime:     x28 0000000000000000  x29 0000006cb8dd5da0
09-07 20:38:19.245 20924 20924 E AndroidRuntime:     sp  0000006cb8dd5c80  lr  0000006cb1d410c8  pc  0000006cb1d410d8
09-07 20:38:19.245 20924 20924 E AndroidRuntime:
09-07 20:38:19.245 20924 20924 E AndroidRuntime: backtrace:
09-07 20:38:19.245 20924 20924 E AndroidRuntime:       #00 pc 00000000000b80d8  /data/app/~~0e8aNHx-v4C_K2HnHbDxBA==/studio.shortsleeve.voodoodetective-TZTDmd5dUbzVcDTYnqw9BQ==/lib/arm64/libfmodstudio.so (FMOD::Studio::EventInstance::setUserData(void*)+88)
09-07 20:38:19.245 20924 20924 E AndroidRuntime:
09-07 20:38:19.245 20924 20924 E AndroidRuntime: 	at libfmodstudio.FMOD::Studio::EventInstance::setUserData(void*)(setUserData:88)

Is this a bug?

Could you try again with the logging version of FMOD? It gives better crash callstacks.

Sure thing! Here’s that:

09-08 18:36:05.323  1206  2211 E ActivityTaskManager: Checking for the Active launch isPkgEverLaunched :false, isPkgStopped : true, isPkgSuspended : false
09-08 18:36:05.327  3624  2826 E pageboostd: alp start : app studioshortsleevevoodoodetective
09-08 18:36:05.331  3624  2826 E pageboostd: studioshortsleevevoodoodetective, amt 0 scnt 0 fcnt 0
09-08 18:36:05.331  3624  2826 E pageboostd: studioshortsleevevoodoodetective, amt 0 scnt 0 fcnt 0
09-08 18:36:05.331  3624  2826 E pageboostd: alp end : app studioshortsleevevoodoodetective data_amount 0
09-08 18:36:05.333  1059  1103 E ANDR-PERF-RESOURCEQS: Failed to apply optimization [7, 3]
09-08 18:36:05.333  1128  3556 E NativeCustomFrequencyManager: [NativeCFMS] BpCustomFrequencyManager::acquire()
09-08 18:36:05.349  1206  1206 E Native_CFMS: nativePerfMgrSendFps    Fail    fps : 120    return : -1
09-08 18:36:05.426  3624  3624 E pageboostd: Received HALT command code 2
09-08 18:36:05.438   925   930 E statsd  : Predicate -7037417284711607308 dropping data for dimension key (10)0x2010101->10473[I] (10)0x30000->*launch*[S]
09-08 18:36:05.438   925   930 E statsd  : Predicate 5980654721335871649 dropping data for dimension key (10)0x2010101->10473[I] (10)0x30000->*launch*[S]
09-08 18:36:05.453   926   960 E Netd    : getNetworkForDns: getNetId from enterpriseCtrl is netid 0
09-08 18:36:05.457   926   966 E Netd    : getNetworkForDns: getNetId from enterpriseCtrl is netid 0
09-08 18:36:05.521  3624  3624 E pageboostd: Received HALT command code 2
09-08 18:36:05.525  1206  2152 E PkgPredictorService-Collector: record changed bt=1  wifi=1 screen=0
09-08 18:36:05.527  2667 14354 E [AirCmd]_BleSpenManager: getDetectorParams : Main controller is null!
09-08 18:36:05.530  2667 14354 E [AirCmd]_BleSpenManager: enableDoubleClickDetection : Main controller is null!
09-08 18:36:05.567  2904  2904 E ng.android.dsm: Not starting debugger since process cannot load the jdwp agent.
09-08 18:36:05.618   925   930 E statsd  : Predicate -7037417284711607308 dropping data for dimension key (10)0x2010101->10473[I] (10)0x30000->*launch*[S]
09-08 18:36:05.619   925   930 E statsd  : Predicate 5980654721335871649 dropping data for dimension key (10)0x2010101->10473[I] (10)0x30000->*launch*[S]
09-08 18:36:05.636   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.646  3624  3624 E pageboostd: Received HALT command code 2
09-08 18:36:05.670  1206  1303 E WindowManager: win=Window{f9b4f5e u0 Splash Screen studio.shortsleeve.voodoodetective EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0 caller=com.android.server.wm.ActivityRecord.destroySurfaces:5251 com.android.server.wm.ActivityRecord.destroySurfaces:5232 com.android.server.wm.WindowState.onExitAnimationDone:5623 com.android.server.wm.WindowStateAnimator.onAnimationFinished:332 com.android.server.wm.WindowState.onAnimationFinished:6088 com.android.server.wm.-$$Lambda$dwJG8BAnLlvKNGuDY9U3-haNY4M.onAnimationFinished:2 com.android.server.wm.SurfaceAnimator.lambda$getFinishedCallback$0$SurfaceAnimator:112
09-08 18:36:05.690 11780 11780 E ActivityThread: Failed to find provider info for com.samsung.systemui.navillera.navilleraprovider
09-08 18:36:05.700  1206  4506 E WindowManager: win=Window{4d11331 u0 com.samsung.android.app.cocktailbarservice/com.samsung.android.app.cocktailbarservice.CocktailBarService} destroySurfaces: appStopped=true win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.WindowManagerService.tryStartExitingAnimation:2920 com.android.server.wm.WindowManagerService.relayoutWindow:2627 com.android.server.wm.Session.relayout:219 android.view.IWindowSession$Stub.onTransact:871 com.android.server.wm.Session.onTransact:145 android.os.Binder.execTransactInternal:1190 android.os.Binder.execTransact:1159
09-08 18:36:05.702   926   966 E Netd    : getNetworkForDns: getNetId from enterpriseCtrl is netid 0
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.745   601  2930 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
09-08 18:36:05.879  1128  1128 E Layer   : [Surface(name=Task=170)/@0xcbfb8e9 - animation-leash#0] No local sync point found
09-08 18:36:05.879  1128  1128 E Layer   : [Surface(name=Task=1)/@0xc677e39 - animation-leash#0] No local sync point found
09-08 18:36:05.917 11780 11780 E ActivityThread: Failed to find provider info for com.samsung.systemui.navillera.navilleraprovider
09-08 18:36:05.919  1206  4997 E WindowManager: win=Window{ddb62c2 u0 com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity} destroySurfaces: appStopped=true win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.ActivityRecord.destroySurfaces:5251 com.android.server.wm.ActivityRecord.destroySurfaces:5232 com.android.server.wm.ActivityRecord.notifyAppStopped:5291 com.android.server.wm.ActivityRecord.activityStopped:5918 com.android.server.wm.ActivityTaskManagerService.activityStopped:2595 android.app.IActivityTaskManager$Stub.onTransact:2223 android.os.Binder.execTransactInternal:1190
09-08 18:36:05.919  1206  1206 E Native_CFMS: nativePerfMgrSendFps    Fail    fps : 120    return : -1
09-08 18:36:05.939  1206  1300 E Native_CFMS: nativePerfMgrRemoveTask    Fail    tid : 2690    return : -1
09-08 18:36:05.939  1206  1300 E Native_CFMS: nativePerfMgrRemoveTask    Fail    tid : 5220    return : -1
09-08 18:36:06.037  1206  1341 E Watchdog: !@Sync: 2840 heap: 85 / 98 objects: 1539204 WaitTime: 0.000 GCcnt: 5 LongWaitCnt: 0 FullGC: 0 FD: 768 [2021-09-08 18:36:06.037] sdogWay:softdog
09-08 18:36:06.086  1206  4997 E WallpaperManagerService: landscapeColors is calculated already
09-08 18:36:06.196   601  3035 E CRASH   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-08 18:36:06.196   601  3035 E CRASH   : Version '2020.3.17f1 (a4537701e4ab)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
09-08 18:36:06.196   601  3035 E CRASH   : Build fingerprint: 'samsung/p3quew/p3q:11/RP1A.200720.012/G998U1UEU4AUGQ:user/release-keys'
09-08 18:36:06.196   601  3035 E CRASH   : Revision: '18'
09-08 18:36:06.196   601  3035 E CRASH   : ABI: 'arm64'
09-08 18:36:06.196   601  3035 E CRASH   : Timestamp: 2021-09-08 18:36:06-0700
09-08 18:36:06.196   601  3035 E CRASH   : pid: 601, tid: 3035, name: Thread-9  >>> studio.shortsleeve.voodoodetective <<<
09-08 18:36:06.196   601  3035 E CRASH   : uid: 10473
09-08 18:36:06.196   601  3035 E CRASH   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x15c
09-08 18:36:06.196   601  3035 E CRASH   : Cause: null pointer dereference
09-08 18:36:06.196   601  3035 E CRASH   :     x0  0000000000000800  x1  0000006c6bb1aef0  x2  00000000000000fa  x3  0000006c6bb20c67
09-08 18:36:06.196   601  3035 E CRASH   :     x4  0000006c6bb13f4c  x5  000000000000001e  x6  0000006c6bb14c58  x7  5e434e4c44ff6073
09-08 18:36:06.196   601  3035 E CRASH   :     x8  0000000000000000  x9  0000006c6bb9ea90  x10 0000000000000000  x11 6cb5000000040104
09-08 18:36:06.196   601  3035 E CRASH   :     x12 0000000000000000  x13 0000000001db7f44  x14 0000000001db7f44  x15 ffffffffffffffff
09-08 18:36:06.196   601  3035 E CRASH   :     x16 0000006c6bb9f998  x17 0000006c6baa5c00  x18 0000006d9d3ea000  x19 0000006c6bb20c67
09-08 18:36:06.196   601  3035 E CRASH   :     x20 00000000000000fa  x21 0000000000000800  x22 0000006c6c0c1920  x23 0000006c6bb13f4c
09-08 18:36:06.196   601  3035 E CRASH   :     x24 0000006c6bba0de0  x25 0000006ca0d38000  x26 0000006c700239b0  x27 0000000000800101
09-08 18:36:06.196   601  3035 E CRASH   :     x28 0000006c7002de80  x29 0000006ca0d36a50
09-08 18:36:06.196   601  3035 E CRASH   :     sp  0000006ca0d363e0  lr  0000006c6bab0a88  pc  0000006c6bb0a23c
09-08 18:36:06.196   601  3035 E CRASH   : backtrace:
09-08 18:36:06.196   601  3035 E CRASH   :       #00 pc 000000000018023c  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libfmodstudioL.so
09-08 18:36:06.196   601  3035 E CRASH   :       #01 pc 0000000000126a84  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libfmodstudioL.so
09-08 18:36:06.196   601  3035 E CRASH   :       #02 pc 0000000000122c00  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libfmodstudioL.so
09-08 18:36:06.196   601  3035 E CRASH   :       #03 pc 000000000011bc2c  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libfmodstudioL.so (FMOD::Studio::EventInstance::setUserData(void*)+44)
09-08 18:36:06.196   601  3035 E CRASH   :       #04 pc 00000000008f0d80  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libil2cpp.so (BuildId: ee5b1c94e0c4d6fc5b6dd8f8a4d274740df73f28)
09-08 18:36:06.196   601  3035 E CRASH   :       #05 pc 00000000009fba08  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libil2cpp.so (BuildId: ee5b1c94e0c4d6fc5b6dd8f8a4d274740df73f28)
09-08 18:36:06.196   601  3035 E CRASH   :       #06 pc 00000000009fb690  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libil2cpp.so (BuildId: ee5b1c94e0c4d6fc5b6dd8f8a4d274740df73f28)
09-08 18:36:06.196   601  3035 E CRASH   :       #07 pc 00000000009fbbe8  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libil2cpp.so (BuildId: ee5b1c94e0c4d6fc5b6dd8f8a4d274740df73f28)
09-08 18:36:06.196   601  3035 E CRASH   :       #08 pc 0000000000635260  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libil2cpp.so (BuildId: ee5b1c94e0c4d6fc5b6dd8f8a4d274740df73f28)
09-08 18:36:06.196   601  3035 E CRASH   :       #09 pc 0000000000557d0c  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libil2cpp.so (BuildId: ee5b1c94e0c4d6fc5b6dd8f8a4d274740df73f28)
09-08 18:36:06.196   601  3035 E CRASH   :       #10 pc 000000000054de2c  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libil2cpp.so (BuildId: ee5b1c94e0c4d6fc5b6dd8f8a4d274740df73f28)
09-08 18:36:06.196   601  3035 E CRASH   :       #11 pc 0000000000556414  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libil2cpp.so (BuildId: ee5b1c94e0c4d6fc5b6dd8f8a4d274740df73f28)
09-08 18:36:06.196   601  3035 E CRASH   :       #12 pc 00000000005205d8  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libil2cpp.so (il2cpp_object_new+8) (BuildId: ee5b1c94e0c4d6fc5b6dd8f8a4d274740df73f28)
09-08 18:36:06.196   601  3035 E CRASH   :       #13 pc 00000000006ac09c  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (scripting_unity_engine_object_new_and_invoke_default_constructor(ScriptingClassPtr, Object*, ScriptingExceptionPtr*)+32) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.196   601  3035 E CRASH   :       #14 pc 00000000006fc2a0  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (SerializableManagedRef::RebuildMonoInstance(Object*, ScriptingClassPtr, ScriptingObjectPtr, MonoScript*)+224) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.196   601  3035 E CRASH   :       #15 pc 0000000000700fbc  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (PersistentManager::ProduceObject(SerializedFile&, SerializedObjectIdentifier, int, ObjectCreationMode, PersistentManager::LockFlags)+784) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #16 pc 0000000000700c44  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (PersistentManager::CreateThreadActivationQueueEntry(SerializedFile&, SerializedObjectIdentifier, int, bool, PersistentManager::LockFlags)+184) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #17 pc 00000000006ff830  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (PersistentManager::PreallocateObjectThreaded(int, PersistentManager::LockFlags)+252) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #18 pc 0000000000335f9c  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (void ImmediatePtr<Unity::Component>::Transfer<StreamedBinaryRead>(StreamedBinaryRead&)+296) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #19 pc 0000000000336080  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (void GameObject::ComponentPair::Transfer<StreamedBinaryRead>(StreamedBinaryRead&)+16) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #20 pc 0000000000336050  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (void StreamedBinaryRead::TransferSTLStyleArray<dynamic_array<GameObject::ComponentPair, 0ul> >(dynamic_array<GameObject::ComponentPair, 0ul>&, TransferMetaFlags)+112) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #21 pc 0000000000332178  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (void GameObject::TransferComponents<StreamedBinaryRead>(StreamedBinaryRead&)+64) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #22 pc 0000000000331fd8  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (void GameObject::Transfer<StreamedBinaryRead>(StreamedBinaryRead&)+52) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #23 pc 000000000033137c  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (GameObject::VirtualRedirectTransfer(StreamedBinaryRead&)+48) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #24 pc 00000000007113e0  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (SerializedFile::ReadObject(long, ObjectCreationMode, bool, TypeTree const**, bool*, Object&)+692) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #25 pc 00000000007011cc  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (PersistentManager::ReadAndActivateObjectThreaded(int, SerializedObjectIdentifier const&, SerializedFile*, bool, bool, PersistentManager::LockFlags)+272) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #26 pc 0000000000701950  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (PersistentManager::LoadFileCompletelyThreaded(core::basic_string_ref<char>, long*, int*, int, PersistentManager::LoadFlags, LoadProgress&, PersistentManager::LockFlags)+716) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #27 pc 00000000004a02e4  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (LoadSceneOperation::Perform()+1664) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #28 pc 00000000004a20c8  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (PreloadManager::ProcessSingleOperation()+60) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #29 pc 00000000004a1f08  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (PreloadManager::Run()+132) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #30 pc 00000000004a1e70  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (PreloadManager::Run(void*)+40) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.197   601  3035 E CRASH   :       #31 pc 000000000064f6f4  /data/app/~~w0ENEvFL8b5haL8w2dydMw==/studio.shortsleeve.voodoodetective-E3ZlIc4zpAmyRywylAFc9g==/lib/arm64/libunity.so (Thread::RunThreadWrapper(void*)+512) (BuildId: ce5555ffe83d926b8a7e8e2112b046a5a5364d52)
09-08 18:36:06.199   601  3035 E CRASH   :       #32 pc 00000000000b6234  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: a9be8f8e3ba7df39d3fe4858932ef34b)
09-08 18:36:06.199   601  3035 E CRASH   :       #33 pc 0000000000050e64  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: a9be8f8e3ba7df39d3fe4858932ef34b)

Thanks, we’ll also need to know your FMOD version to look up the appropriate symbols to read the crash stack.

Sure thing:
FMOD: 2.01.11
Unity: 2020.3.17f1

Thanks, it looks like your code is calling FMOD::Studio::EventInstance::setUserData before the System has been created, can you check if any of your scripts are calling into that API and when that’s happening?

Our game has a “preload” scene that instantiates a bunch of stuff before loading the actual game. Nowhere in that scene do we call setUserData and the android build never gets to load another scene before this crash so I don’t think it’s something we’re calling. Also, it only seems to be happening on android.

Could you try doing a full search for “setUserData” in all scripts, including FMOD scripts. I’ve done the same here and I cannot find anywhere we call that API as part of the integration. If that comes up with nothing I suspect the crash trace is playing tricks on us and I’ll need to make the debug symbols available to you to try and get a better crash stack.

Hey Mathew, thanks for taking a look into this. I totally messed up. I didn’t realize we had a static initializer that was calling those methods. For whatever reason, everything works on all platforms except Android. I’m not sure why that is, but I’ve fixed the problem and it’s working now.

Sorry to take up your time, and thanks again!

No worries, I’m glad you were able to get to the bottom of it.

The reason it might be different on Android vs other platforms is because on Android the FMOD code is split over two binaries. Where other platforms are implemented as just one. The code that was crashing was something from libfmodstudio that gets initialized in libfmod via Studio::systemCreate.

Ahhh that makes sense to me. Thanks for explaining!