You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Return NO from requiresMainQueueSetup to avoid main-queue dispatch_sync at bridge init #6201
Are you using any other error monitoring solution alongside Sentry?
No
Other Error Monitoring Solution Name
No response
@sentry/react-native SDK Version
6.20.0
How does your development environment look like?
⬇ Place the `npx react-native@latest info` output here. ⬇
(REDACTED)
iOS:
hermesEnabled: true
newArchEnabled: true
Sentry.init()
Sentry.init({dsn: 'https://...@sentry.io/...'// other options});
N/A
Steps to Reproduce
RNSentry's +requiresMainQueueSetup currently returns YES (packages/core/ios/RNSentry.mm). Its init only performs a trivial NSObject allocation — no UIKit or main-thread-only work — so it can safely return NO.
Returning YES forces a dispatch_sync onto the main queue during bridge setup, which has been observed as a rare "App Hang" crasher (notably reported by Shopify: https://arc.net/l/quote/kkxmwgdb). Concern grows under the New Architecture where bridge-init timing is tighter.
Proposed change: return NO. Happy to open a PR if it's welcome.
Expected Result
No Crash
Actual Result
Startup crashes
(This is more of a preventative measure as we are cleaning up things and moving to new arch)
Activity
linear-code commentedon May 21, 2026
RN-653
antonis commentedon May 21, 2026
Thank you for reporting 🙇 We are working on a fix with #6202
We'll iterate here once shipped.
github-actions commentedon May 28, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #6202, which was included in the 8.13.0 release.