MTBBarcodeScanner icon indicating copy to clipboard operation
MTBBarcodeScanner copied to clipboard

It's crashing on iPad and iPhone after you try to scan QR code.

Open imvasim777 opened this issue 4 years ago • 2 comments

https://pub.dev/packages/ai_barcode this package is using this library internally and I believe it's somehow related with this package.

Crashed: com.apple.main-thread 0 ai_barcode 0x1061af584 $s10ai_barcode20AiBarcodeScannerViewC19resumeCameraPreviewyyFySbcfU_ySaySo35AVMetadataMachineReadableCodeObjectCGSgcfU_ + 752 1 ai_barcode 0x1061af5c4 $sSaySo35AVMetadataMachineReadableCodeObjectCGSgIegg_So7NSArrayCSgIeyBy_TR + 60 2 MTBBarcodeScanner 0x105e40790 -[MTBBarcodeScanner captureOutput:didOutputMetadataObjects:fromConnection:] + 444 3 AVFCapture 0x1aa6d0878 -[AVCaptureMetadataOutput _processSampleBuffer:] + 3464 4 AVFCapture 0x1aa6cf96c __46-[AVCaptureMetadataOutput _updateRemoteQueue:]_block_invoke + 92 5 CMCapture 0x1aa73e9e4 __FigRemoteOperationReceiverCreateMessageReceiver_block_invoke + 300 6 CMCapture 0x1aa9b8354 __rqReceiverSetSource_block_invoke + 256 7 libdispatch.dylib 0x18ff34db0 _dispatch_client_callout + 20 8 libdispatch.dylib 0x18ff3812c _dispatch_continuation_pop + 416 9 libdispatch.dylib 0x18ff49c08 _dispatch_source_invoke + 1260 10 libdispatch.dylib 0x18ff42694 _dispatch_main_queue_callback_4CF + 556 11 CoreFoundation 0x1902bc11c CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16 12 CoreFoundation 0x1902b6120 __CFRunLoopRun + 2508 13 CoreFoundation 0x1902b521c CFRunLoopRunSpecific + 600 14 GraphicsServices 0x1a7e81784 GSEventRunModal + 164 15 UIKitCore 0x192cf5ee8 -[UIApplication _run] + 1072 16 UIKitCore 0x192cfb75c UIApplicationMain + 168 17 Trust 0x104537e30 main + 6 (AppDelegate.swift:6) 18 libdyld.dylib 0x18ff756b0 start + 4

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 1.22.4, on macOS 11.2.1 20D74 darwin-x64, locale en-GB)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 12.2) [✓] Android Studio (version 4.1) [✓] VS Code (version 1.53.2) [✓] Connected device (1 available)

• No issues found!

Device Details: Screenshot 2021-02-22 at 9 12 19 AM

imvasim777 avatar Feb 22 '21 03:02 imvasim777

@mikebuss Can you please check?

imvasim777 avatar Feb 22 '21 03:02 imvasim777

Hi @imvasim777. This library is not actively maintained. If you are experiencing issues with it, I would recommend using Apple’s AVFoundation framework directly, which MTBBarcodeScanner is built on top of.

mikebuss avatar Feb 22 '21 03:02 mikebuss