Android crash on latest version, causes game to crash instantly

public static class AudioManager
    {
        static EventInstance _musicPlayBack;

        public static void Crash()
        {
                _musicPlayBack.stop(FMOD.Studio.STOP_MODE.ALLOWFADEOUT);
        }
    }

Want to crash your Unity android build? But not Developpment build? But not Windows build? Easy! Try the above code! Garenteed to work on the latest FMOD for Unity FMOD plugin 2.02.21.

Just call AudioManager.Crash() on Start!

Logcat :

03-15 00:02:08.012 19085 19169 I Unity   :
03-15 00:02:08.407 19245 19245 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-15 00:02:08.407 19245 19245 F DEBUG   : Build fingerprint: 'samsung/o1qcsx/o1q:14/UP1A.231005.007/G991WVLSAFXB1:user/release-keys'
03-15 00:02:08.407 19245 19245 F DEBUG   : Revision: '14'
03-15 00:02:08.407 19245 19245 F DEBUG   : ABI: 'arm64'
03-15 00:02:08.407 19245 19245 F DEBUG   : Processor: '7'
03-15 00:02:08.407 19245 19245 F DEBUG   : Timestamp: 2024-03-15 00:02:08.254421328-0400
03-15 00:02:08.407 19245 19245 F DEBUG   : Process uptime: 5s
03-15 00:02:08.408 19245 19245 F DEBUG   : Cmdline: com.alderoberge.ages
03-15 00:02:08.408 19245 19245 F DEBUG   : pid: 19085, tid: 19169, name: UnityMain  >>> com.alderoberge.ages <<<
03-15 00:02:08.408 19245 19245 F DEBUG   : uid: 10661
03-15 00:02:08.408 19245 19245 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
03-15 00:02:08.408 19245 19245 F DEBUG   : Cause: null pointer dereference
03-15 00:02:08.408 19245 19245 F DEBUG   :     x0  0000000000000000  x1  0000006f102dfe78  x2  0000006f102dfd70  x3  0000006f102dfd88
03-15 00:02:08.408 19245 19245 F DEBUG   :     x4  0000000000000030  x5  4f4d000000000000  x6  0000000080004d4f  x7  4600706f74535f65
03-15 00:02:08.408 19245 19245 F DEBUG   :     x8  0000000000000000  x9  7e0f2d749ced7435  x10 0000000000000040  x11 0000000000000001
03-15 00:02:08.408 19245 19245 F DEBUG   :     x12 0000000000003fdd  x13 a60a1b3714d3addb  x14 0000000000000001  x15 0000000000000030
03-15 00:02:08.408 19245 19245 F DEBUG   :     x16 0000006df01662f0  x17 0000006df0115f58  x18 0000006ed2043158  x19 0000000000000000
03-15 00:02:08.408 19245 19245 F DEBUG   :     x20 0000000000000000  x21 000000000000001e  x22 0000006efe9bb048  x23 0000000000000000
03-15 00:02:08.408 19245 19245 F DEBUG   :     x24 0000006f102e1000  x25 0000006f11427d20  x26 00000000000000ff  x27 0000000000000000
03-15 00:02:08.408 19245 19245 F DEBUG   :     x28 0000006f102e0580  x29 0000006f102dfea0
03-15 00:02:08.408 19245 19245 F DEBUG   :     lr  0000006df0115f98  sp  0000006f102dfd70  pc  0000006df011b194  pst 0000000060001000
03-15 00:02:08.408 19245 19245 F DEBUG   : 1 total frames
03-15 00:02:08.408 19245 19245 F DEBUG   : backtrace:
03-15 00:02:08.408 19245 19245 F DEBUG   :       #00 pc 00000000000c4194  /data/app/~~qO5cn54ydpGukk-o0DLA9w==/com.alderoberge.ages-7qo0KBYbkjXZyN70b2b_Yg==/lib/arm64/libfmodstudio.so
03-15 00:02:08.433  1479 19251 W ActivityManager: crash : com.alderoberge.ages,10661
03-15 00:02:08.537  1479  5985 I ActivityManager: Process com.alderoberge.ages (pid 19085) has died: prcp TOP (494,2158)
03-15 00:02:08.538  1479  5985 I ActivityManager: Changes in 10661 2 to 19, 63 to 0
03-15 00:02:08.567  1479  5985 I ActivityManager: Changes in 99566 3 to 10, 56 to 0
03-15 00:02:08.567  1479  5985 I ActivityManager: Changes in 10393 5 to 2, 56 to 63

Hi,

I was unable to reproduce the crash. What device are you using that is crashing? When you run the code in editor are there any errors being logged in the console?

hello,

This happened on Samsung galaxy S21 5g, unity 2022.3.19f1

1 Like

Hi,

Thanks for the info. Unfortunately, I still cannot reproduce the issue. Would it be possible to get a copy of your project or a stripped-down version displaying the issue uploaded to your profile? Please note you must register a project with us before uploading files.