Audio related Unity 2022.3 crash is happening!

Hi, there is strange crash related to FMOD. It started to happen when I upgraded from 2021 LTS to 2022.3.36f1 LTS. I didn’t install this plugin but I read that Unity uses it internally. I don’t have a way to reproduce it and it happens on wide variety of devices. Please Help :pray:

Here is the stack trace:

          null pointer dereference: SIGSEGV  0x0000000000000000
#00 pc 0x4f06c libc.so (BuildId: 6df9129278d4aa93fd96a5fdd121f30b)
#01 pc 0xe49988 libunity.so (FMOD::DSPSoundCard::read(void*, unsigned int*, FMOD_SPEAKERMODE, int, unsigned int)) (BuildId: 3f8e30ee3eb2d095)
#02 pc 0xe54900 libunity.so (FMOD::Output::mix(void*, unsigned int)) (BuildId: 3f8e30ee3eb2d095)
#03 pc 0xe618b0 libunity.so (FMOD::OutputOpenSL::updateOutputCallback(SLAndroidSimpleBufferQueueItf_ const* const*, void*)) (BuildId: 3f8e30ee3eb2d095)
#04 pc 0x1c27c libwilhelm.so (BuildId: fafae5bf381b2fd3eda9021728546a25)
#05 pc 0x1ee9c libwilhelm.so (BuildId: fafae5bf381b2fd3eda9021728546a25)
#06 pc 0xa0718 libaudioclient.so (BuildId: 85eab4a7d0764facd7169d2370150351)
#07 pc 0x9f798 libaudioclient.so (BuildId: 85eab4a7d0764facd7169d2370150351)
#08 pc 0x13440 libutils.so (BuildId: a856e2c27f706e8620da01d1c99f842b)
#09 pc 0xcc0fc libandroid_runtime.so (BuildId: 6cf11723a76eec8ef52880f94fda3194)
#10 pc 0xc1b40 libc.so (BuildId: 6df9129278d4aa93fd96a5fdd121f30b)
#11 pc 0x54f20 libc.so (BuildId: 6df9129278d4aa93fd96a5fdd121f30b)
6 Likes

Please report a bug for this.

Have the same issue. Started to appear in Unity 2022.3.34.
Appears in Unity 2022.3.34, 35, 36, 37, 38, 39, 40.

5 Likes

I have the same issues. Started to happen when upgrading to .2022.3.36f

2 Likes

Edit: The title is supposed to be " [Audio related Unity 2022.3 crash is happening!"
Also how do you edit these threads in this new UI. I can’t seem to find it anywhere.

Same issue , continue on Unity 2022.3.39f1

1 Like

Hi folks, thanks for supplying all the information so far.

We’re currently looking into this issue, but are hampered by the lack of an internal reproduction. If you have a reliable reproduction project please let us know (either here or shoot me a DM). That will help speed things up!

backtrace:
#00 pc 0x00000000000892cc /apex/com.android.runtime/lib64/bionic/libc.so (memset+156)
#01 pc 0x0000000000e2204c /data/app/~~9_cJ3JUTpMESU53IPZlicw==/com.sohi.screw.gp-O55pdrYAaLf7enULxMtTTg==/split_config.arm64_v8a.apk!libunity.so (FMOD::DSPSoundCard::read(void*, unsigned int*, FMOD_SPEAKERMODE, int, unsigned int)) (BuildId: 279a1501e3ac628e)

Help

Which version of Unity are you on? Are you able to reproduce the issue reliably?

For me started to appear after I upgraded from Unity 2022.3.33 to 2022.3.34.
Can’t reproduce locally.
Affected versions: 2022.3.34, 2022.3.35, 2022.3.36, 2022.3.37, 2022.3.38, 2022.3.39.

2 Likes
Native StackTrace:

Thread 0 (crashed)
0   libc.so                            0x0000007db76b8d4c <symbols missing for uuid: b91c775ccc9b0556e91bc575a2511cd0> 
1   libunity.so                        0x0000007c98776518 FMOD::DSPSoundCard::read(void*, unsigned int*, FMOD_SPEAKERMODE, int, unsigned int) 
 null pointer dereference: SIGSEGV  0x0000000000000000
#00 pc 0x4bebc libc.so (BuildId: 7589cf4bcb5e11ec06c41940bf849449)
#01 pc 0xc687f0 libunity.so (FMOD::DSPSoundCard::read(void*, unsigned int*, FMOD_SPEAKERMODE, int, unsigned int)) (BuildId: f8ca09c4d9b42f25)
#02 pc 0xc736c0 libunity.so (FMOD::Output::mix(void*, unsigned int)) (BuildId: f8ca09c4d9b42f25)
#03 pc 0xc80670 libunity.so (FMOD::OutputOpenSL::updateOutputCallback(SLAndroidSimpleBufferQueueItf_ const* const*, void*)) (BuildId: f8ca09c4d9b42f25)
#04 pc 0x1bf14 libwilhelm.so (BuildId: 4f85d890b5604fe054e45f317e432454)
#05 pc 0x8adc4 libaudioclient.so (BuildId: bbff0ab60250707c95af3842daa5d26f)
#06 pc 0x8a098 libaudioclient.so (BuildId: bbff0ab60250707c95af3842daa5d26f)
#07 pc 0x12304 libutils.so (BuildId: 84ea9d49b436a137b0824dad5fe22acf)
#08 pc 0xba584 libandroid_runtime.so (BuildId: 4df94453e8aa01950fc7c4bd13114a96)
#09 pc 0x11acc libutils.so (BuildId: 84ea9d49b436a137b0824dad5fe22acf)
#10 pc 0xb3338 libc.so (BuildId: 7589cf4bcb5e11ec06c41940bf849449)
#11 pc 0x516c8 libc.so (BuildId: 7589cf4bcb5e11ec06c41940bf849449)
2 Likes

When will this gain some traction? There seems to be an issue with Unity’s audio system in the latest versions.

3 Likes

I have been having this crash since at least version 2022.3.20 all the way through 2022.3.38. It is affecting 1.5% of my Android users across all Android versions (9-14) and all Android devices. I have not found a pattern or root cause. Here is an example stack trace:

Crashed: Thread: SIGSEGV  0x00424dd300000018
#00 pc 0x16d57f8 libunity.so (FMOD::DSPFilter::read(float**, int*, unsigned int*, FMOD_SPEAKERMODE, int, unsigned int))
#01 pc 0x16d57fc libunity.so (FMOD::DSPFilter::read(float**, int*, unsigned int*, FMOD_SPEAKERMODE, int, unsigned int))
#02 pc 0x16d57fc libunity.so (FMOD::DSPFilter::read(float**, int*, unsigned int*, FMOD_SPEAKERMODE, int, unsigned int))
#03 pc 0x16d57fc libunity.so (FMOD::DSPFilter::read(float**, int*, unsigned int*, FMOD_SPEAKERMODE, int, unsigned int))
#04 pc 0x16d57fc libunity.so (FMOD::DSPFilter::read(float**, int*, unsigned int*, FMOD_SPEAKERMODE, int, unsigned int))
#05 pc 0x16d57fc libunity.so (FMOD::DSPFilter::read(float**, int*, unsigned int*, FMOD_SPEAKERMODE, int, unsigned int))
#06 pc 0x16d57fc libunity.so (FMOD::DSPFilter::read(float**, int*, unsigned int*, FMOD_SPEAKERMODE, int, unsigned int))
#07 pc 0x16d57fc libunity.so (FMOD::DSPFilter::read(float**, int*, unsigned int*, FMOD_SPEAKERMODE, int, unsigned int))
#08 pc 0x16d57fc libunity.so (FMOD::DSPFilter::read(float**, int*, unsigned int*, FMOD_SPEAKERMODE, int, unsigned int))
#09 pc 0x16e5a3c libunity.so (FMOD::DSPSoundCard::read(void*, unsigned int*, FMOD_SPEAKERMODE, int, unsigned int))
#10 pc 0x16f0c08 libunity.so (FMOD::Output::mix(void*, unsigned int))
#11 pc 0x16fdee4 libunity.so (FMOD::OutputOpenSL::updateOutputCallback(SLAndroidSimpleBufferQueueItf_ const* const*, void*))
#12 pc 0x1c054 libwilhelm.so
#13 pc 0x6ddf4 libaudioclient.so
#14 pc 0x6d050 libaudioclient.so
#15 pc 0x13828 libutils.so
#16 pc 0xc3814 libandroid_runtime.so
#17 pc 0xe2364 libc.so
#18 pc 0x83d98 libc.so

Hello Shefich,

Thank you for sharing your experience. We’ve noticed that the crash you described started appearing after you upgraded from Unity 2022.3.33 to 2022.3.34, and it affects versions 2022.3.34 through 2022.3.39.

We’ve also encountered this crash but haven’t been able to reproduce it locally; it only appears in crash logs from users’ devices.

Yesterday, Unity 2022.3.41f1 has been released. Could you please check if the crash still occurs with the latest version? Have you been able to reproduce the issue consistently, and if so, does it persist in the new version?

Thank you!

Tested 2022.3.41f1.
The issue still exist.

2 Likes

How can you share how you tested it? We see it in crashlytics for a subset of our users but couldn’t repro it locally. Can you share repro steps or an example project?

Just updated the app in Google Play and checked Crashlytics.
Don’t have steps to reproduce the issue.

Can’t reproduce either in 2022.3.36f1

Hello fazli_unity,
Thank you for your update. You mentioned that the crash issue was resolved in Unity 2022.3.36f1. Can you confirm if the issue is completely resolved in this version? Have you encountered any crashes or related issues since the upgrade?

We will also upgrade our Unity version based on feedback from you and other users.