-
-
Notifications
You must be signed in to change notification settings - Fork 338
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 locking up UI thread on launch #3820
Comments
Hi @desmondmc, would you be also able to reproduce it with a sample app for which you could share a source code? Does it only happen on real device or also with Production build and Airplane/Offline mode on simulator? |
Thanks for the quick response @krystofwoldrich
I'll get back to you on this one, hopefully early next week. In the meantime, I'm sure you guys have a sample app internally, are you able to reproduce it?
I tested a release build on a simulator this morning and I wasn't able to reproduce it. Could be because (as far as I know) enabling Airplane mode isn't possible on the iOS simulator. Instead I disabled the wifi on my laptop and tried a bunch to see if I could get it to lock up, but it didn't. |
@desmondmc thanks for the details! cc @brustolin @philipphofmann for some eyes from sentry-cocoa point of view. EDIT: possibly resolved by this PR for this issue on sentry-cocoa |
|
5.22.3 fixed the issue! Thanks @kahest @krystofwoldrich |
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 5.22.2
react-native
version: 0.72.6Are you using Expo?
Are you using sentry.io or on-premise?
If you are using sentry.io, please post a link to your issue so we can take a look:
N/A
Configuration:
(
@sentry/react-native
)I have the following issue:
When launching the app while in airplane mode, calling
Sentry.init
seems to lock up the UI thread. It doesn't happen every time. On my iPhone 14 Pro it's happening ~3-10 launches.The issue started occurring when we updated from
@sentry/react-native
5.17.0 to 5.22.2. We know it's definitelySentry.init
is causing the issue because when we remove it, the problem goes away.We weren't able to reproduce the issue on debug versions of the app. We were only able to reproduce the issue on release versions.
Steps to reproduce:
Actual result:
The app locks up
Expected result:
The app launches as usual.
The text was updated successfully, but these errors were encountered: