-
-
Notifications
You must be signed in to change notification settings - Fork 441
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
Sentry.init() causes ANR #2941
Comments
Hi @kylannjohnson thanks for reporting. I assume you have disabled auto-init following the docs instructions, right? <application>
<meta-data android:name="io.sentry.auto-init" android:value="false" />
</application> I also, think this is probably a dupe of #2541, let me know if it isn't. Otherwise I'd track it there |
Hey @romtsn . Yes on both counts: we turn off auto init and I think that the issue is the eager initialization. Thanks for pointing me to the existing issue. |
alright, i'm gonna close this one then, let's track it there. We'll try to find resources and fix that shortly. thanks! |
Integration
sentry-android
Build System
Gradle
AGP Version
8.1.0
Proguard
Enabled
Version
6.26.0
Steps to Reproduce
Call Sentry.init() in the onCreate method of the Application class, per the docs
Expected Result
For construction of a No-op, you would expect no hit to performance and thus no chance of ANR.
Actual Result
I replaced our app-specifc paths in the ANR stack trace below. It looks like the ANR is happening on construction of the NoOp Hub
The text was updated successfully, but these errors were encountered: