-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Crash (SIGABRT) when using MediaPipe with Firebase in Expo/React Native projects
Description
I think that @thinksys/react-native-mediapipe causes immediate app crash when used alongside @react-native-firebase packages due to native glog symbol conflicts.
Environment
- Package version:
@thinksys/react-native-mediapipe@0.0.19 - React Native: 0.81.5
- Expo SDK: 54.0.27
- Platform: iOS (tested on physical device)
- Conflicting packages:
@react-native-firebase/app@23.0.0@react-native-firebase/auth@23.0.0@react-native-firebase/firestore@23.0.0
The Problem
Crash Details:
Thread: com.facebook.react.runtime.JavaScript
Exception: SIGABRT
Location: google::LogDestination::LogToSinks()
App crashes immediately on launch after installing MediaPipe, even without importing or using it in code.
Root Cause
Both MediaPipeTasksVision (dependency of this package) and Firebase SDK contain embedded glog (Google Logging) libraries. When Firebase's required use_frameworks! :linkage => :static is used, these cause symbol conflicts during static linking.
Three sources of glog:
- React Native core
- Firebase SDKs (via GoogleUtilities, gRPC-Core)
- MediaPipeTasksVision (prebuilt XCFramework)
Works vs Doesn't Work
✅ Works: MediaPipe in fresh Expo project without Firebase
❌ Doesn't work: MediaPipe + Firebase in same project
Steps to Reproduce
- Create Expo 54 project with Firebase installed
- Configure
expo-build-propertieswithuseFrameworks: "static"(required by Firebase) - Install
@thinksys/react-native-mediapipe@0.0.19 - Run
npx expo prebuild --clean - Run
npx expo run:ios --device - App crashes on launch with SIGABRT
Attempted Solutions
- ❌ Removing
buildReactNativeFromSource→ Build errors - ❌ Adding
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES→ Build succeeds, crash remains
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels