-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Calling Sentry.setUser(null) on React Native v0.77.1 causes a crash on iOS in production / release mode #4553
Comments
Hi @hrastnik, sadly we are not able to reproduce the crash by calling Could you share with us the whole stack trace of the crash? |
I'm having the same issue on React Native 0.77.1 new arch static linking. I'm calling it in a cleanup of a useEffect. It only crashes in release mode.
|
@krystofwoldrich The crash only happens in production, in iOS release builds. I can try to isolate a repro case later today. |
I reproduced the crash, and we are investigating it now. Update: The issue is in I suspect this change in RN causing it. facebook/react-native#49250 My comment about the unexpected behavior facebook/react-native#49250 (comment) |
@sentry/react-native SDK Version
6.7.0
How does your development environment look like?
Sentry.init()
Steps to Reproduce
npx @sentry/wizard@latest -i reactNative
Sentry.setUser(null)
This is the code which is enough to reproduce the issue:
Result
App crashes with error:
The text was updated successfully, but these errors were encountered: