react-native icon indicating copy to clipboard operation
react-native copied to clipboard

RCTBridge required dispatch_sync to load RCTAccessibilityManager. This may lead to deadlocks

Open correafederico25 opened this issue 1 year ago • 13 comments

Description

When building a new project with React Native 0.73.3 I am getting the warning RCTBridge required dispatch_sync to load RCTAccessibilityManager. This may lead to deadlocks as soon as my app starts.

I tried creating a new app with version 0.73.2 and this warning disappears

This my package JSON file:

{
  "name": "AwesomeProject3",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest"
  },
  "dependencies": {
    "react": "18.2.0",
    "react-native": "0.73.3"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.20.0",
    "@react-native/babel-preset": "0.73.20",
    "@react-native/eslint-config": "0.73.2",
    "@react-native/metro-config": "0.73.4",
    "@react-native/typescript-config": "0.73.1",
    "@types/react": "^18.2.6",
    "@types/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.6.3",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "prettier": "2.8.8",
    "react-test-renderer": "18.2.0",
    "typescript": "5.0.4"
  },
  "engines": {
    "node": ">=18"
  }
}

Steps to reproduce

npx react-native@latest init AwesomeProject

React Native Version

0.73.3

Affected Platforms

Runtime - iOS

Output of npx react-native info

No

Stacktrace or Logs

WARN RCTBridge required dispatch_sync to load RCTAccessibilityManager. This may lead to deadlocks

Reproducer

No

Screenshots and Videos

Captura de pantalla 2024-01-30 a la(s) 05 10 08

correafederico25 avatar Jan 30 '24 08:01 correafederico25

:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

github-actions[bot] avatar Jan 30 '24 08:01 github-actions[bot]

https://github.com/facebook/react-native/blob/8a8f74b7b2355b78bcdc7d8a23bf5ef5f0b93926/packages/react-native/React/CxxBridge/RCTCxxBridge.mm#L986-L990

fabOnReact avatar Jan 30 '24 09:01 fabOnReact

Getting the same after upgrading to 0.73.3, @fabOnReact care to explain why you linked the comments above?

efstathiosntonas avatar Jan 30 '24 09:01 efstathiosntonas

Also getting the same after upgrading to 0.73.3 and I don't have the issue with 0.73.2 either.

Jonnboy91 avatar Jan 31 '24 06:01 Jonnboy91

after applying a patch from PR and PR the issue is gone

efstathiosntonas avatar Jan 31 '24 06:01 efstathiosntonas

@cipolleschi can you look into this (potentially related to f39f34ed82997d0595522a285c3cb8693594e718)

cortinico avatar Jan 31 '24 15:01 cortinico

Fixed already:

  • Pick requested in 0.73.4 => https://github.com/facebook/react-native/pull/42734
  • PR for main => https://github.com/facebook/react-native/pull/42733

cipolleschi avatar Jan 31 '24 15:01 cipolleschi

"react-native": "0.73.3" still same

joeljerushan avatar Feb 01 '24 18:02 joeljerushan

I have the same issue.

"react-native": "^0.73.2",

kulakowka avatar Feb 02 '24 09:02 kulakowka

When 0.73.4 version with fix will be released ?

andriiradkevych avatar Feb 02 '24 12:02 andriiradkevych

Me too:

Creating a project now using: npx react-native init MyProject --template react-native-template-typescript

this downloads 0.73.3 RN version, and then without any modification, I get the error in IOS.

Waiting this new PR approved in 0.73.4 or whatrver. Thank you

jomavazquez avatar Feb 02 '24 12:02 jomavazquez

Version 0.73.4 with the fix with be released Monday! In the meantime you should be safe ignoring that warning.

Sorry for the inconvenience

Titozzz avatar Feb 02 '24 13:02 Titozzz

@Titozzz you can't ignore it , for example my app just doesn't work because of this issue . Is it planned to release it today ?

andriiradkevych avatar Feb 05 '24 11:02 andriiradkevych

+1

olivierlesnicki avatar Feb 11 '24 10:02 olivierlesnicki

@olivierlesnicki This issue is fixed in version 0.73.4 - this issue should be closed.

ChromeQ avatar Feb 11 '24 10:02 ChromeQ