-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
io.flutter.embedding.engine.FlutterJNI.nativeSurfaceChanged: ANR triggered by slow operations in main thread #147155
Comments
Thanks for the report @radivojeostojic |
@darshankawar Thanks for the response! I tried testing the Flutter crash issue on my test phone (Samsung S8+) but wasn't able to reproduce the crash. I’ll try to find a Xiaomi device to test on today and will keep you updated. |
Today, I experienced an ANR after I attempted to put the app in the background and lock the device (Samsung s8+). Upon unlocking the device and bringing the app back to the foreground, I encountered a crash. Interestingly, the log output from this incident appears different from what I observe in the Crashlytics dashboard:
|
@radivojeostojic This seems to be different issue that you originally reported. For the original one, as discussed earlier, we would need reproducible code or atleast replication pattern. |
@darshankawar We still haven't been able to reproduce this issue on our local devices. What I can say is that this issue occurs in every new version of the app and generally affects a large number of users, especially on Android 14 devices. I am sending the latest log from Android Vitals:
|
Most of the log is coming from native Android ART, so without reproducible code sample or atleast replicable pattern, we can't make the issue actionable. |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to reproduce
There is no actual steps to reproduce this issue. It happens randomly for users in production
Expected results
We shouldn't encounter these issues, whether in Android Vitals or Crashlytics.
Actual results
We've observed ANRs appearing in both Android Vitals and Crashlytics, leading our app to surpass the Android Vitals' threshold for poor performance due to this issue.
Code sample
No actual code is connected with this issue
Screenshots or Video
Screenshots / Video demonstration
Logs
Logs
Second log:
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: