Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alexsmi-noveo opened this issue Sep 12, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@alexsmi-noveo
Copy link

alexsmi-noveo commented Sep 12, 2024

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):

  • Device: iPhone 12 mini
  • OS: iOS 17.6.1
  • Version: Maui v8.0.40

Other versions

  • Barcode scanner plugin version: 8.0.40.1

  • Manifest Version: 8.0.82/8.0.100

  • NET SDK 8.0.400

  • VS Code for Mac 17.6.14

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.

@alexsmi-noveo alexsmi-noveo added the bug Something isn't working label Sep 12, 2024
@rehnz
Copy link

rehnz commented Sep 18, 2024

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

@Saesch
Copy link

Saesch commented Oct 6, 2024

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).

@TheFerrango
Copy link

TheFerrango commented Dec 13, 2024

I also have this issue on iOS, with MAUI 8.0.100 and scanner 8.0.40.1.
Downgrading to 8.0.80 and 8.0.0.1 respectively made no difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants