JimmyPun610 / BarcodeScanner.Mobile

Barcode Scanner using GoogleVision API for Xamarin Form, Maui
MIT License
340 stars 100 forks source link

Sample App MAUI crashes on live iOS (NSInvalidArgumentException) #249

Open alexsmi-noveo opened 1 month ago

alexsmi-noveo commented 1 month ago

Describe the bug Sample App MAUI crashes on live device when tap on any of the options presented. The same error is on our live project with the latest Barcode version 8.0.40.1.

Log from console: INFO: Initialized TensorFlow Lite runtime. INFO: Created TensorFlow Lite XNNPACK delegate for CPU. Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MLKITx_CCTLogContext hashForFilePath]: unrecognized selector sent to instance 0x301e603f0' First throw call stack: (0x18e900f20 0x1867ab2b8 0x18ea0a480 0x18e89dfb4 0x18e89d8d0 0x102da4e2c 0x102da21a8 0x102da20bc 0x102da11cc 0x102da0a68 0x1967a513c 0x1967a6dd4 0x1967ae400 0x1967aef64 0x1967b9cb4 0x1967b9528 0x1eb350934 0x1eb34d0cc) Thread started: #7 Thread started: #8 Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MLKITx_CCTLogContext hashForFilePath]: unrecognized selector sent to instance 0x301e603f0' First throw call stack: (0x18e900f20 0x1867ab2b8 0x18ea0a480 0x18e89dfb4 0x18e89d8d0 0x102da4e2c 0x102da21a8 0x102da20bc 0x102da11cc 0x102da0a68 0x1967a513c 0x1967a6dd4 0x1967ae400 0x1967aef64 0x1967b9cb4 0x1967b9528 0x1eb350934 0x1eb34d0cc) 2024-09-12 22:34:25.674 SampleApp.Maui[3785:1276348] Detected recursion when handling uncaught Objective-C exception: -[MLKITx_CCTLogContext hashForFilePath]: unrecognized selector sent to instance 0x301e603f0

To Reproduce Steps to reproduce the behavior:

  1. Pull the code. Open SampleApp.Maui.csproj
  2. Set target live device connected to the Mac.
  3. Launch the app.
  4. Tap any of the options presented.

Expected behavior CameraView with barcode scanner must open without issues or crashes

Screenshots

image

Smartphone (please complete the following information):

Additional context The same problem if upgrade MAUI packages to the latest version 8.0.82. Meanwhile barcode plugin works on our prod app 8.0.0.1 + MAUI 8.0.80

Update: Downgrade plugin to version 8.0.0.1 works in SampleApp without crashes.

rehnz commented 1 month ago

I am having the same issues as above with similar versions, but in Visual Studio 17.11.4

Saesch commented 2 weeks ago

Had have the same issue. I've comment out the splash screen entries in the project file, and all entries with "splash.svg". Now i can deploy the sample on my android (Samsung A13).