mgcrea / vision-camera-barcode-scanner

High performance barcode scanner for React Native using VisionCamera
MIT License
84 stars 11 forks source link

Providing barcodeTypes in options causes Frame Processor Error: Exception in HostFunction #18

Closed mattijsf closed 7 months ago

mattijsf commented 7 months ago

Example:

const frameProcessor = useFrameProcessor(frame => {
  "worklet"
  const scannedBarcodes = scanCodes(frame, {
    barcodeTypes: ["aztec", "qr"],
  })
  console.log(JSON.stringify(scannedBarcodes, null, 2))
}, [])

JS log:

LOG Loading react-native-worklets-core... LOG Worklets loaded successfully ERROR Frame Processor Error: Exception in HostFunction: , js engine: VisionCamera

Native Log:

2024-01-18 14:34:48.333171+0100 Tripps[4728:270063] -[__NSArrayI objectForKey:]: unrecognized selector sent to instance 0x282277320 2024-01-18 14:34:48.370611+0100 Tripps[4728:269682] [javascript] Frame Processor Error: Exception in HostFunction: , js engine: VisionCamera