googlesamples / ios-vision

Apache License 2.0
93 stars 40 forks source link

Crashed when camera detect something de to "GMVMultiDetectorDataOutput xScale" is unrecognised. #33

Open iwasa90 opened 5 years ago

iwasa90 commented 5 years ago

I downloaded the source code in my Macbook and ran pod install in the project folder. I installed MultiDetector app in iPhone device. But it crashed when the device camera detect something and I faced the below error.

CocoaPods : 1.8.1
Host : Mac OS X 10.14.6 (18G95)
Xcode : 11.0 (11A420a)
Installed Device: iPhone SE, iOS 12.1
2019-09-28 16:06:47.233 MultiDetector[435/0x10329ab80] [lvl=3] +[GMVx_CCTClearcutUploader crashIfNecessary] Multiple instances of CCTClearcutUploader were instantiated. Multiple uploaders function correctly but have an adverse affect on battery performance due to lock contention.
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication statusBarOrientation]
PID: 435, TID: 66567, Thread name: (none), Queue name: com.apple.avfoundation.videodataoutput.bufferqueue, QoS: 0
Backtrace:
4   MultiDetector                       0x0000000102975034 -[GMVDataOutput deviceOrientationFromInterfaceOrientation] + 56
5   MultiDetector                       0x0000000102974d4c -[GMVDataOutput captureOutput:didOutputSampleBuffer:fromConnection:] + 368
6   AVFoundation                        0x000000020f0fd04c <redacted> + 332
7   AVFoundation                        0x000000020f0fc760 <redacted> + 120
8   CoreMedia                           0x000000020bde0fd4 <redacted> + 860
9   CoreMedia                           0x000000020be0aa34 <redacted> + 676
10  libdispatch.dylib                   0x000000010310cdc8 _dispatch_client_callout + 16
11  libdispatch.dylib                   0x00000001031101c4 _dispatch_continuation_pop + 528
12  libdispatch.dylib                   0x0000000103122c90 _dispatch_source_invoke + 1864
13  libdispatch.dylib                   0x0000000103114cbc _dispatch_lane_serial_drain + 288
14  libdispatch.dylib                   0x0000000103115b98 _dispatch_lane_invoke + 516
15  libdispatch.dylib                   0x0000000103114cbc _dispatch_lane_serial_drain + 288
16  libdispatch.dylib                   0x0000000103115b60 _dispatch_lane_invoke + 460
17  libdispatch.dylib                   0x000000010311fbfc _dispatch_workloop_worker_thread + 1220
18  libsystem_pthread.dylib             0x00000002083c60dc _pthread_wqthread + 312
19  libsystem_pthread.dylib             0x00000002083c8cec start_wqthread + 4
2019-09-28 16:06:47.476501+0800 MultiDetector[435:66567] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication statusBarOrientation]
PID: 435, TID: 66567, Thread name: (none), Queue name: com.apple.avfoundation.videodataoutput.bufferqueue, QoS: 0
Backtrace:
4   MultiDetector                       0x0000000102975034 -[GMVDataOutput deviceOrientationFromInterfaceOrientation] + 56
5   MultiDetector                       0x0000000102974d4c -[GMVDataOutput captureOutput:didOutputSampleBuffer:fromConnection:] + 368
6   AVFoundation                        0x000000020f0fd04c <redacted> + 332
7   AVFoundation                        0x000000020f0fc760 <redacted> + 120
8   CoreMedia                           0x000000020bde0fd4 <redacted> + 860
9   CoreMedia                           0x000000020be0aa34 <redacted> + 676
10  libdispatch.dylib                   0x000000010310cdc8 _dispatch_client_callout + 16
11  libdispatch.dylib                   0x00000001031101c4 _dispatch_continuation_pop + 528
12  libdispatch.dylib                   0x0000000103122c90 _dispatch_source_invoke + 1864
13  libdispatch.dylib                   0x0000000103114cbc _dispatch_lane_serial_drain + 288
14  libdispatch.dylib                   0x0000000103115b98 _dispatch_lane_invoke + 516
15  libdispatch.dylib                   0x0000000103114cbc _dispatch_lane_serial_drain + 288
16  libdispatch.dylib                   0x0000000103115b60 _dispatch_lane_invoke + 460
17  libdispatch.dylib                   0x000000010311fbfc _dispatch_workloop_worker_thread + 1220
18  libsystem_pthread.dylib             0x00000002083c60dc _pthread_wqthread + 312
19  libsystem_pthread.dylib             0x00000002083c8cec start_wqthread + 4
2019-09-28 16:07:06.677655+0800 MultiDetector[435:66551] -[GMVMultiDetectorDataOutput xScale]: unrecognized selector sent to instance 0x280ca4e00
2019-09-28 16:07:06.677996+0800 MultiDetector[435:66551] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GMVMultiDetectorDataOutput xScale]: unrecognized selector sent to instance 0x280ca4e00'
*** First throw call stack:
(0x2087a9ed0 0x207979a40 0x2086c2d34 0x2087af7e8 0x2087b148c 0x10208d244 0x10297572c 0x10310b824 0x10310cdc8 0x10311aa78 0x208739e00 0x208734cc8 0x2087341fc 0x20a9a7584 0x235a9bc10 0x10208cab8 0x2081f4b94)
libc++abi.dylib: terminating with uncaught exception of type NSException