-
Notifications
You must be signed in to change notification settings - Fork 151
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
App crash when RN.restart() use on IOS #239
Comments
Are you using |
Yes. And I have the same issue both v3 version or below |
Same here. I traced my crashes to reanimated. If you're using v3, could you try adding a delay before restart like this?
This seems to have helped in my case, although I'm still investigating. |
I have already.
I will try with 1000 like you. By the way, Restart is deprecated; restart must be use. |
I just tried, still the same problem. |
I'm currently using React Native version 0.68 and the react-native-restart library version 0.0.24. I've tried adding a delay to my code, but I'm still experiencing crashes with the iOS build of my app. |
the same problem |
Always the same for me. |
Same problem |
Same problem, adding a timeout does not help |
It seems that this problem related to runOnJS function from Like an example, when you use If you use something like that:
You can avoid issue with
But when we talk about worklets it gets difficult, I haven't find any solution yet. |
Hello, on my side I solved the problem by enabling hermes in podfile + pod install. Tested on device & simulator. |
same。 |
I have exactly the same problem. at first i suspected reanimated, but after patching it, i still get the bug. Only in "release", according to sentry tracking, it's a RAM problem:
I try to replace react-native-restart by code-push and I have the same issue, also reported by other here reanimated patch for
|
BTW I use Xcode_14.3.1.app to build the app |
This happens to me in Android. my setup is |
The same. Any solution so far? |
In my case I'm doing the restart when selecting a value from a dropdown which also results in this crash. I just removed the reanimated animation from the dropdown which seems to fix it. |
Getting a similar issue with the following: From Xcode logs: |
i just facing the issue for now, any update ? |
My app crashes on iOS 17 when using RNRestart.restart() or RNRestart.Restart(). When will the bug be fixed? |
This issue is caused by react-native-reanimated with disabled Hermes |
I Commented out the following assertions for the time being. //#ifndef NDEBUG |
hello, is this a workaround ? |
You can use it as a temporary workaround. This just disables the check for objectCounter_ and stringCounter_. |
+1 |
Same problem !! anyone get any solution ? |
@ThadeusRonnThomas Tried commenting the same but didnt work for me. Can you help us with a temporary workaround? |
Same problem!! is there any workaround?? |
+1 |
I solve the problem with : "react-native-restart": "0.0.27" , "react-native-reanimated": "3.5.2", on my package.json
|
Hey I'm using "react-native-restart" but getting an error on the ios release build |
Tried this but still the same behavior on iOS, are you certain about this? |
Yes I'm sure, my app is in production, and everything works perfectly |
Hello
I'v a crash issue with IOS build (with metro and release build), when I use RN.restart()
Here is my thread about my issue
facebook/react-native#36776
Thank you very much
The text was updated successfully, but these errors were encountered: