# AudioTrack::setVolume Android crash

**URL:** <https://qa.fmod.com/t/audiotrack-setvolume-android-crash/23233>\
**Category:** FMOD Engine\
**Created:** [August 12, 2025, 5:22am UTC](https://qa.fmod.com/t/audiotrack-setvolume-android-crash/23233 "2025-08-12T05:22:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![maksimomelyanchuk](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@maksimomelyanchuk](https://qa.fmod.com/u/maksimomelyanchuk)\
**Post date:** [August 12, 2025, 5:22am UTC](https://qa.fmod.com/t/audiotrack-setvolume-android-crash/23233/1 "2025-08-12T05:22:28Z")

</div>

Hello! We have a crash on Android.  
We use 2.02.27 FMOD version, C++ API, OpenSL output. Different and not old Android versions are affected.  
We don’t know the way how to reproduce it.  
Call stack of the crash:

```auto
* libaudioclient +0x79938 android::AudioTrack::setVolume
* libaudioclient +0xa7b64 android::TrackPlayerBase::playerSetVolume
* libaudioclient +0xa6cb8 android::PlayerBase::setVolume
* libaudioclient +0x4b99c android::media::BnPlayer::onTransact
* libbinder +0x4d6c0 android::BBinder::transact
* libbinder +0x59ea8 android::IPCThreadState::executeCommand
* libbinder +0x59a0c android::IPCThreadState::getAndExecuteCommand
* libbinder +0x5a154 android::IPCThreadState::joinThreadPool
* libbinder +0x80710 <unknown>
* libutils +0x1380c android::Thread::_threadLoop
* libandroid_runtime +0xc4854 android::AndroidRuntime::javaThreadShell
* libc +0xe4fd4 <unknown>
libc +0x84e18 <unknown>

```

Do you have any ideas how to fix it? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![li\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/li_fmod/32/6577_2.png) [@li\_fmod](https://qa.fmod.com/u/li_fmod)\
**Post date:** [August 14, 2025, 11:23pm UTC](https://qa.fmod.com/t/audiotrack-setvolume-android-crash/23233/2 "2025-08-14T23:23:57Z")

</div>

Hi,

Thank you for sharing the version number and stack trace!

Could I please get the exact Android version on the affected devices?

This crash appears to be a known issue in the Android audio system on certain versions and doesn’t seem to originate from FMOD.

I have found a similar discussion and you can read more about it here:

> [@CRASH: AudioTrack::setVolume](https://qa.fmod.com/t/crash-audiotrack-setvolume/19867/2):
>
> The stack traces are almost identical, so I am confident this is the exact same [issue with Oboe on Android 12](https://github.com/google/oboe/issues/538): Your stack trace Known issue stack trace android::AudioTrack::setVolume(float, float) android::AudioTrack::setVolume(float, float) aaudio::AudioStreamTrack::doSetVolume() aaudio::AudioStreamTrack::doSetVolume() aaudio::AudioStream::MyPlayerBase::playerSetVolume() aaudio::AudioStream::MyPlayerBase::playerSetVolume() android::PlayerBase::setVolume(float) android::PlayerBase::s…

---

<div class="post-metadata">

**Author:** ![maksimomelyanchuk](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@maksimomelyanchuk](https://qa.fmod.com/u/maksimomelyanchuk)\
**Post date:** [August 15, 2025, 4:29am UTC](https://qa.fmod.com/t/audiotrack-setvolume-android-crash/23233/3 "2025-08-15T04:29:02Z")

</div>

We have this crash on various Android versions, now it’s from 10 to 13.

---

<div class="post-metadata">

**Author:** ![li\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/li_fmod/32/6577_2.png) [@li\_fmod](https://qa.fmod.com/u/li_fmod)\
**Post date:** [August 17, 2025, 11:29pm UTC](https://qa.fmod.com/t/audiotrack-setvolume-android-crash/23233/4 "2025-08-17T23:29:04Z")

</div>

Thanks for confirming the Android version.

It looks like this is the same [Oboe issue on Android 12](https://github.com/google/oboe/issues/538).

Since it’s actually a [bug](https://android-review.googlesource.com/c/platform/frameworks/av/+/2909337) in the Android audio system and not something FMOD controls, there’s unfortunately nothing we can fix on our side.

One workaround you could try is updating to Android 15 to see if that resolves the issue.

---

<div class="post-metadata">

**Author:** ![Mihec](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Mihec](https://qa.fmod.com/u/Mihec)\
**Post date:** [August 21, 2025, 2:40pm UTC](https://qa.fmod.com/t/audiotrack-setvolume-android-crash/23233/5 "2025-08-21T14:40:20Z")

</div>

Fixed here:

> [@CRASH: AudioTrack::setVolume](https://qa.fmod.com/t/crash-audiotrack-setvolume/19867/3):
>
> Hello! We can see that our users still have such crashes on Android 13, 14. Do you have any information about it? libaudioclient +0x97c4c android::AudioTrack::setVolume \* libaudioclient +0xba1dc android::TrackPlayerBase::playerSetVolume \* libaudioclient +0xb91e8 android::PlayerBase::setVolume \* libaudioclient +0x45adc android::media::BnPlayer::onTransact \* libbinder +0x49840 android::BBinder::transact \* libbinder +0x53234 android::IPCThreadState::executeCommand \* libbinder +0x52d68 android::IPC…

---

<div class="post-metadata">

**Author:** ![maksimomelyanchuk](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@maksimomelyanchuk](https://qa.fmod.com/u/maksimomelyanchuk)\
**Post date:** [August 22, 2025, 3:25am UTC](https://qa.fmod.com/t/audiotrack-setvolume-android-crash/23233/6 "2025-08-22T03:25:36Z")

</div>

It doesn’t work, we set OPENSL output for all devices and vertsions and still have this issue.
