WatchOS2-NewAPI-CoreMotion-CMPedometer-Example icon indicating copy to clipboard operation
WatchOS2-NewAPI-CoreMotion-CMPedometer-Example copied to clipboard

Crash on Watch unwrapping CMPedometerHandler

Open Trifusion opened this issue 9 years ago • 0 comments

I am getting a crash on the Apple Watch (original) running watchOS 3 linked to an iPhone5. The crash occurs in startPedometerUpdates() and appears to be caused by the force unwrap of the handler as a CMPedometerHandler.

Date/Time: 2016-10-12 09:59:43.3892 -0400 Launch Time: 2016-10-12 09:59:37.0000 -0400 OS Version: Watch OS 3.0 (14S326) Report Version: 104

Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x00000000e7ffdefe Termination Signal: Trace/BPT trap: 5 Termination Reason: Namespace SIGNAL, Code 0x5 Terminating Process: exc handler [0] Triggered by Thread: 0

Filtered syslog: None found

Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 ...-Example WatchKit Extension 0x000e82b0 0xe0000 + 33456 1 ...-Example WatchKit Extension 0x000e7fb4 0xe0000 + 32692 2 ...-Example WatchKit Extension 0x000e7ff4 0xe0000 + 32756 3 WatchKit 0x2e84791c -[SPRemoteInterface _activateViewController:clientIdentifier:] + 136 4 WatchKit 0x2e85e4f2 -[WKInterfaceController _finishGestureInstallationWithCompletion:] + 316 5 WatchKit 0x2e847798 __61-[SPRemoteInterface activateViewController:clientIdentifier:]_block_invoke + 126 6 libdispatch.dylib 0x209224e2 _dispatch_call_block_and_release + 10 7 libdispatch.dylib 0x209224be _dispatch_client_callout + 6 8 libdispatch.dylib 0x2092228c _dispatch_main_queue_callback_4CF$VARIANT$up + 848 9 CoreFoundation 0x20ddef1e CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 10 10 CoreFoundation 0x20ddd1ee __CFRunLoopRun + 1486 11 CoreFoundation 0x20d31f74 CFRunLoopRunSpecific + 354 12 Foundation 0x2167307c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 246 13 Foundation 0x216bff5a -[NSRunLoop(NSRunLoop) run] + 80 14 libxpc.dylib 0x20b630de _xpc_objc_main + 600 15 libxpc.dylib 0x20b646fe xpc_main + 166 16 Foundation 0x21847fea service_connection_handler + 0 17 PlugInKit 0x2aa031be -[PKService run] + 774 18 WatchKit 0x2e86ff8c main + 134 19 libdyld.dylib 0x20974566 start + 2

Thread 1: 0 libsystem_pthread.dylib 0x20b251ac start_wqthread + 0

Thread 2: 0 libsystem_pthread.dylib 0x20b251ac start_wqthread + 0

Thread 3: 0 libsystem_pthread.dylib 0x20b251ac start_wqthread + 0

Thread 4: 0 libsystem_kernel.dylib 0x20a67700 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x20b25634 _pthread_wqthread + 1116 2 libsystem_pthread.dylib 0x20b251b8 start_wqthread + 12

Thread 0 crashed with ARM Thread State (32-bit): r0: 0x14577b00 r1: 0x00000002 r2: 0x00000000 r3: 0x000e9ba4 r4: 0x14577d60 r5: 0x14578180 r6: 0x14567740 r7: 0x00282a38 r8: 0x14577d60 r9: 0x00010001 r10: 0x14578180 r11: 0x351cbb40 ip: 0xffffffff sp: 0x002829f0 lr: 0x14539d00 pc: 0x000e82b0 cpsr: 0x20000010

Trifusion avatar Oct 12 '16 14:10 Trifusion