Skip to content

facelandmarkdetection crash on loading face_landmarker.task #182

Description

@omatt

The app crashes when the face_landmarker.task has been loaded. Any suggestions on how to resolve this issue? I'm using react-native CLI and the app I am working on uses "react": "19.1.0", "react-native": "0.80.2"

Error logs

2025-09-10 15:53:28.459  8787-9452  ReactNativeJS           com.package.name                       I  getFaceLandmarkDetectionModule: delegate = 0, numFaces= undefined, runningMode = 2, model= ../../assets/face_landmarker.task
2025-09-10 15:53:28.487  8787-9452  ReactNativeJS           com.package.name                       I  'ImageCaptureScreen', 'Image Capture State Default'
2025-09-10 15:53:28.498  8787-9452  CameraDevices           com.package.name                       I  Camera #0 is now available.
2025-09-10 15:53:28.498  8787-9452  CameraDevices           com.package.name                       I  Camera #1 is now available.
2025-09-10 15:53:28.498  8787-9452  CameraDevices           com.package.name                       I  Camera #2 is now available.
2025-09-10 15:53:28.498  8787-9452  CameraDevices           com.package.name                       I  Camera #3 is now available.
2025-09-10 15:53:28.499  8787-9452  CameraDevices           com.package.name                       I  Camera #4 is now available.
2025-09-10 15:53:28.505  8787-9453  native                  com.package.name                       I  I20250910 15:53:28.505652  9453 asset_manager_util.cc:59] Created global reference to asset manager.
2025-09-10 15:53:28.514  8787-8797  com.package.name        com.package.name                       I  Compiler allocated 4163KB to compile void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
2025-09-10 15:53:28.517  8787-9452  ReactNativeJS           com.package.name                       I  'ImageCaptureScreen', 'Image Capture State Default'
2025-09-10 15:53:28.524  8787-9452  ReactNativeJS           com.package.name                       I  'ImageCaptureScreen', 'Image Capture State Default'
2025-09-10 15:53:28.564  8787-9453  libc                    com.package.name                       A  Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 9453 (mqt_v_native), pid 8787 (com.package.name)

I am using code snippets from an older build (Commit 7a2a5e0) since I am having type mismatch errors on this part of the latest sample code using react-native-mediapipe 0.6.0

const faceDetection = useFaceLandmarkDetection(
{
    onResults, // incompatible argument
    onError,
},
RunningMode.LIVE_STREAM,
"face_landmarker.task",
{
    fpsMode: 30,
    delegate: settings.processor,
    mirrorMode: "no-mirror",
});
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions