-
Notifications
You must be signed in to change notification settings - Fork 557
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
ToneGenerator causes Android crash #89
Comments
Looks like this might affect Android versions 7 and above. After switching to Android 6 with the same configuration, I don't encounter this issue anymore. |
Notice: this issue has been closed because it has been inactive for 141 days. You may reopen this issue if it has been closed in error. |
We just experienced this issue on a Huawei P10 Lite after about 53 minutes of app uptime and continuous location update processing. Attached is a raw crashlog. report-2518520634360549999-1c2588e3-da3f-4de6-8a3e-23c867bae29b.txt |
I've created a proposal to avoid this in release builds as a PR: mauron85/background-geolocation-android#28 Unfortunately I cannot pass the CircleCI testInstrumentation step as the $GCLOUD_SERVICE_KEY might not have been properly formatted? The changeset is tested in local and on the same Huawei P10 Lite mobile phone. |
Instrumentation test failure is because circleci is not set to pass credentials with forked builds.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn't be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it's important. Thank you for your contributions. |
@mauron85 @mark-plukkido @millerbennett I am getting this same crash only on a genymotion device which is used for automation testing. I just wanted to know, Have you guys figured out how to actually fix this crash or what is causing this crash? |
I'm having the crash happen on Android 11 (using an AppInventor extension based on ToneGenerator). |
It appears that the debug sounds are causing at least my app to crash on startup.
Your Environment
Context
Note that debug is set to false, but the debug tones still are getting triggered.
Possible Fix
I've found this StackOverflow thread:
https://stackoverflow.com/questions/13439051/tonegenerator-crash-android/13868360#13868360
Steps to Reproduce
I run this in my componentDidMount on startup (right now, just to test the usage of BackgroundGeolocation):
Debug logs
The text was updated successfully, but these errors were encountered: