-
-
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
app crashes if debugging mode is enabled #1674
Comments
Issue validatorThe issue is valid! |
It seems they don't support v2 yet, install v1 instead. |
@kaioduarte what do mean by "they" here? Can you please tell me clearly? |
@Yandamuri the maintainers of |
Issue link: computerjazz/react-native-draggable-flatlist#247 There's not much we can do right now about that. Enabling turbomodules disables debugging by chrome, try using Flipper instead. |
@jakub-gonet Thank you for your response and suggestion. I m not sure if it is appropriate to ask here. Can you please have a look at this Stack Overflow question regarding Flipper, if you have time? |
@jakub-gonet is there something we could do to let user (developer) know that the debug mode causes crash? I've spent longer than comfortable amount of time trying to find why the app is crashing with Found this thanks to mention in expo/expo#10383 (but I'm not using expo, so the fix isn't applicable in my case). Maybe the I know it's mentioned in known limitations that the debug mode is not supported, it's just easily overlooked (especially if someone else in the team does the setup for you). |
I am also facing same issue of No source URL loaded, have you initialised the instance in debugging mode. Has anyone found any solution yet with the react native cli ? |
I've been looking for hours about this bug and now I found this issue on Github. I was using a new ejected Expo app to notice that react-native-reanimated was installed with v2. Using Flipper instead of Chrome DevTools or removing this package solved the problem. I am using There should definitely have an another warning message to tell people that it can be the problem. |
Apparently there is no solution for this atm. it's very frustrating to code without the debugger. and I can not uninstall reanimated just for this. |
This is not related just to reanimated and the debugger support is not a thing reanimated can "fix", since it's because of react native architecture (or better, turbo modules).
|
same problem . |
a similar problem. |
++ |
it seems there is a commit with a solution to the problem. It remains to wait for the new release and you can check again https://github.com/software-mansion/react-native-reanimated/pull/2795/files |
@valery-lavrik
|
Fixed in release https://www.npmjs.com/package/react-native-reanimated/v/2.4.0 |
@valery-lavrik .This worked for me. Thanks a ton! After installing react-native-reanimated 2.4.0, the application stopped crashing on debugging mode enabled. After launching, the application became unresponsive with error: I am on RN 0.65.0, so I found a link that states a temporary fix for the error.
make these changes in the given file: node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js After making these changes, I'm to run the application in debug mode without any crashes. Looking for some permanent fix. |
Thanks @valery-lavrik For me, it just worked by updating to
|
I was on react-native-reanimated version 2.3.1 and after upgrading it to 2.4.1, it worked. Thank you @valery-lavrik |
It was fixed for me after being updated to |
It looks like this was only fixed on iOS, any word on a fix for Android? |
I can confirm this doesn't work on android, I am also getting the error "Invariant Violation: Calling synchronous methods on native modules is not supported in Chrome." By any chance, did you find a solution @anutting? |
the issue still exists on with version 2.6.0 |
|
@valery-lavrik it should be fixed in version |
Description
I am using
react-native-reanimated
as a dependency ofreact-native-draggable-flatlist
. Since I started usingreanimated
, app crashes if debugging mode is enabled. Once I uninstallreanimated
package then app runs in debugging mode perfectly.Screenshots
Steps To Reproduce
react-native-reanimated
as per docs and then enable debugging mode. You can encounter this errorExpected behavior
debugging mode should work as usual
Actual behavior
app crashes if debugging mode is enabled
Snack or minimal code example
No specific code is required. Just installing the package is sufficient.
Package versions
The text was updated successfully, but these errors were encountered: