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

[iOS] Crash in Dispatch Queue ‘com.facebook.react.ShadowQueue’ #6759

Open
PauloHSOliveira opened this issue Nov 25, 2024 · 1 comment
Open
Labels
Missing repro This issue need minimum repro scenario Platform: iOS This issue is specific to iOS

Comments

@PauloHSOliveira
Copy link

PauloHSOliveira commented Nov 25, 2024

Description

The app crashes immediately after opening on iOS following the build process. There are no visible error messages in the console; the app simply closes abruptly. Upon inspecting the logs, the crash appears to occur on the Dispatch Queue com.facebook.react.ShadowQueue.

Thread 14 Crashed::  Dispatch queue: com.facebook.react.ShadowQueue
0   ???                           	          0x104100 ???
1   MyProject.debug.dylib             	       0x10f9cc2bc -[RCTShadowView layoutWithMinimumSize:maximumSize:layoutDirection:layoutContext:] + 176
2   MyProject.debug.dylib             	       0x10f9bc77c -[RCTRootShadowView layoutWithAffectedShadowViews:] + 264
3   MyProject.debug.dylib             	       0x10f9dfcac -[RCTUIManager uiBlockWithLayoutUpdateForRootView:] + 344
4   MyProject.debug.dylib             	       0x10f808cf8 -[REASwizzledUIManager reanimated_uiBlockWithLayoutUpdateForRootView:] + 120
5   MyProject.debug.dylib             	       0x10f9e59c4 -[RCTUIManager _layoutAndMount] + 336
6   MyProject.debug.dylib             	       0x10f9e5868 -[RCTUIManager batchDidComplete] + 32
7   MyProject.debug.dylib             	       0x10f931530 __32-[RCTCxxBridge batchDidComplete]_block_invoke + 56
8   libdispatch.dylib             	       0x1801774ec _dispatch_call_block_and_release + 24
9   libdispatch.dylib             	       0x180178de0 _dispatch_client_callout + 16
10  libdispatch.dylib             	       0x180180f60 _dispatch_lane_serial_drain + 956
11  libdispatch.dylib             	       0x180181a98 _dispatch_lane_invoke + 388
12  libdispatch.dylib             	       0x18018cf44 _dispatch_root_queue_drain_deferred_wlh + 276
13  libdispatch.dylib             	       0x18018c5a0 _dispatch_workloop_worker_thread + 440
14  libsystem_pthread.dylib       	       0x1045dbb74 _pthread_wqthread + 284
15  libsystem_pthread.dylib       	       0x1045da934 start_wqthread + 8

My package.json:

{
  "name": "@myproject/mobile",
  "version": "1.1.13",
  "main": "index.js",
  "scripts": {
    "start": "react-native start",
    "android": "react-native run-android",
    "expo:start": "expo start",
    "ios": "expo run:ios --device",
    "deleteDerivedData": "rm -rf ${HOME}/Library/Developer/Xcode/DerivedData/*",
    "build:ios": "react-native bundle --entry-file='apps/mobile/index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'"
  },
  "dependencies": {
    "@babel/runtime": "^7.22.11",
    "@expo-google-fonts/inter": "^0.2.3",
    "@expo/vector-icons": "^14.0.2",
    "@gorhom/bottom-sheet": "^5.0.6",
    "@invertase/react-native-apple-authentication": "^2.4.0",
    "@pablo/tracking": "^1.0.0",
    "@react-native-async-storage/async-storage": "^2.1.0",
    "@react-native-firebase/app": "^21.6.0",
    "@react-native-firebase/auth": "^21.6.0",
    "@react-native-firebase/firestore": "^21.6.0",
    "@react-native-google-signin/google-signin": "^13.1.0",
    "@react-navigation/native": "^7.0.4",
    "@react-navigation/native-stack": "^7.1.1",
    "@revenuecat/purchases-typescript-internal": "^7.0.0",
    "@sentry/node": "^7.73.0",
    "@sentry/profiling-node": "^1.2.1",
    "@sentry/react-native": "~6.1.0",
    "@sentry/utils": "^7.73.0",
    "@types/bluebird": "^3.5.38",
    "@types/lodash": "^4.14.202",
    "axios": "^1.4.0",
    "bluebird": "^3.7.2",
    "expo": "^52.0.11",
    "expo-application": "~6.0.1",
    "expo-av": "~15.0.1",
    "expo-clipboard": "~7.0.0",
    "expo-constants": "~17.0.3",
    "expo-device": "~7.0.1",
    "expo-file-system": "~18.0.4",
    "expo-font": "~13.0.1",
    "expo-image": "~2.0.2",
    "expo-linear-gradient": "~14.0.1",
    "expo-linking": "~7.0.3",
    "expo-media-library": "~17.0.3",
    "expo-router": "~4.0.9",
    "expo-splash-screen": "~0.29.13",
    "expo-status-bar": "~2.0.0",
    "expo-system-ui": "~4.0.4",
    "lottie-react-native": "7.1.0",
    "moment": "^2.30.1",
    "native-base": "^3.4.28",
    "react": "18.3.1",
    "react-hook-form": "^7.52.0",
    "react-native": "0.76.3",
    "react-native-apple-authentication": "^2.0.0",
    "react-native-device-info": "^10.8.0",
    "react-native-error-boundary": "^1.2.5",
    "react-native-exception-handler": "^2.10.10",
    "react-native-fs": "^2.20.0",
    "react-native-gesture-handler": "~2.20.2",
    "react-native-inverted-flat-list": "^1.0.3",
    "react-native-markdown-display": "^7.0.2",
    "react-native-music-control": "^1.4.1",
    "react-native-purchases": "^6.6.5",
    "react-native-reanimated": "^3.16.2",
    "react-native-root-siblings": "^4.1.1",
    "react-native-root-toast": "^3.4.1",
    "react-native-safe-area-context": "4.12.0",
    "react-native-screens": "~4.1.0",
    "react-native-sound": "^0.11.2",
    "react-native-sse": "^1.1.0",
    "react-native-svg": "15.8.0",
    "react-native-toast-message": "^2.2.0",
    "react-native-track-player": "^4.1.1",
    "react-native-url-polyfill": "^2.0.0",
    "react-native-web": "~0.19.13",
    "react-native-zip-archive": "^6.0.9",
    "react-query": "^3.39.3",
    "rive-react-native": "^7.3.0"
  },
  "devDependencies": {
    "@babel/core": "^7.24.0",
    "@pablo/core": "*",
    "@react-native-community/cli": "^15.1.2",
    "@react-native-community/cli-platform-android": "^15.1.2",
    "@react-native-community/cli-platform-ios": "^15.1.2",
    "@react-native/js-polyfills": "^0.76.2",
    "@react-native/metro-babel-transformer": "^0.76.2",
    "@react-native/metro-config": "^0.76.2",
    "@types/react": "~18.3.12",
    "@types/react-native-dotenv": "^0.2.0",
    "eslint-plugin-import": "^2.28.1",
    "eslint-plugin-react-native": "^4.1.0",
    "metro-config": "^0.81.0",
    "metro-runtime": "^0.81.0",
    "react-native-dotenv": "^3.4.9",
    "typescript": "~5.3.3"
  },
  "installConfig": {
    "hoistingLimits": "workspaces"
  },
  "private": true
}

Steps to reproduce

  1. Run yarn ios and you can see the error

Snack or a link to a repository

https://github.com/PauloHSOliveira

Reanimated version

^3.16.2

React Native version

0.76.3

Platforms

iOS

JavaScript runtime

None

Workflow

Expo Dev Client

Architecture

Fabric (New Architecture)

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added the Missing repro This issue need minimum repro scenario label Nov 25, 2024
Copy link

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

@github-actions github-actions bot added the Platform: iOS This issue is specific to iOS label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro This issue need minimum repro scenario Platform: iOS This issue is specific to iOS
Projects
None yet
Development

No branches or pull requests

1 participant