Skip to content
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

ANR details SourceFile - io.sentry.android.core.u.g #2328

Open
vgrysh opened this issue Oct 4, 2024 · 5 comments
Open

ANR details SourceFile - io.sentry.android.core.u.g #2328

vgrysh opened this issue Oct 4, 2024 · 5 comments

Comments

@vgrysh
Copy link

vgrysh commented Oct 4, 2024

Platform

Flutter Mobile

Obfuscation

Disabled

Debug Info

Enabled

Doctor

ANR #1 ANR details SourceFile - io.sentry.android.core.u.g

"main" tid=1 Runnable
at io.sentry.android.core.u.f (SourceFile:293)
at io.sentry.android.core.SentryAndroid.lambda$init$1 (SourceFile:157)
at io.sentry.android.core.SentryAndroid.a (SourceFile:1)
at io.sentry.android.core.y0.configure (SourceFile:1)
at io.sentry.Sentry.applyOptionsConfiguration (SourceFile:1)
at io.sentry.Sentry.init (SourceFile:5)
at io.sentry.android.core.SentryAndroid.init (SourceFile:5)
at io.sentry.android.core.SentryAndroid.init (SourceFile:3)
at io.sentry.flutter.SentryFlutterPlugin.initNativeSdk (SourceFile:56)
at io.sentry.flutter.SentryFlutterPlugin.onMethodCall (SourceFile:248)
at io.flutter.plugin.common.MethodChannel$a.onMessage (SourceFile:18)
at io.flutter.embedding.engine.dart.a.e (SourceFile:19)
at io.flutter.embedding.engine.dart.a.f (SourceFile:42)
at io.flutter.embedding.engine.dart.a.a (SourceFile:1)
at v6.a.run (SourceFile:1)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:268)
at android.app.ActivityThread.main (ActivityThread.java:8016)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:627)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:997)

ANR# 2 SourceFile - io.sentry.Sentry.

"main" tid=1 Runnable
at io.sentry.Sentry. (SourceFile:6)
at io.sentry.android.core.SentryAndroid.init (SourceFile:5)
at io.sentry.android.core.SentryAndroid.init (SourceFile:3)
at io.sentry.flutter.SentryFlutterPlugin.initNativeSdk (SourceFile:56)
at io.sentry.flutter.SentryFlutterPlugin.onMethodCall (SourceFile:248)
at io.flutter.plugin.common.MethodChannel$a.onMessage (SourceFile:18)
at io.flutter.embedding.engine.dart.a.e (SourceFile:19)
at io.flutter.embedding.engine.dart.a.f (SourceFile:42)
at io.flutter.embedding.engine.dart.a.a (SourceFile:1)
at v6.a.run (SourceFile:1)
at android.os.Handler.handleCallback (Handler.java:942)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loopOnce (Looper.java:201)
at android.os.Looper.loop (Looper.java:288)
at android.app.ActivityThread.main (ActivityThread.java:7937)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:569)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1019)

Version

8.8.0

Steps to Reproduce

Init Sentry on Login

Expected Result

No ANR

Actual Result

ANR

Are you willing to submit a PR?

No

@buenaflor
Copy link
Contributor

hey, is this always reproducible?

@vgrysh
Copy link
Author

vgrysh commented Oct 7, 2024

Hi, no, we have very few of them, two of one type, two of another.
The scale is small so far. But before the update to the mentioned version, we had 0.
Let me know if I can provide more details

@buenaflor
Copy link
Contributor

buenaflor commented Oct 7, 2024

before the update to the mentioned version

Which version did you use before?

We make constant updates to the latest Sentry Android SDK, there may have been some changes in how ANRs are detected

@buenaflor
Copy link
Contributor

Android 7.15.0 includes some ANR improvements which will be included in the next Flutter release 8.10.0 which may fix this

cc @markushi does this anr look familiar?

@markushi
Copy link
Member

@buenaflor Yes, this looks like an ANR issue occurring on app start and our Android SDK 7.15.0 includes a few improvement in that regard!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Community
Status: Needs More Information
Development

No branches or pull requests

3 participants