google / google/oboe

Crash on Samsung Devices Running Android 14 Using Oboe 1.8.1 Library

Open
#2,119 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
4.1k
Forks
639
Avg merge
2d 23h
Merged PRs (30d)
8

Description

Android version(s): 14
Android device(s): Samsung
Oboe version: 1.8.1
App name used for testing: [Warranty Life Smartphone Test](https://play.google.com/store/search?q=warranty+life+app&c=apps&hl=en_CA)

I received 12 crash reports from the Google Play Console related to a crash occurring on select Samsung devices running Android 14. The issue arises while using the Oboe 1.8.1 library with the sample code from the [minimaloboe example](https://github.com/google/oboe/tree/f5d9dc7a6e512e35948ffa97e8489fffc2564ee6/samples/minimaloboe).

This code is used to generate high-frequency audio. The crashes are not widespread and are limited to a few Samsung devices, as indicated by the crash reports.

Crash details:

Error: SimpleNoiseMaker::MyErrorCallback::onErrorAfterClose
Level: Fatal
Segfault
Other devices running Android 14 do not appear to experience this issue.

Stack trace:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 12191 >>> com.warrantylife.diagnostic <<<

backtrace:
#00 pc 0x0000000000005320 /data/app/~~5DKZpKEh5FxpemhEj_aTTg==/packagename-6kU7fbbxsZQHpK4AmG5m5w==/split_config.arm64_v8a.apk!libnoise-maker.so (SimpleNoiseMaker::MyErrorCallback::onErrorAfterClose(oboe::AudioStream*, oboe::Result)+92)
#01 pc 0x000000000002bdc8 /data/app/~~5DKZpKEh5FxpemhEj_aTTg==/packagename-6kU7fbbxsZQHpK4AmG5m5w==/split_config.arm64_v8a.apk!liboboe.so (void* std::__ndk1::__thread_proxy>, void (*)(oboe::AudioStreamAAudio*, oboe::Result), oboe::AudioStreamAAudio*, oboe::Result>>(void*)+4706304)
#02 pc 0x00000000000c3914 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
#03 pc 0x000000000005d084 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68)

**Steps to reproduce**

- Use Oboe 1.8.1 library.
- Implement the exact code from the [minimaloboe example](https://github.com/google/oboe/tree/f5d9dc7a6e512e35948ffa97e8489fffc2564ee6/samples/minimaloboe).
- Run the app on affected Samsung devices running Android 14.
- Observe the crash during high-frequency audio generation.

**Expected behavior**
The app should generate high-frequency audio without crashing on any device.

**Actual behavior**
The app crashes on select Samsung devices with the following fatal error:
SimpleNoiseMaker::MyErrorCallback::onErrorAfterClose.

**Device**
Samsung e3q (Galaxy S24 Ultra)
Samsung Galaxy S21+ (Unlocked US Version)
Samsung Galaxy S21+
Samsung Galaxy S23 FE

Additional Notes:
This issue is isolated to certain Samsung devices running Android 14, as seen in the crash reports from the Google Play Console.
Any guidance on resolving or debugging this issue, or a workaround for Samsung-specific behavior, would be highly appreciated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.