software-mansion / react-native-reanimated

React Native's Animated library reimplemented
https://docs.swmansion.com/react-native-reanimated/
MIT License
9k stars 1.3k forks source link

App crashes with Xcode 13. #2448

Closed kanelloc closed 2 years ago

kanelloc commented 3 years ago

Description

Hello guys, After updating xcode from v12.5 to v13 App keep crashing on startup.

If I remove reanimated 2 app is launched successfully.

The main problem is when both reanimated 2 and Jitsi meet sdk are installed.

There is no problem if the packages are installed standalone

When running on xcode i got the following logs.

Screenshot 2021-09-23 at 5 13 23 PM

Expected behavior

App launch after build

Actual behavior & steps to reproduce

The app crashes with the error com.facebook.react.JavaScript (17): EXC_BAD_ACCESS (code=EXC_I386_GPFLT)

Package versions

github-actions[bot] commented 3 years ago

Issue validator

The issue is valid!

dgreasi commented 3 years ago

I can confirm. Reproduced with a clean project here.

node: 12.X

"@shopify/restyle": "^1.4.0",
"react": "17.0.2",
"react-native": "0.65.1",
"react-native-jitsi-meet": "^2.1.2",
"react-native-reanimated": "^2.2.2",
"react-native-safe-area-context": "^3.3.2"

If one of the "react-native-jitsi-meet", "react-native-reanimated" is removed from the project it builds and works just fine.

dimaportenko commented 3 years ago

It happens only in DEBUG mode, production builds work fine on my end. Also, I don't use react-native-jitsi-meet, here my dependencies

  "dependencies": {
    "@bugfender/rn-bugfender": "^1.1.4",
    "@cometchat-pro/react-native-calls": "2.0.3-beta1",
    "@cometchat-pro/react-native-chat": "2.3.4",
    "@expo/vector-icons": "^12.0.0",
    "@react-native-async-storage/async-storage": "^1.13.0",
    "@react-native-community/masked-view": "0.1.10",
    "@react-native-community/netinfo": "6.0.0",
    "@react-native-firebase/analytics": "12.1.0",
    "@react-native-firebase/app": "12.1.0",
    "@react-navigation/bottom-tabs": "^5.11.11",
    "@react-navigation/material-top-tabs": "^5.3.15",
    "@react-navigation/native": "^5.9.4",
    "@react-navigation/stack": "^5.14.5",
    "@reduxjs/toolkit": "^1.6.0",
    "@segment/analytics-react-native": "^1.4.9",
    "amazon-cognito-identity-js": "^5.0.3",
    "apisauce": "^2.1.1",
    "aws-sdk": "^2.933.0",
    "axios": "^0.21.1",
    "color": "^3.1.3",
    "expo": "^41.0.0",
    "expo-av": "~9.1.2",
    "expo-constants": "~10.1.3",
    "expo-device": "~3.2.0",
    "expo-font": "~9.1.0",
    "expo-linear-gradient": "~9.1.0",
    "expo-linking": "~2.2.3",
    "expo-location": "~12.0.4",
    "expo-notifications": "~0.11.6",
    "expo-permissions": "~12.0.1",
    "expo-secure-store": "~10.1.0",
    "expo-splash-screen": "~0.10.2",
    "expo-status-bar": "~1.0.4",
    "expo-updates": "~0.5.4",
    "formik": "^2.2.1",
    "moment": "^2.29.1",
    "moment-timezone": "^0.5.32",
    "patch-package": "^6.4.7",
    "postinstall-postinstall": "^2.1.0",
    "react": "17.0.1",
    "react-native": "0.64.2",
    "react-native-branch": "^5.0.4",
    "react-native-config": "^1.4.2",
    "react-native-confirmation-code-field": "^7.1.0",
    "react-native-email-link": "^1.11.3",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-haptic-feedback": "^1.11.0",
    "react-native-hyperlink": "^0.0.19",
    "react-native-in-app-review": "^3.2.2",
    "react-native-open-maps": "^0.3.6",
    "react-native-pager-view": "^5.2.1",
    "react-native-reanimated": "~2.1.0",
    "react-native-redash": "^14.2.3",
    "react-native-render-html": "^5.1.1",
    "react-native-safe-area-context": "3.2.0",
    "react-native-screens": "~3.0.0",
    "react-native-svg": "12.1.1",
    "react-native-tab-view": "^2.16.0",
    "react-native-unimodules": "~0.13.3",
    "react-native-url-polyfill": "^1.3.0",
    "react-native-webview": "^11.6.4",
    "react-redux": "^7.2.4",
    "redux": "^4.1.0",
    "redux-persist": "^6.0.0",
    "redux-saga": "^1.1.3",
    "reselect": "^4.0.0",
    "yup": "^0.32.9"
  },
erdemildiz commented 3 years ago

+1

hanifmhd commented 3 years ago

is there any solution for this?

dgreasi commented 3 years ago

It happens only in DEBUG mode, production builds work fine on my end. Also, I don't use react-native-jitsi-meet, here my dependencies

  "dependencies": {
    "@bugfender/rn-bugfender": "^1.1.4",
    "@cometchat-pro/react-native-calls": "2.0.3-beta1",
    "@cometchat-pro/react-native-chat": "2.3.4",
    "@expo/vector-icons": "^12.0.0",
    "@react-native-async-storage/async-storage": "^1.13.0",
    "@react-native-community/masked-view": "0.1.10",
    "@react-native-community/netinfo": "6.0.0",
    "@react-native-firebase/analytics": "12.1.0",
    "@react-native-firebase/app": "12.1.0",
    "@react-navigation/bottom-tabs": "^5.11.11",
    "@react-navigation/material-top-tabs": "^5.3.15",
    "@react-navigation/native": "^5.9.4",
    "@react-navigation/stack": "^5.14.5",
    "@reduxjs/toolkit": "^1.6.0",
    "@segment/analytics-react-native": "^1.4.9",
    "amazon-cognito-identity-js": "^5.0.3",
    "apisauce": "^2.1.1",
    "aws-sdk": "^2.933.0",
    "axios": "^0.21.1",
    "color": "^3.1.3",
    "expo": "^41.0.0",
    "expo-av": "~9.1.2",
    "expo-constants": "~10.1.3",
    "expo-device": "~3.2.0",
    "expo-font": "~9.1.0",
    "expo-linear-gradient": "~9.1.0",
    "expo-linking": "~2.2.3",
    "expo-location": "~12.0.4",
    "expo-notifications": "~0.11.6",
    "expo-permissions": "~12.0.1",
    "expo-secure-store": "~10.1.0",
    "expo-splash-screen": "~0.10.2",
    "expo-status-bar": "~1.0.4",
    "expo-updates": "~0.5.4",
    "formik": "^2.2.1",
    "moment": "^2.29.1",
    "moment-timezone": "^0.5.32",
    "patch-package": "^6.4.7",
    "postinstall-postinstall": "^2.1.0",
    "react": "17.0.1",
    "react-native": "0.64.2",
    "react-native-branch": "^5.0.4",
    "react-native-config": "^1.4.2",
    "react-native-confirmation-code-field": "^7.1.0",
    "react-native-email-link": "^1.11.3",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-haptic-feedback": "^1.11.0",
    "react-native-hyperlink": "^0.0.19",
    "react-native-in-app-review": "^3.2.2",
    "react-native-open-maps": "^0.3.6",
    "react-native-pager-view": "^5.2.1",
    "react-native-reanimated": "~2.1.0",
    "react-native-redash": "^14.2.3",
    "react-native-render-html": "^5.1.1",
    "react-native-safe-area-context": "3.2.0",
    "react-native-screens": "~3.0.0",
    "react-native-svg": "12.1.1",
    "react-native-tab-view": "^2.16.0",
    "react-native-unimodules": "~0.13.3",
    "react-native-url-polyfill": "^1.3.0",
    "react-native-webview": "^11.6.4",
    "react-redux": "^7.2.4",
    "redux": "^4.1.0",
    "redux-persist": "^6.0.0",
    "redux-saga": "^1.1.3",
    "reselect": "^4.0.0",
    "yup": "^0.32.9"
  },

It seems that the error occurs when there is a video-chat library, as i can assume from your libraries.

dimaportenko commented 3 years ago

@dgreasi I confirm, @cometchat-pro/react-native-calls cause the issue.

icc-romeu commented 3 years ago

On our side, removing react-native-reanimated as suggested by @dgreasi also works.

TheWirv commented 3 years ago

I don't have any video package installed, but this problem started occuring after switching my JS engine on the iOS side to Hermes.

dfabreguette commented 2 years ago

I have same problem. I'm using JitsiMeet also,with react-native-animated, as a dependency of @react-navigation/drawer. How can I fix this please ? It keeps from using simulators and my iphone on iOS 15.1.

If that can I help i use :

Expo CLI 4.11.0 environment info: System: OS: macOS 11.6 Shell: 5.8 - /bin/zsh Binaries: Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm Watchman: 2021.11.15.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /Users/davidfabreguette/.rvm/rubies/ruby-2.7.3/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 IDEs: Xcode: 13.0/13A233 - /usr/bin/xcodebuild npmPackages: @expo/webpack-config: ^0.15.0 => 0.15.0 expo: ~41.0.1 => 41.0.1 react: 17.0.1 => 17.0.1 react-dom: 17.0.1 => 17.0.1 react-native: ~0.63.4 => 0.63.4 react-native-web: 0.17.1 => 0.17.1 npmGlobalPackages: expo-cli: 4.11.0 Expo Workflow: bare

Capture d’écran 2021-12-09 à 14 13 44

kanelloc commented 2 years ago

Any update? So far we have not been able to solve it

icc-romeu commented 2 years ago

We finally applied a workaround. We developed a UI interface for Jitsi and used https://github.com/jitsi/lib-jitsi-meet that does not use the iOS Native Jitsi bundle, so you will not have problems with reanimated.

I hope that helps.

piaskowyk commented 2 years ago

@icc-romeu thanks for the info and for resolving of problem 🙌