-
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
ANRs causing SIGABRT in 5.5.2 on some devices #1100
Comments
Hi @RicoYao, thanks for raising this. We're looking to reproduce this issue and investigate further now. |
We are not able to reproduce the behaviour described using a OnePlus 7 Pro/7T using the example app in our repo. In our testing, the dialog is shown and the app is automatically terminated by the OS after ~10 seconds with no SIGABRT being raised/reported. Can you please try the example app on the device that was causing this issue, and let us know if this issue still occurs on this app? Additionally:
|
Hi @xander-jones thanks for looking into it.
|
Hi @RicoYao Thanks for the above and for the other information you've been able to share with us via email. Our analysis so far: The failing code is here:
This is just a sanity check in the runtime library. User code should have no means to cause this. From the Android documentation: There are very few places where compiler-filter (or its constant kCompilerFilter) exists in the ART runtime library:
Looking at the dex2oat source, the dex2oat tool sets the compiler-filter value in the finished binary here. The runtime gets this value and puts it into an internal store here. The runtime later calls OatHeader::GetCompilerFilter() as part of its ANR handling process, and that's where the sanity check occurs. In this case it's failing because for whatever reason the compiler-filter value didn't get set earlier by the runtime. The only reference we found to this bug is here, but there wasn’t any follow up. It seems probable that this is an OS/runtime bug in Huawei/OnePlus devices that is triggered more reliably by Bugsnag's ANR handling in conjunction with something specific with this app. Our current thinking is that some sort of tooling or compiler options are causing the assertion to fail. |
Hi @RicoYao To add to our discussion via email for the benefit of anyone else following this issue, we've found evidence of this SIGABRT stacktrace occurring in similar volumes with or without Bugsnag ANR detection enabled. So it seems likely it is an existing OS/runtime bug on certain devices and that Bugsnag's ANR detection is just influencing the timing of whether it occurs in specific testing. I think Bugsnag are unlikely to be able to progress this issue in the absence of a shareable reproduction case. Closing for now but we can re-open to investigate further if more evidence comes to light or you can share a way to reproduce. |
Describe the bug
In v5.5.2 I notice that ANRs cause the app to terminate, and the Google ANR dialog is not shown.
This appears to be dependent on the device. I can reproduce on my OnePlus 7T but NOT on a Pixel 2XL.
The bug does not seem to occur on v5.5.0 and v5.5.1. It seems new in v5.5.2.
Steps to reproduce
Environment
The text was updated successfully, but these errors were encountered: