react-native: App is crashing after upgrading native version 0.74.3 to 0.76.3.

Description

In my existing project i upgrade all version with native version and app is crashing.

here is the package.json file

{ “name”: “wellness360”, “version”: “0.0.1”, “IOS_VERSION”: “1.22”, “IOS_BUILD_NUMBER”: “0”, “ANDROID_VERSION”: “1.0”, “ANDROID_BUILD_NUMBER”: “38”, “private”: true, “scripts”: { “check-dependencies”: “rnx-align-deps”, “fix-dependencies”: “rnx-align-deps --write”, “prepare”: “husky”, “postinstall”: “husky”, “lint-staged”: “lint-staged”, “android”: “react-native run-android”, “ios”: “react-native run-ios”, “lint”: “eslint .”, “lint-error”: “eslint --quiet .”, “code-format”: “prettier . --write”, “start”: “react-native start”, “test”: “jest”, “type-check”: “tsc”, “test:report”: “jest --collectCoverage --coverageDirectory="./coverage" --ci --reporters=default --reporters=jest-junit --coverage”, “pod-install”: “cd ios && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install && cd …”, “bundle:ios”: “react-native bundle --entry-file=‘index.js’ --bundle-output=‘./ios/main.jsbundle’ --dev=false --platform=‘ios’ --assets-dest=‘./ios’”, “check-updates”: “yarn dlx npm-check-updates” }, “lint-staged”: { “.{js,jsx,ts,tsx}": [ “eslint”, “prettier --write” ], ".{css,scss,md,html}”: [ “prettier --write” ] }, “dependencies”: { “@datadog/mobile-react-native”: “^2.4.4”, “@datadog/mobile-react-navigation”: “^2.4.4”, “@gluestack-style/react”: “^1.0.57”, “@gluestack-ui/config”: “^1.1.20”, “@gluestack-ui/themed”: “^1.1.61”, “@notifee/react-native”: “^7.8.2”, “@react-native-async-storage/async-storage”: “^2.0.0”, “@react-native-community/slider”: “^4.5.5”, “@react-native-firebase/analytics”: “^21.6.1”, “@react-native-firebase/app”: “^21.6.1”, “@react-native-firebase/crashlytics”: “^21.6.1”, “@react-native-firebase/messaging”: “^21.6.1”, “@react-native-masked-view/masked-view”: “^0.3.0”, “@react-navigation/bottom-tabs”: “^7.0.13”, “@react-navigation/drawer”: “^7.0.13”, “@react-navigation/native”: “^6.0.8”, “@react-navigation/native-stack”: “^7.1.9”, “@react-navigation/stack”: “^6.3.21”, “@reduxjs/toolkit”: “^2.3.0”, “async-mutex”: “^0.5.0”, “base-64”: “^1.0.0”, “formik”: “^2.4.6”, “i18next”: “^24.0.2”, “lodash”: “^4.17.21”, “lottie-react-native”: “^7.1.0”, “lucide-react-native”: “^0.462.0”, “mixpanel-react-native”: “^3.0.8”, “moment”: “^2.30.1”, “react”: “18.3.1”, “react-dom”: “^18.3.1”, “react-fast-compare”: “^3.2.2”, “react-i18next”: “^15.1.2”, “react-native”: “^0.76.0”, “react-native-blob-util”: “^0.19.11”, “react-native-calendars”: “^1.1307.0”, “react-native-circular-progress”: “^1.4.1”, “react-native-date-picker”: “^5.0.7”, “react-native-device-info”: “^14.0.1”, “react-native-document-picker”: “^9.3.1”, “react-native-file-viewer”: “^2.1.5”, “react-native-fs”: “^2.18.0”, “react-native-gesture-handler”: “^2.20.0”, “react-native-health”: “^1.19.0”, “react-native-health-connect”: “^3.3.1”, “react-native-htmlview”: “^0.17.0”, “react-native-image-crop-picker”: “^0.41.6”, “react-native-inappbrowser-reborn”: “^3.7.0”, “react-native-keyboard-aware-scroll-view”: “^0.9.5”, “react-native-mmkv”: “^3.1.0”, “react-native-pdf”: “^6.7.5”, “react-native-reanimated”: “^3.16.1”, “react-native-render-html”: “^6.1.0”, “react-native-safe-area-context”: “^4.12.0”, “react-native-screens”: “^3.34.0”, “react-native-svg”: “^15.8.0”, “react-native-track-player”: “^4.1.1”, “react-native-vector-icons”: “^10.2.0”, “react-native-video”: “^6.8.2”, “react-native-webview”: “^13.12.2”, “react-native-youtube-iframe”: “^2.3.0”, “react-redux”: “^9.1.2”, “react-test-renderer”: “18.3.1”, “redux-persist”: “^6.0.0”, “rn-samsung-health”: “github:wellness360inc/rn_shealth”, “url”: “^0.11.4”, “victory-native”: “^36.9.2-next.3”, “yup”: “^1.4.0” }, “resolutions”: { “react-dom”: “18.3.1”, “react-native-reanimated”: “3.14.0” }, “devDependencies”: { “@babel/core”: “^7.25.2”, “@babel/preset-env”: “^7.25.3”, “@babel/runtime”: “^7.25.0”, “@react-native-community/cli”: “^15.0.0”, “@react-native-community/cli-platform-android”: “^15.0.0”, “@react-native-community/cli-platform-ios”: “^15.0.0”, “@react-native/babel-preset”: “^0.76.0”, “@react-native/eslint-config”: “0.76.3”, “@react-native/metro-config”: “^0.76.0”, “@react-native/typescript-config”: “0.76.3”, “@react-navigation/devtools”: “^7.0.9”, “@rnx-kit/align-deps”: “^3.0.2”, “@tsconfig/react-native”: “^3.0.5”, “@types/base-64”: “^1.0.2”, “@types/lodash”: “^4.17.13”, “@types/react”: “^18.2.6”, “@types/react-native-htmlview”: “^0.16.5”, “@types/react-native-vector-icons”: “^6.4.18”, “@types/react-native-video”: “^5.0.20”, “@types/react-redux”: “^7.1.34”, “@types/react-test-renderer”: “^18.0.0”, “@typescript-eslint/eslint-plugin”: “^8.16.0”, “@typescript-eslint/eslint-plugin-tslint”: “^7.0.2”, “@typescript-eslint/parser”: “^8.16.0”, “babel-jest”: “^29.6.3”, “babel-plugin-inline-dotenv”: “^1.7.0”, “babel-plugin-module-resolver”: “^5.0.2”, “dotenv”: “^16.4.5”, “eslint”: “^9.15.0”, “eslint-config-prettier”: “^9.1.0”, “eslint-config-react-app”: “^7.0.1”, “eslint-config-react-native”: “^4.1.0”, “eslint-define-config”: “^2.1.0”, “eslint-plugin-ft-flow”: “^3.0.11”, “eslint-plugin-import”: “^2.31.0”, “eslint-plugin-jest”: “^28.9.0”, “eslint-plugin-prettier”: “^5.2.1”, “eslint-plugin-react”: “^7.37.2”, “eslint-plugin-react-hooks”: “^5.0.0”, “husky”: “^9.1.7”, “jest”: “^29.2.1”, “lint-staged”: “^15.2.10”, “metro-runtime”: “^0.81.0”, “prettier”: “3.4.1”, “react-test-renderer”: “18.3.1”, “typescript”: “^5.7.2” }, “engines”: { “node”: “>=18” }, “packageManager”: “yarn@3.6.4”, “rnx-kit”: { “kitType”: “app”, “alignDeps”: { “requirements”: [ “react-native@0.76” ], “capabilities”: [ “animation”, “babel-preset-react-native”, “core”, “core-android”, “core-ios”, “core/metro-config”, “filesystem”, “gestures”, “html”, “jest”, “masked-view”, “navigation/native”, “navigation/stack”, “react”, “react-dom”, “react-test-renderer”, “safe-area”, “screens”, “storage”, “svg”, “webview” ] } } }

Steps to reproduce

Please go thought the attached vedio.

React Native Version

0.76.3

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 14.6.1
  CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  Memory: 59.26 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.17.0
    path: /usr/local/bin/node
  Yarn:
    version: 3.6.4
    path: /usr/local/bin/yarn
  npm:
    version: 10.8.2
    path: /usr/local/bin/npm
  Watchman:
    version: 2024.11.04.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/kapil/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.1 AI-241.19072.14.2412.12360217
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/bin/javac
  Ruby:
    version: 3.2.2
    path: /Users/kapil/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.2
    wanted: ^15.0.0
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.3
    wanted: ^0.76.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

[Firebase/Crashlytics] Version 11.5.0
+[RNFBSharedUtils getConfigBooleanValue:key:defaultValue:] [Line 155] RNFBCrashlyticsInit crashlytics_debug_enabled via RNFBJSON: 1
+[RNFBSharedUtils getConfigBooleanValue:key:defaultValue:] [Line 165] RNFBCrashlyticsInit crashlytics_debug_enabled final value: 1
+[RNFBCrashlyticsInitProvider isCrashlyticsCollectionEnabled] [Line 79] RNFBCrashlyticsInit specific key crashlytics_auto_collection_enabled not set, falling back to general key app_data_collection_default_enabled with default 1 if it does not exist.
+[RNFBSharedUtils getConfigBooleanValue:key:defaultValue:] [Line 162] RNFBCrashlyticsInit app_data_collection_default_enabled via RNFBMeta: 1
+[RNFBSharedUtils getConfigBooleanValue:key:defaultValue:] [Line 165] RNFBCrashlyticsInit app_data_collection_default_enabled final value: 1
+[RNFBCrashlyticsInitProvider componentsToRegister]_block_invoke [Line 129] RNFBCrashlyticsInit initialization successful
11.5.0 - [FirebaseCrashlytics][I-CLS000000] Crashlytics skipped rotating the Install ID during urgent mode because it is run on the main thread, which can't succeed. This can happen if the app crashed the last run and Crashlytics is uploading urgently.
11.5.0 - [FirebaseMessaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
[HealthKit] Background observers added to the app
11.5.0 - [FirebaseAnalytics][I-ACS023007] Analytics v.11.5.0 started
11.5.0 - [FirebaseAnalytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
[HealthKit] Background delivery enabled for ActiveEnergyBurned
[HealthKit] Background observer set up for ActiveEnergyBurned
Sending `healthKit:ActiveEnergyBurned:setup:success` with no listeners registered.
libc++abi: terminating due to uncaught exception of type std::runtime_error: Feature flags were accessed before being overridden: fuseboxEnabledDebug

Reproducer

Screenshots and Videos

https://github.com/user-attachments/assets/baab0314-b95e-42d4-8ffd-ead2d0a97024

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 5
  • Comments: 37 (8 by maintainers)

Commits related to this issue

Most upvoted comments

We found one problem in the turbomodule interop layer and this is the PR that should fix that: https://github.com/facebook/react-native/pull/49072

We first need to merge the fix in main. Then we have to pick it in the releases and release new versions of each react native. So far, it still need to land, so it will take a few more days…

@kapilw360 We will release a patch to 0.77 next week with the fix.

We still need to ship a version of 0.77 with the fix. (This is the pick request for the fix, for context: https://github.com/reactwg/react-native-releases/issues/772) We are planning to ship it next week. Currently, we shipped the fix for 0.76.7.

Hi @cipolleschi @cortinico @kapilw360

I would like to know if I can migrate to version 0.77 while still using the old architecture. I want to check this because version 0.77 supports Android API 35, and I would like to see if the accessibility issues are resolved after moving to 0.77.

yes use ENV[‘RCT_NEW_ARCH_ENABLED’] = ‘0’ in podfile (make sure Android new architecture is also disabled) Can confirm migration to 0.77 with new architecture disabled was successful

How about disabling Fabric in top of Podfile

ENV['RCT_NEW_ARCH_ENABLED'] = '0'

I just checked in physical device. App is still crashing at least in physical device got EXC_BREAKPOINT. check screenshot

Screenshot 2024-12-06 at 4 09 09 PM

@kapilw360 @cortinico