Skip to content
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 RCTAccessibilityManager. This may lead to deadlocks #42728

Closed
correafederico25 opened this issue Jan 30, 2024 · 15 comments
Assignees
Labels
Resolution: PR Submitted A pull request with a fix has been provided.

Comments

@correafederico25
Copy link

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

@github-actions github-actions bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Jan 30, 2024
Copy link

⚠️ Missing Reproducible Example
ℹ️ 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.

@fabOnReact
Copy link
Contributor

// Modules that need to be set up on the main thread cannot be initialized
// lazily when required without doing a dispatch_sync to the main thread,
// which can result in deadlock. To avoid this, we initialize all of these
// modules on the main thread in parallel with loading the JS code, so
// they will already be available before they are ever required.

@efstathiosntonas
Copy link

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

@Jonnboy91
Copy link

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

@efstathiosntonas
Copy link

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

@cortinico
Copy link
Contributor

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

@cipolleschi
Copy link
Contributor

Fixed already:

@cortinico cortinico added Resolution: PR Submitted A pull request with a fix has been provided. and removed Needs: Triage 🔍 Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Jan 31, 2024
@joeljerushan
Copy link

"react-native": "0.73.3" still same

@kulakowka
Copy link

I have the same issue.

"react-native": "^0.73.2",

@andriiradkevych
Copy link

When 0.73.4 version with fix will be released ?

@jomavazquez
Copy link

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

@Titozzz
Copy link
Collaborator

Titozzz commented Feb 2, 2024

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

@andriiradkevych
Copy link

andriiradkevych commented Feb 5, 2024

@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 ?

@olivierlesnicki
Copy link

+1

@ChromeQ
Copy link

ChromeQ commented Feb 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: PR Submitted A pull request with a fix has been provided.
Projects
None yet
Development

No branches or pull requests