-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[iOS] Crash in MutableValue::set #3632
Comments
Hey! 👋 It looks like you've omitted a few important sections from the issue template. Please complete Snack or a link to a repository section. |
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
Hey @DanijelBojcic, thanks for opening this issue. Can you please prepare a minimal viable reproduction for this bug? |
Unfortunately I do not know how to reproduce it... Also maybe I should mention that we are using react-native-multithreading / react-native-vision-camera custom implementation for state management with MMKV, that notifies the JS if there is a change. I assume the crash comes from rapidly calling |
we are seeing this issue as well iOS 16 only React Native version 68.5 |
Any Update on this? |
I think we are seeing this too. For us, it was from the same JS migration that led to #3917 (which contains a repro repository). We didn't change our package versions at all - just migrated the JS API to use After making this change, we started seeing We've also seen a spike in OOM reports on iOS only, so maybe related to #2824, but I don't have any strong evidence of that. |
Same error here, cannot find the cause. Removed animations from the specific screen where it crashes (according to logs) and strangely still having this issue |
Same here:
|
Hi, any update on this ? |
Same here, we're seeing this issue after the app is put in the background. Don't really know how it's possible but sentry shows a lot of "going to background" logs in a row, without any "going active". I think we gotta wait : #3917 |
@TwistedMinda in that other thread people said upgrading to reanimated 3 fixes the issue, are you thinking that might do the same here? A stable 3 was released last month so it should be doable. |
@jayfeldman12 I think successfully upgrading to reanimated 3 is gonna fix a lot of bug including this one yes, but I still can't confirm this as I'm stuck by another library currently |
After successfully migrating to reanimated v3 and react-native 0.71.3 all reanimated-related errors on Sentry are gone for me, an awesome step up |
Can anyone else confirm the migration to v3 is viable solution? If so, what react-native version are you running? We experience problems only on iOS, only in production and we struggle to reproduce it regularly as well. We are currently having two options. Get rid of reanimated completely or migrate it, but migrate whole project to latest RN version (and all libraries) is not an option. |
@maXXCZ1 Reanimated 3.3.0 is the most stable version ever so I'd recommend upgrading. Let me know if you encounter any problems, we're happy to help. |
@nandorojo "Attempted to dereference garbage pointer" looks familiar but the stack trace doesn't so can't say for sure. Could you send me over the whole stack trace? |
@zhou0506 No, there's no "reanimated" or "screens" anywhere in the stack trace. |
Hello, any update on this ? |
@jamogon On what exactly? |
Hey everyone, it seems this issue may be a bit outdated since we rewrote the Shared Value implementation in Reanimated 3. To not confuse anyone, I'll close this issue. If the problem persists in Reanimated 3, please feel free to open a new issue with a reproduction, and we will do our best to assist you. 🫡 |
Description
My app is crashing in production.
It usually happens at app start. About every 5th app start will end in crash.
The stacktrace I get from crashlytics:
Steps to reproduce
I can only catch it in debug when opening and closing app rapidly.
Snack or a link to a repository
Reanimated version
2.10
React Native version
0.68.2
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Release mode
Device
Real device
Device model
iPhone 13
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: