sentry-dart icon indicating copy to clipboard operation
sentry-dart copied to clipboard

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

Open vgrysh opened this issue 1 year ago • 5 comments

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

vgrysh avatar Oct 04 '24 14:10 vgrysh

hey, is this always reproducible?

buenaflor avatar Oct 07 '24 11:10 buenaflor

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

vgrysh avatar Oct 07 '24 12:10 vgrysh

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 avatar Oct 07 '24 12:10 buenaflor

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?

buenaflor avatar Oct 10 '24 13:10 buenaflor

@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!

markushi avatar Oct 11 '24 16:10 markushi

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Nov 02 '24 07:11 getsantry[bot]