Skip to content

[Bug] Argument Null exception on iOS #64

@kamran-intelcom

Description

@kamran-intelcom

Description

We notice multiple users experiencing crashes on iOS devices when using the library. Here's the stack trace from Sentry.

System.ArgumentNullException
ArgumentNull_Generic Arg_ParamName_Name, s (System.ArgumentNullException)
at System.ArgumentNullException.Throw(String )
at System.Text.Encoding.GetBytes(String )
at CameraScanner.Maui.Platforms.Services.BarcodeScanner.ProcessBarcodeResult(VNBarcodeObservation[] inputResults, AVCaptureVideoPreviewLayer previewLayer)
at CameraScanner.Maui.CameraManager.<>c__DisplayClass28_0.<.ctor>b__0(VNRequest request, NSError error)
at ObjCRuntime.Trampolines.SDVNRequestCompletionHandler.Invoke(IntPtr block, NativeHandle request, NativeHandle error)
at Vision.VNSequenceRequestHandler.Perform(VNRequest[] , CVPixelBuffer , NSError& )
at CameraScanner.Maui.CameraManager.PerformBarcodeDetection(CVPixelBuffer cvPixelBuffer)

Steps to Reproduce

Expected Behavior

App should not crash

Actual Behavior

Crashing due to Argument Null Exception.

Basic Information

  • Version with issue:
  • Last known good version:

Screenshots, Attachments, Links

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions