-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Crash 2 #1212
Comments
Was this running on a real device or emulator? Was it connected to a debugger at the time it crashed? I've only ever seen this when running the app on a device connected to a debugger, such as what is described in #1195 If it is reproducible, then why not just put a breakpoint on |
Hey @rh101 The issue is not reproducible in any of our test devices. Crash logs are from Google Play live users. |
Is this a sporadic issue (only some devices/users), right? |
@kiranb47 Are you by any chance calling For example, in the Cocos2d CPP template, there is this section in
|
I just had an idea and tested it out, and managed to reproduce this issue consistently.
This causes the audio section to throw an error, which closes the stream. Audio in the app no longer works, and eventually it will crash because of 2 different issues.
When I received a phone call, I saw this in logcat:
@halx99 This shouldn't be happening, right? I've never tested this scenario before, but this causes the same issue described in #1195 |
@aismann 5.2% users affected |
I create a PR to switch default audio backend to opensl, plz update and check. |
I'll merge the PR in locally and test it now |
@halx99 Using OpenSL, everything is working fine, with no errors or crashes at all. Making and receiving phone calls resulted in this logcat output, which looks normal, with no errors:
The app audio worked fine after the phone call terminated. Also, no more audio issues or crashes when using a debugger and breakpoints as described in #1195. |
@rh101 thanks for you test, merged |
refer to https://chromium.googlesource.com/external/github.com/google/oboe/+/refs/tags/1.5.0/docs/OpenSLESMigration.md#stream-disconnection, the oboe with |
Fair enough. Would it be beneficial to eventually re-enable OBOE in the future and add support for recreating the stream on any error conditions? Using OpenSL right now is the right move to prevent the crashes, but I'm not sure if anyone requires the extra functionality available with OBOE, so I can't comment on that. |
I think opensl is enough, but I also create a bugfix PR for openal-soft: kcat/openal-soft#848 |
Steps to Reproduce:
We have migrated our Match Animal game to Axmol from Cocos2dx V3 latest yesterday. Getting this crash now. How to fix this issue?
terminating with uncaught exception of type al::backend_exception: Failed to stop stream: ErrorClosed
The text was updated successfully, but these errors were encountered: