mrousavy / react-native-vision-camera

📸 A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
6.64k stars 983 forks source link

🐛 Failed to install Frame Processor JSI bindings when using "enableFrameProcessors": false #2832

Closed preventya-dev closed 1 week ago

preventya-dev commented 2 weeks ago

What's happening?

As soon as I created a build with "enableFrameProcessors": false the error Failed to install Frame Processor JSI bindings started appearing on app start. I could create another build without the flag and the error dissapeared.

Reproduceable Code

plugins: [
   [
      'react-native-vision-camera',
      {
        cameraPermissionText: 'Allow Preventya Salud to access your camera.',

        // Using this will produce the error:
        // enableFrameProcessors: false
      },
    ],
]

Relevant log output

LOG  Loading react-native-worklets-core...
my-app/app:dev:  LOG  Worklets loaded successfully
my-app/app:dev:  ERROR  system/frame-processors-unavailable: Failed to install Frame Processor JSI bindings!, js engine: hermes 
my-app/app:dev:     at ContextNavigator (http://172.31.48.28:8081/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:179997:24)
my-app/app:dev:     at ExpoRoot (http://172.31.48.28:8081/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:179969:28)
my-app/app:dev:     at App
my-app/app:dev:     at ErrorToastContainer (http://172.31.48.28:8081/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:684009:24)
my-app/app:dev:     at ErrorOverlay
my-app/app:dev:     at withDevTools(ErrorOverlay) (http://172.31.48.28:8081/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:683731:27)
my-app/app:dev:     at RCTView
my-app/app:dev:     at CssInterop.View (http://172.31.48.28:8081/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:11004:45)
my-app/app:dev:     at RCTView
my-app/app:dev:     at CssInterop.View (http://172.31.48.28:8081/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:11004:45)
my-app/app:dev:     at AppContainer (http://172.31.48.28:8081/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:87007:36)
my-app/app:dev:     at main(RootComponent) (http://172.31.48.28:8081/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:97800:28)

Camera Device

{
  "sensorOrientation": "landscape-right",
  "minZoom": 1,
  "minFocusDistance": 15,
  "position": "back",
  "supportsRawCapture": false,
  "neutralZoom": 1,
  "supportsFocus": true,
  "physicalDevices": [
    "wide-angle-camera"
  ],
  "hardwareLevel": "full",
  "hasTorch": true,
  "maxExposure": 8,
  "supportsLowLightBoost": false,
  "isMultiCam": false,
  "maxZoom": 123.75,
  "formats": [],
  "id": "com.apple.avfoundation.avcapturedevice.built-in_video:0",
  "name": "Back Camera",
  "hasFlash": true,
  "minExposure": -8
}

Device

Iphone 13 Pro Max

VisionCamera Version

4.0.1

Can you reproduce this issue in the VisionCamera Example app?

I didn't try (⚠️ your issue might get ignored & closed if you don't try this)

Additional information

mrousavy commented 1 week ago

Thanks for the bug report! I fixed this bug in VisionCamera 4.0.2 🥳