Skip to content

[iOS] Crash (SIGABRT) when using MediaPipe with Firebase in Expo/React Native projects #27

@acopetkovic

Description

@acopetkovic

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:

  1. React Native core
  2. Firebase SDKs (via GoogleUtilities, gRPC-Core)
  3. 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

  1. Create Expo 54 project with Firebase installed
  2. Configure expo-build-properties with useFrameworks: "static" (required by Firebase)
  3. Install @thinksys/react-native-mediapipe@0.0.19
  4. Run npx expo prebuild --clean
  5. Run npx expo run:ios --device
  6. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions