2

我已经使用 ScanApiSDK (v 10.2.227) 与 Socket Mobile 扫描仪集成。我们收到了关于 -[AccessoryMonitor CheckForChanges:] 的崩溃日志,这似乎是 SDK 的一部分。

有谁之前经历过这个吗?找出问题原因的最佳方法是什么?

感谢任何帮助。崩溃日志如下。

*** -[__NSArrayM getObjects:range:]: range {0, 1} extends beyond bounds for empty array

#7. Crashed: com.twitter.crashlytics.ios.exception
0  MyFirstApp                     0x10076389c CLSProcessRecordAllThreads + 4302256284
1  MyFirstApp                     0x10076389c CLSProcessRecordAllThreads + 4302256284
2  MyFirstApp                     0x100763d4c CLSProcessRecordAllThreads + 4302257484
3  MyFirstApp                     0x10074e78c CLSHandler + 4302169996
4  MyFirstApp                     0x100761aa4 __CLSExceptionRecord_block_invoke + 4302248612
5  libdispatch.dylib              0x1811d947c _dispatch_client_callout + 16
6  libdispatch.dylib              0x1811e4728 _dispatch_barrier_sync_f_invoke + 100
7  MyFirstApp                     0x10076163c CLSExceptionRecord + 4302247484
8  MyFirstApp                     0x100761454 CLSExceptionRecordNSException + 4302246996
9  MyFirstApp                     0x1007610b4 CLSTerminateHandler() + 4302246068
10 libc++abi.dylib                0x180de6f44 std::__terminate(void (*)()) + 16
11 libc++abi.dylib                0x180de685c __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 134
12 libobjc.A.dylib                0x180df4094 _objc_exception_destructor(void*) + 330
13 CoreFoundation                 0x181672ff8 -[NSMutableArray sortUsingSelector:] + 634
14 CoreFoundation                 0x181672b10 -[NSArray initWithArray:range:copyItems:] + 248
15 CoreFoundation                 0x181672a04 +[NSArray arrayWithArray:] + 80
16 MyFirstApp                     0x1004f59d8 -[AccessoryMonitor CheckForChanges:] (AccessoryMonitor.m:204)
17 MyFirstApp                     0x1004f5be0 SktAccessoryEnumerator::Wait(unsigned long, TSktHardware**, CSktTransport**) (SktAccessoryEnumerator.mm:86)
18 MyFirstApp                     0x1004e6130 SktScanAPIListenerThread(void*) (SktListener.mm:207)
19 libsystem_pthread.dylib        0x1813f3b28 _pthread_body + 156
20 libsystem_pthread.dylib        0x1813f3a8c _pthread_body + 154
21 libsystem_pthread.dylib        0x1813f1028 thread_start + 4

--

Fatal Exception: NSRangeException
0  CoreFoundation                 0x18178edb0 __exceptionPreprocess
1  libobjc.A.dylib                0x180df3f80 objc_exception_throw
2  CoreFoundation                 0x181672ff8 -[NSMutableArray sortUsingSelector:]
3  CoreFoundation                 0x181672b10 -[NSArray initWithArray:range:copyItems:]
4  CoreFoundation                 0x181672a04 +[NSArray arrayWithArray:]
5  MyFirstApp                     0x1004f59d8 -[AccessoryMonitor CheckForChanges:] (AccessoryMonitor.m:204)
6  MyFirstApp                     0x1004f5be0 SktAccessoryEnumerator::Wait(unsigned long, TSktHardware**, CSktTransport**) (SktAccessoryEnumerator.mm:86)
7  MyFirstApp                     0x1004e6130 SktScanAPIListenerThread(void*) (SktListener.mm:207)
8  libsystem_pthread.dylib        0x1813f3b28 _pthread_body
9  libsystem_pthread.dylib        0x1813f3a8c _pthread_body
10 libsystem_pthread.dylib        0x1813f1028 thread_start
4

0 回答 0