-
Notifications
You must be signed in to change notification settings - Fork 82
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
React Native 0.74.1 and new architecture + bridgeless results in a soft crash SurfaceRegistryBinding::startSurface failed. Global was not installed.
#2015
Comments
SurfaceRegistryBinding::startSurface failed. Global was not installed.
SurfaceRegistryBinding::startSurface failed. Global was not installed.
Hi @kraenhansen, I was not able to reproduce this: I also stepped through the code and it looks like this is something that would happen if bundling failed: On line 47, if Did you create a bundle or start a dev server? I don't see it in your repro steps. |
I start a dev server, will update the steps and run though them once again on Monday 👍 |
I just re-ran the steps from the top with a different app name and directory to prune any implicit build caches, but I'm still reproducing it. I see your screenshot is running Metro 0.80.4, mine is 0.80.9, what does your ❯ npm ls
Sanity2@0.0.1 /Users/kraen.hansen/Repositories/sanity2
├── @babel/core@7.24.5
├── @babel/preset-env@7.24.5
├── @babel/runtime@7.24.5
├── @react-native/babel-preset@0.74.83
├── @react-native/eslint-config@0.74.83
├── @react-native/metro-config@0.74.83
├── @react-native/typescript-config@0.74.83
├── @rnx-kit/metro-config@1.3.15
├── @types/react-test-renderer@18.3.0
├── @types/react@18.3.1
├── babel-jest@29.7.0
├── eslint@8.57.0
├── jest@29.7.0
├── prettier@2.8.8
├── react-native-test-app@3.7.0
├── react-native@0.74.1
├── react-test-renderer@18.2.0
├── react@18.2.0
└── typescript@5.0.4 Also, what's your From your screenshot, it looks like you're testing with the |
For reference, I tried but failed to reproduce it with the example app. |
You're right. It looks like there's a race condition. If you dismiss the red box, navigate back, then reopen the view, it will render just fine. It looks like a core bug to me, but I can take a closer look later. Maybe @cipolleschi has more ideas? |
Confirmed to be a bug in |
Hey Kraen sorry for the delay, had a bunch of issues with my local Xcode / Simulator setup and yesterday was bank holiday here in UK - I was able to repro thanks to your detailed steps: And also able to verify that the fix Tommy made in the PR microsoft/rnx-kit#3130 addresses this: |
This fix is now published. You can either manually bump |
Awesome! Thanks for the quick turnaround (again) 🙂 |
What happened?
Version
3.7.0
What platforms are you seeing this issue on?
System Information
Steps to Reproduce
npx --package react-native-test-app@latest init --platform ios --platform android --name Sanity --destination sanity
cd sanity
npm install
cd ios && RCT_NEW_ARCH_ENABLED=1 pod install && cd -
npm start
insanity
)npm run ios
to build and start the appCode of Conduct
The text was updated successfully, but these errors were encountered: