-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Dependency causing an ANR in the Background #119
Comments
Thank you for the report. Without seeing the exception message, it's hard to know what is the cause of this. The /**
* @return The human-readable name of the audio device.
*/
public CharSequence getProductName() {
String portName = mPort.name();
return (portName != null && portName.length() != 0) ? portName : android.os.Build.MODEL;
} I guess it could be a |
Thank you for the response! |
If you could get the exception message as well, that would be helpful. Taking a second look, audio_session calls Aside from the error, I'm also suspicious that an error on this line could cause an ANR. One theory is that the cause of the ANR is elsewhere, then the app gets killed, and then this stack trace happens to just reveal what audio_session was doing at the time the app was killed, without that audio_session's activity itself being blocking in any way. That could also explain why there is no exception message. |
We are using the dependency to record the audio, we have noticed that it causing an ANR in the background with the following stack trace.
Dependency version : audio_session: ^0.1.13
Device : Redmi 9 Power
Android version : 12
Flutter doctor :
Stacktrace
Couldn’t reproduce the issue locally as there was no Flutter/dart associated stacktrace.
The text was updated successfully, but these errors were encountered: