faceterteam / PayCards_iOS

Credit card scanning for mobile apps
https://pay.cards/
Other
199 stars 53 forks source link

Disable log + Warning Threads? #14

Open Droppix opened 6 years ago

Droppix commented 6 years ago

Hi,

1/ There are 2 warnings (UI API called from background thread Group):

2/ It's possible disable logs ?

Thanks

================================================================= Main Thread Checker: UI API called on a background thread: -[UIView layer] PID: 10160, TID: 3879908, Thread name: (none), Queue name: com.sunsetlakesoftware.GPUImage.openGLESContextQueue, QoS: 0 Backtrace: 4 PayCardsRecognizer 0x00000001058732d4 -[GPUImageView createDisplayFramebuffer] + 188 5 PayCardsRecognizer 0x0000000105873468 -[GPUImageView setDisplayFramebuffer] + 48 6 PayCardsRecognizer 0x0000000105873814 44-[GPUImageView newFrameReadyAtTime:atIndex:]_block_invoke + 72 7 PayCardsRecognizer 0x0000000105844ac8 runSynchronouslyOnVideoProcessingQueue + 100 8 PayCardsRecognizer 0x00000001058737b8 -[GPUImageView newFrameReadyAtTime:atIndex:] + 76 9 PayCardsRecognizer 0x00000001057b6368 -[GPUImageVideoCamera updateTargetsForVideoCameraUsingCacheTextureAtWidth:height:time:] + 976 10 PayCardsRecognizer 0x00000001057b692c -[GPUImageVideoCamera processVideoSampleBuffer:] + 1360 11 PayCardsRecognizer 0x00000001057b6e00 74-[GPUImageVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:]_block_invoke + 136 12 libdispatch.dylib 0x0000000108dc52cc _dispatch_call_block_and_release + 24 13 libdispatch.dylib 0x0000000108dc528c _dispatch_client_callout + 16 14 libdispatch.dylib 0x0000000108dd3f80 _dispatch_queue_serial_drain + 696 15 libdispatch.dylib 0x0000000108dc87ec _dispatch_queue_invoke + 332 16 libdispatch.dylib 0x0000000108dd4f6c _dispatch_root_queue_drain_deferred_wlh + 428 17 libdispatch.dylib 0x0000000108ddc020 _dispatch_workloop_worker_thread + 652 18 libsystem_pthread.dylib 0x0000000183a2af1c _pthread_wqthread + 932 19 libsystem_pthread.dylib 0x0000000183a2ab6c start_wqthread + 4

Main Thread Checker: UI API called on a background thread: -[UIView bounds] PID: 10160, TID: 3879908, Thread name: (none), Queue name: com.sunsetlakesoftware.GPUImage.openGLESContextQueue, QoS: 0 Backtrace: 4 PayCardsRecognizer 0x0000000105873390 -[GPUImageView createDisplayFramebuffer] + 376 5 PayCardsRecognizer 0x0000000105873468 -[GPUImageView setDisplayFramebuffer] + 48 6 PayCardsRecognizer 0x0000000105873814 44-[GPUImageView newFrameReadyAtTime:atIndex:]_block_invoke + 72 7 PayCardsRecognizer 0x0000000105844ac8 runSynchronouslyOnVideoProcessingQueue + 100 8 PayCardsRecognizer 0x00000001058737b8 -[GPUImageView newFrameReadyAtTime:atIndex:] + 76 9 PayCardsRecognizer 0x00000001057b6368 -[GPUImageVideoCamera updateTargetsForVideoCameraUsingCacheTextureAtWidth:height:time:] + 976 10 PayCardsRecognizer 0x00000001057b692c -[GPUImageVideoCamera processVideoSampleBuffer:] + 1360 11 PayCardsRecognizer 0x00000001057b6e00 74-[GPUImageVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:]_block_invoke + 136 12 libdispatch.dylib 0x0000000108dc52cc _dispatch_call_block_and_release + 24 13 libdispatch.dylib 0x0000000108dc528c _dispatch_client_callout + 16 14 libdispatch.dylib 0x0000000108dd3f80 _dispatch_queue_serial_drain + 696 15 libdispatch.dylib 0x0000000108dc87ec _dispatch_queue_invoke + 332 16 libdispatch.dylib 0x0000000108dd4f6c _dispatch_root_queue_drain_deferred_wlh + 428 17 libdispatch.dylib 0x0000000108ddc020 _dispatch_workloop_worker_thread + 652 18 libsystem_pthread.dylib 0x0000000183a2af1c _pthread_wqthread + 932 19 libsystem_pthread.dylib 0x0000000183a2ab6c start_wqthread + 4

vitkuzmenko commented 6 years ago

Hello! How you use framework? Cocoa pods or custom installation?

Droppix commented 6 years ago

I added your release framework (not built by me) in embedded binairies.

vitkuzmenko commented 6 years ago

try using cocoapods

Droppix commented 6 years ago

I can try to use cocoa pods for only test, but not in distribution, we use already carthage...

vitkuzmenko commented 6 years ago

try download this project, and rebuild framework in release mode

vitkuzmenko commented 6 years ago

also try run this project on device for check log

Droppix commented 6 years ago

Ok, thanks...