olexale / flutter_mrz_scanner

Scans MRZ (Machine Readable Zone) from identity documents.
MIT License
51 stars 43 forks source link

UI thread issue #8

Open smedic opened 4 years ago

smedic commented 4 years ago

When I start sample in iOS, I get this:

Main Thread Checker: UI API called on a background thread: -[UIView bounds] PID: 15282, TID: 4646718, Thread name: (none), Queue name: video_frames_queue, QoS: 33 Backtrace: 4 flutter_mrz_scanner 0x000000010042c9a0 $s19flutter_mrz_scanner14MRZScannerViewC19calculateCutoutRect33_AF9DEA6FFC6AF87E76CE73C099338E44LLSo6CGRectVyF + 76 5 flutter_mrz_scanner 0x0000000100429a0c $s19flutter_mrz_scanner14MRZScannerViewC10cutoutRect33_AF9DEA6FFC6AF87E76CE73C099338E44LL3forSo6CGRectVSo10CGImageRefa_tF + 268 6 flutter_mrz_scanner 0x0000000100429fe8 $s19flutter_mrz_scanner14MRZScannerViewC13documentImage33_AF9DEA6FFC6AF87E76CE73C099338E44LL4fromSo10CGImageRefaAH_tF + 56 7 flutter_mrz_scanner 0x000000010042ceb0 $s19flutter_mrz_scanner14MRZScannerViewC13captureOutput_03didG04fromySo09AVCaptureG0C_So17CMSampleBufferRefaSo0J10ConnectionCtF + 312 8 flutter_mrz_scanner 0x000000010042e864 $s19flutter_mrz_scanner14MRZScannerViewC13captureOutput_03didG04fromySo09AVCaptureG0C_So17CMSampleBufferRefaSo0J10ConnectionCtFTo + 124 9 AVFoundation 0x0000000190b2422c BAE1D0DC-B906-3AF2-9651-A0F35779BE54 + 999980 10 AVFoundation 0x0000000190b23f70 BAE1D0DC-B906-3AF2-9651-A0F35779BE54 + 999280 11 CoreMedia 0x000000018d09cca8 89AD72DE-9912-3E85-B361-AD7CD6D823F0 + 347304 12 CoreMedia 0x000000018d0bd988 89AD72DE-9912-3E85-B361-AD7CD6D823F0 + 481672 13 libdispatch.dylib 0x000000010047327c _dispatch_client_callout + 20 14 libdispatch.dylib 0x0000000100476058 _dispatch_continuation_pop + 572 15 libdispatch.dylib 0x0000000100489824 _dispatch_source_invoke2 + 984 16 libdispatch.dylib 0x0000000100489114 _dispatch_source_invoke + 468 17 libdispatch.dylib 0x000000010047a740 _dispatch_lane_serial_drain + 260 18 libdispatch.dylib 0x000000010047b538 _dispatch_lane_invoke + 468 19 libdispatch.dylib 0x00000001004864dc _dispatch_workloop_worker_thread + 1344 20 libsystem_pthread.dylib 0x00000001864476d0 _pthread_wqthread + 280 21 libsystem_pthread.dylib 0x000000018644d9e8 start_wqthread + 8 2020-05-12 17:59:33.801044+0200 Runner[15282:4646718] [reports] Main Thread Checker: UI API called on a background thread: -[UIView bounds] PID: 15282, TID: 4646718, Thread name: (none), Queue name: video_frames_queue, QoS: 33 Backtrace: 4 flutter_mrz_scanner 0x000000010042c9a0 $s19flutter_mrz_scanner14MRZScannerViewC19calculateCutoutRect33_AF9DEA6FFC6AF87E76CE73C099338E44LLSo6CGRectVyF + 76 5 flutter_mrz_scanner 0x0000000100429a0c $s19flutter_mrz_scanner14MRZScannerViewC10cutoutRect33_AF9DEA6FFC6AF87E76CE73C099338E44LL3forSo6CGRectVSo10CGImageRefa_tF + 268 6 flutter_mrz_scanner 0x0000000100429fe8 $s19flutter_mrz_scanner14MRZScannerViewC13documentImage33_AF9DEA6FFC6AF87E76CE73C099338E44LL4fromSo10CGImageRefaAH_tF + 56 7 flutter_mrz_scanner 0x000000010042ceb0 $s19flutter_mrz_scanner14MRZScannerViewC13captureOutput_03didG04fromySo09AVCaptureG0C_So17CMSampleBufferRefaSo0J10ConnectionCtF + 312 8 flutter_mrz_scanner 0x000000010042e864 $s19flutter_mrz_scanner14MRZScannerViewC13captureOutput_03didG04fromySo09AVCaptureG0C_So17CMSampleBufferRefaSo0J10ConnectionCtFTo + 124 9 AVFoundation 0x0000000190b2422c BAE1D0DC-B906-3AF2-9651-A0F35779BE54 + 999980 10 AVFoundation 0x0000000190b23f70 BAE1D0DC-B906-3AF2-9651-A0F35779BE54 + 999280 11 CoreMedia 0x000000018d09cca8 89AD72DE-9912-3E85-B361-AD7CD6D823F0 + 347304 12 CoreMedia 0x000000018d0bd988 89AD72DE-9912-3E85-B361-AD7CD6D823F0 + 481672 13 libdispatch.dylib 0x000000010047327c _dispatch_client_callout + 20 14 libdispatch.dylib 0x0000000100476058 _dispatch_continuation_pop + 572 15 libdispatch.dylib 0x0000000100489824 _dispatch_source_invoke2 + 984 16 libdispatch.dylib 0x0000000100489114 _dispatch_source_invoke + 468 17 libdispatch.dylib 0x000000010047a740 _dispatch_lane_serial_drain + 260 18 libdispatch.dylib 0x000000010047b538 _dispatch_lane_invoke + 468 19 libdispatch.dylib 0x00000001004864dc _dispatch_workloop_worker_thread + 1344 20 libsystem_pthread.dylib 0x00000001864476d0 _pthread_wqthread + 280 21 libsystem_pthread.dylib 0x000000018644d9e8 start_wqthread + 8

And camera is not opened. Any idea why and how to fix this?