-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
RCTBridge required dispatch_sync to load RCTDevLoadingView. This may lead to deadlocks #16376
Comments
Same here! |
got this yellow issue for iOS |
I see this as well. Possibly related to #11196. |
I'm also getting this error from time to time on iOS 11 and I've got no idea how to debug this to give more information. Stacktrace doesn't help at all in this case. |
+1 |
1 similar comment
+1 |
Please stop adding |
Same issue. Here are the packages I use:
Given the intersection with @antoinerousseau's list, the possible locations for this bug are:
|
I just added react-native-device-info, and moved from rn 0.49 to 0.50. and now i found this bug. Don't know if it's the problem, but it's when i got this. |
Same issue... |
Same issue... Do u have any solutions ? |
Same issue. The only package from the list above we use is |
Same issue here today i have started a brand new app and only package i have added |
@rizzomichaelg anybody resolved it ?? |
@dantman I started seeing the issue immediately after installing react-native-device-info, so I highly suspect the issue is related, at least in our case, to that specific package. The only other package I am using react-native-keychain, which I installed quite a while ago without any issues, so it seems like a good bet. |
react-native-device-info/react-native-device-info#260 seems to have a message referring to |
If you would put a breakpoint on the following line: RCTLogWarn(@"RCTBridge required dispatch_sync to load %@. This may lead to deadlocks", _moduleClass); You can see which module/stack is responsible for loading ... onProgress:^(RCTLoadingProgress *progressData) {
#if RCT_DEV && __has_include("RCTDevLoadingView.h")
RCTDevLoadingView *loadingView = [weakSelf moduleForClass:[RCTDevLoadingView class]];
[loadingView updateProgress:progressData];
#endif
}]; Here the RCTCxxBridge is using I was able to workaround the warning by optimistically load |
I was able to workaround the warning by updating
|
react-native: 0.50.4 |
react-native: 0.51.0 |
"react": "16.2.0", |
"react": "16.2.0", My solution here was to move react-native-device-info out of the pod file and link it manually in the project. That seemed to solve the issue. I think another approach could be to include CxxBridge as a subspec for React in the pod file, but that requires Folly (and so boost), and that whole setup is cumbersome / takes long time. If you want a quick fix, simply remove the packages that are causing the issue out of pod. |
No "react-native-device-info" installed: "react": "16.3.0-alpha.2", |
It was with the "react-native-action-button": "^2.8.4", Adding |
Same issue here. |
Same issue. |
Anybody got the solution? The error comes even for freshly/newly created project. "react": "16.3.1", |
same |
+1 @antoinerousseau any update on this issue? |
RCTBridge required dispatch_sync to load RCTDevLoadingView. This may lead to deadlocks facebook/react-native#16376
Add this in your
|
Feel free to open a PR for this! |
Doing this seems to mess up expo unimodules for me. My error is coming from https://github.com/Andr3wHur5t/react-native-keyboard-spacer so I might just uninstall that |
Guys i'm getting this in Expo v43. My app works in development with my custom dev client but crashes in production. Does anyone know what the solution is for expo users? id greatly appreciate any guidance. #14766 |
same problem in expo dev client. |
@mwegener-com according to some people it is fixable modifying the App.Delegate.m. Mentioned by @safaiyeh for example. To modify this you can use the withAppDelegate from @expo/config-plugins to make the modifications. it'll look something like this.
then make sure you make a commit and run expo prebuild -p ios --clean trying to learn how to create a plugin by reading the expo docs is very confusing but I was taught by someone who knew how to use them and I hope this helps. Basically you are passed the content of the native file you need to manipulate as a string, and you must use regex or any means to do string manipulation and add or remove the lines of code you want, then simply return the string. docs btw I have been able to avoid any problems by first launching the dev client on the simulator or my phone and THEN pressing i on my console to run the project, this way the dev client doesn't crash.. if this works for you you wont even need to do any of the step above.. |
@haibert It wouldn't be my first config plugin, but have you already finished it and might share your solution? |
@mwegener-com I have not created a config plug in because even though the warning comes I rarely get any crashes because of it. If you do create it I would appreciate the share |
I'm getting the same error |
I have no idea what the meaning of the warning is, but this makes it go away: https://amanhimself.dev/blog/rctbridge-required-dispatch-sync-to-load-warning/ |
None of this works in 2022, on a fresh install of React Native 0.67.3 |
0.67.3 this does not help. What does it mean? |
Hello, Using I added two string values to Info.plist for the enable mic/camera permission text. Besides that I have no other modules in project, and only imported expo libraries such as blurview for basic layout features. I am seeing this issue now on loading the app through Metro now that I am in a |
I'm from 2030 and this still does not fix. 😏 |
I am experiencing the same issue as well |
... a new created 0.70.1 project has this issue too, it's funny, cause my 4 years old project doesn't have this issue. I wonder is it safe to ignore this warning? |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
I randomly get this warning at iOS app start (i.e. not always).
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
OS: macOS Sierra 10.12.6
Node: 6.10.2
Yarn: 1.0.2
npm: 5.4.2
Watchman: 4.7.0
Xcode: Xcode 9.0 Build version 9A235
Android Studio: 2.1 AI-143.2915827
Packages: (wanted => installed)
react: ^16.0.0 => 16.0.0
react-native: ^0.49.3 => 0.49.3
Steps to Reproduce
Expected Behavior
No warning
Actual Behavior
Reproducible Demo
N/A
Some packages I use
https://github.com/antoinerousseau/react-native-custom-components
https://github.com/rebeccahughes/react-native-device-info
https://github.com/evollu/react-native-fcm
https://github.com/gwmccull/react-native-polyfill
https://github.com/getsentry/react-native-sentry
The text was updated successfully, but these errors were encountered: