rmtmckenzie / flutter_qr_mobile_vision

QR reader plugin using mobile vision API for Flutter.
MIT License
217 stars 186 forks source link

Apple crash - com.apple.root.default-qos #192

Closed pynner closed 1 year ago

pynner commented 2 years ago

Thanks for the great plugin, have recently deployed it and mostly working great.

Since deploying this Crashlytics error has popped up, no user reports yet so no extra details available.


Crashed: com.apple.root.default-qos
0  Runner                         0xab8c10 specialized QrReader.captureOutput(_:didOutput:from:) + 227 (QrReader.swift:227)
1  Runner                         0xab7efc @objc QrReader.captureOutput(_:didOutput:from:) + 180104 (<compiler-generated>:180104)
2  AVFCapture                     0x19124 -[AVCaptureVideoDataOutput _processSampleBuffer:] + 336
3  AVFCapture                     0x327c __47-[AVCaptureVideoDataOutput _updateRemoteQueue:]_block_invoke + 104
4  CMCapture                      0x14c098 __FigRemoteOperationReceiverCreateMessageReceiver_block_invoke + 308
5  CMCapture                      0x3026b8 __rqReceiverSetSource_block_invoke + 264
6  libdispatch.dylib              0x4670 _dispatch_client_callout + 20
7  libdispatch.dylib              0x7b44 _dispatch_continuation_pop + 504
8  libdispatch.dylib              0x1ac48 _dispatch_source_invoke + 1356
9  libdispatch.dylib              0x16b70 _dispatch_kevent_worker_thread + 1316
10 libsystem_pthread.dylib        0x112c _pthread_wqthread + 344
11 libsystem_pthread.dylib        0xe94 start_wqthread + 8```
rvanderlinden commented 1 year ago

Looks like we ran into a similar crash on iOS. Also logged in crashlytics. We have not been able to reproduce this issue on our dev iOS 15 devices yet.

Issue encountered using lib version 3.0.1. We have now upgraded to 4.0.1 (actually a fork because 4.0.1 has an issue on Android) and will see whether it pops up again.

Device: iOS 15.7.2 iPhone 7
---
Crashed: com.apple.root.default-qos
EXC_BREAKPOINT 0x000000010193508c
---
Crashed: com.apple.root.default-qos
0  Runner                         0xd6108c specialized QrReader.captureOutput(_:didOutput:from:) + 227 (QrReader.swift:227)
1  Runner                         0xd60370 @objc QrReader.captureOutput(_:didOutput:from:) + 158216 (<compiler-generated>:158216)
2  AVFCapture                     0x17558 <redacted> + 332
3  AVFCapture                     0x2b28 <redacted> + 100
4  CMCapture                      0x140f38 <redacted> + 272
5  CMCapture                      0x2edfbc <redacted> + 248
6  libdispatch.dylib              0x64094 _dispatch_client_callout + 16
7  libdispatch.dylib              0x6bb8 _dispatch_continuation_pop$VARIANT$mp + 440
8  libdispatch.dylib              0x188dc _dispatch_source_invoke$VARIANT$mp + 1668
9  libdispatch.dylib              0x14878 _dispatch_kevent_worker_thread + 1172
10 libsystem_pthread.dylib        0x1e48 _pthread_wqthread + 340
11 libsystem_pthread.dylib        0x193c start_wqthread + 8
rmtmckenzie commented 1 year ago

I did some changes to how the threading was handled in iOS in 4.*, so hopefully this is resolved. I'm going to close for now, re-open or log a new bug if you see it again.