Search Issue Tracker
Fixed
Fixed in 2020.3.38f1, 2021.3.9f1, 2022.1.16f1, 2022.2.0b8, 2023.1.0a5
Votes
33
Found in
2020.3.33f1
Issue ID
UUM-7051
Regression
No
Android Player crashing in FMOD when targetting SDK Level 31
There are no steps for bug reproduction
Reproducible with: 2020.3.33f1
Notes:
- 3 fixes, which potentially can fix this issue, are being made to audio that were causing crashes
Backtrace:
#00 pc 000000000004fbcc /apex/com.android.runtime/lib64/bionic/libc.so (abort+164)
#00 pc 00000000006d157c /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+668)
#00 pc 000000000001695c /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+76)
#00 pc 0000000000015f8c /apex/com.android.art/lib64/libbase.so (android::base::LogMessage::~LogMessage()+364)
#00 pc 00000000002926b0 /apex/com.android.art/lib64/libart.so (art::Thread::AssertNoPendingException() const+1536)
#00 pc 000000000028ea68 /apex/com.android.art/lib64/libart.so (art::ClassLinker::FindClass(art::Thread*, char const*, art::Handle<art::mirror::ClassLoader>)+64)
#00 pc 00000000005951d0 /apex/com.android.art/lib64/libart.so (art::JNI<false>::FindClass(_JNIEnv*, char const*)+816)
#00 pc 000000000016bbcc /system/lib64/libandroid_runtime.so (android_media_AudioSystem_error_callback(int)+52)
#00 pc 000000000005b104 /system/lib64/libaudioclient.so (android::AudioSystem::get_audio_flinger() (.cfi)+1740)
#00 pc 000000000007f630 /system/lib64/libaudioclient.so (android::AudioTrack::createTrack_l()+64)
#00 pc 00000000000849d4 /system/lib64/libaudioclient.so (android::AudioTrack::restoreTrack_l(char const*)+780)
#00 pc 0000000000087f38 /system/lib64/libaudioclient.so (android::AudioTrack::getTimestamp_l(android::ExtendedTimestamp*)+84)
#00 pc 0000000000086d70 /system/lib64/libaudioclient.so (android::AudioTrack::start()+380)
#00 pc 0000000000018f3c /system/lib64/libwilhelm.so (object_unlock_exclusive_attributes_(Object_interface*, unsigned int, char const*, int)+464)
#00 pc 000000000003401c /system/lib64/libwilhelm.so (IPlay_SetPlayState(SLPlayItf_ const* const*, unsigned int)+116)
#00 pc 00000000009d662c /data/app/~~T4t95Pns5eLNsd9-RX6vWQ==/com.scopely.wheeloffortune-fAQKedd11O6QRZKa9oXx5Q==/lib/arm64/libunity.so (FMOD::OutputOpenSL::startCallback(FMOD_OUTPUT_STATE*))
-
Shefich
Aug 22, 2022 15:49
Unity 2020.3.38 still have FMOD issues. You can check my logs here: https://forum.unity.com/threads/fmod-android-12-crash.1276904/
-
Pyr3z
Aug 09, 2022 23:58
Can confirm @RYANJAY100's repro and temporary fix worked on our end.
-
ryanjay100
Aug 09, 2022 06:45
Workaround for me is to toggle ON "Mute Other Audio Sources" (Player Settings>Player)
-
ryanjay100
Aug 09, 2022 02:26
Hello,
I've been able to reproduce this crash I think with my Samsung Note 10+ Android 12.
You require a bluetooth headset/earphones to repro the crash.
the repro steps for me are:
(1) connect bluetooth Audio device
(2) open app (works fine, audio output is to the bluetooth device)
(3) put app into background (exit to homescreen but don't remove process)
(4) open the app again
(5) observe black screen then crashit seems the crash always happens when a bluetooth device is connected and the app is opened from the background
I've recently looked into bluetooth permissions for a possible fix (as this was one of the big changes coming into os12 ) but to no luck os far.
note that my app only uses the bluetooth device as an audio output, nothing else.
Hope this helps!
https://forum.unity.com/threads/fmod-android-12-crash.1276904/
-
Pyr3z
Aug 09, 2022 01:32
Dropping a comment to keep an eye on this issue ~ nothing new to add, other than perhaps: we found that removing audio from the game removes the crash. (But that's a terrible fix haha)
-
romanscheglov
Aug 05, 2022 08:48
The same issue in Unity 2020.3.18f1, 2020.3.35f1, 2020.3.36f1.
-
tunupgames
Aug 01, 2022 06:17
We are also having the same issue with Unity 2020.3.26f1
-
WonJuneChang
Aug 01, 2022 02:23
Same issue is happening in Unity 2020.3.18f1, 2020.3.35f1, 2020.3.36f1, 2020.3.37f1
This error is found only in android12 -
manasgupta435
Jul 31, 2022 13:57
Same issue is happening in Unity 2021.3.4f1 when SDK is switched to 32.
-
pablo_leban
Jul 06, 2022 22:32
Same issue here Unity 2020.3.34f1, IL2CPP, after switching from SDK 30 to SDK 31.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] Performing hardware comparison using "SAMPLE_TEXTURE2D_SHADOW" results in no shadow being rendered when the GameObject is instantiated manually
- Physics.Raycast fails when a Capsule Collider at a default position is used
- [Silicon] Crash on mono_get_hazardous_pointer when disconnecting Bluetooth Headhpones while in Play Mode
- Switching Project when importing complete project does not import all assets and project opens incomplete
- [Linux] Input.mouseScrollDelta is inconsistent when limiting framerate
Resolution Note (fix version 2023.1.0a5):
Fixed an Android audio crash when targeting API Level 31 and running on an Android 12 device. Also fixed an AudioManager.GetStreamVolume exception when targeting API Level 29 or later, which caused the AudioSettings.Mobile.stopAudioOutputOnMute feature to not work correctly, if enabled.
Resolution Note (fix version 2022.2.0b8):
Android: Fixed an Android audio crash when targeting API Level 31 and running on an Android 12 device. Also fixed an AudioManager.GetStreamVolume exception when targeting API Level 29 or later, which caused the AudioSettings.Mobile.stopAudioOutputOnMute feature to not work correctly, if enabled.
Resolution Note (fix version 2022.1.16f1):
Android: Fixed an Android audio crash when targeting API Level 31 and running on an Android 12 device. Also fixed an AudioManager.GetStreamVolume exception when targeting API Level 29 or later, which caused the AudioSettings.Mobile.stopAudioOutputOnMute feature to not work correctly, if enabled.
Resolution Note (fix version 2021.3.9f1):
Android: Fixed an Android audio crash when targeting API Level 31 and running on an Android 12 device. Also fixed an AudioManager.GetStreamVolume exception when targeting API Level 29 or later, which caused the AudioSettings.Mobile.stopAudioOutputOnMute feature to not work correctly, if enabled.
Resolution Note (fix version 2020.3.38f1):
Android: Fixed an Android audio crash when targeting API Level 31 and running on an Android 12 device. Also fixed an AudioManager.GetStreamVolume exception when targeting API Level 29 or later, which caused the AudioSettings.Mobile.stopAudioOutputOnMute feature to not work correctly, if enabled.