mgcrea / vision-camera-barcode-scanner

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

Scanner crashes when running with react-native-vision-camera v4 #29

Closed seanpcoyle closed 4 months ago

seanpcoyle commented 4 months ago

Note: A previous edit of this ticket addressed some import-related issues that I believe can safely be ignored.

When attempting to load the scanner using react-native-vision-camera v4, I encounter an error thrown from this library:

NSInvalidArgumentException: -[__NSFrozenArrayM objectForKey:]: unrecognized selector sent to instance 0x302535c50

It's not immediately apparent to me where from within the plugin this error is being thrown.

I also encounter the error:

Camera.onError(parameter/invalid-parameter): The value "native" could not be parsed to type pixelFormat! [parameter/invalid-parameter: The value "native" could not be parsed to type pixelFormat!]

The release notes for Vision Camera V4 indicate that "native" is no longer supported.

seanpcoyle commented 4 months ago

After some more investigation, it looks as if this PR didn't make it into 0.10.1. That seems to fix things on the iOS side, though I haven't yet been able to test Android.

seanpcoyle commented 4 months ago

@mgcrea Would it be possible to have a release cut that includes #19? It appears 0.11.0 doesn't include it.

tfcornerstone commented 4 months ago

@mgcrea Any progress on this issue?

mgcrea commented 4 months ago

Landed in https://github.com/mgcrea/vision-camera-barcode-scanner/releases/tag/0.11.2