Watch application crashes when a start

Hello when i start application on the watch normaly i wait data from my app.


It's work with the first watch with old OS.


But on watch ok 6.0.1 watch 4.2 i have this :

Please help me.


Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Application Specific Information:
abort() called

Last Exception Backtrace:
0   CoreFoundation                0x21009614 __exceptionPreprocess + 220
1   libobjc.A.dylib               0x2091733c objc_exception_throw + 55
2   CoreFoundation                0x2105d86c _CFThrowFormattedException + 111
3   CoreFoundation                0x210666b0 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.4 + 47
4   CoreFoundation                0x20ef9bd8 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 247
5   CoreFoundation                0x21008da0 __createDictionary + 55
6   CoreFoundation                0x20efe090 +[NSDictionary dictionaryWithObject:forKey:] + 43
7   CDN-PROPRI-Development-Watch Extension 0x0409fdc0 0x4098000 + 32192
8   CDN-PROPRI-Development-Watch Extension 0x0409f678 0x4098000 + 30328
9   CDN-PROPRI-Development-Watch Extension 0x0409eea8 0x4098000 + 28328
10  CDN-PROPRI-Development-Watch Extension 0x0409eca4 0x4098000 + 27812
11  WatchKit                      0x333cfd34 -[SPRemoteInterface _activateViewController:clientIdentifier:] + 363
12  WatchKit                      0x33414d30 -[WKInterfaceController _finishGestureInstallationWithCompletion:] + 383
13  WatchKit                      0x333cfb54 __61-[SPRemoteInterface activateViewController:clientIdentifier:]_block_invoke_2 + 143
14  WatchKit                      0x333d343c -[SPRemoteInterface performAfterApplicationDidFinishLaunching:] + 55
15  WatchKit                      0x333cfaa4 __61-[SPRemoteInterface activateViewController:clientIdentifier:]_block_invoke + 111
16  WatchKit                      0x33396794 spUtils_dispatchAsyncToMainThread + 39
17  WatchKit                      0x333cf968 -[SPRemoteInterface activateViewController:clientIdentifier:] + 191
18  WatchKit                      0x3345cbdc __57-[SPExtensionConnection interfaceViewControllerActivate:]_block_invoke + 423
19  WatchKit                      0x33453984 -[SPExtensionConnection performOnSendQueue:syncIfUnsuspended:] + 563
20  WatchKit                      0x3345c9a4 -[SPExtensionConnection interfaceViewControllerActivate:] + 203
21  WatchKit                      0x3343cd04 -[SPApplicationDelegate viewControllerWillActivate:] + 163
22  WatchKit                      0x33400c08 -[SPViewController controllerWillActivate] + 227
23  WatchKit                      0x333b097c -[SPInterfaceViewController controllerWillActivate] + 315
24  WatchKit                      0x33400390 -[SPViewController viewWillAppear:] + 307
25  WatchKit                      0x333b1204 -[SPInterfaceViewController viewWillAppear:] + 75
26  UIKitCore                     0x3d26df9c -[UIViewController _setViewAppearState:isAnimating:] + 339
27  UIKitCore                     0x3d26e81c -[UIViewController __viewWillAppear:] + 163
28  PepperUICore                  0x2d386288 -[PUICPageViewController _childViewController:beginAppearanceTransitionIfPossible:animated:] + 103
29  PepperUICore                  0x2d38564c -[PUICPageViewController collectionView:willDisplayCell:forItemAtIndexPath:] + 99
30  UIKitCore                     0x3d10cc3c -[UICollectionView _notifyWillDisplayCellIfNeeded:forIndexPath:] + 151
31  UIKitCore                     0x3d10d6c0 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 2351
32  UIKitCore                     0x3d1117f4 -[UICollectionView _updateVisibleCellsNow:] + 4515
33  UIKitCore                     0x3d116094 -[UICollectionView layoutSubviews] + 327
34  PepperUICore                  0x2d3e25d0 -[PUICCollectionView layoutSubviews] + 47
35  UIKitCore                     0x3dba5934 -[UIView+ 13515060 (CALayerDelegate) layoutSublayersOfLayer:] + 1755
36  QuartzCore                    0x2605edc8 -[CALayer layoutSublayers] + 287
37  QuartzCore                    0x2606371c CA::Layer::layout_if_needed+ 1365788 (CA::Transaction*) + 447
38  QuartzCore                    0x2606f878 CA::Layer::layout_and_display_if_needed+ 1415288 (CA::Transaction*) + 115
39  QuartzCore                    0x25fc05ec CA::Context::commit_transaction+ 697836 (CA::Transaction*, double) + 291
40  QuartzCore                    0x25feafe4 CA::Transaction::commit+ 872420 () + 647
41  QuartzCore                    0x25feb9e0 CA::Transaction::observer_callback+ 874976 (__CFRunLoopObserver*, unsigned long, void*) + 95
42  CoreFoundation                0x20f876fc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 35
43  CoreFoundation                0x20f82688 __CFRunLoopDoObservers + 399
44  CoreFoundation                0x20f82d84 __CFRunLoopRun + 1623
45  CoreFoundation                0x20f82420 CFRunLoopRunSpecific + 463
46  GraphicsServices              0x244f22ec GSEventRunModal + 99
47  UIKitCore                     0x3d783784 UIApplicationMain + 1759
48  libxpc.dylib                  0x20c70aa4 _xpc_objc_main.cold.3 + 207
49  libxpc.dylib                  0x20c5ca90 _xpc_objc_main + 211
50  libxpc.dylib                  0x20c5f3e4 xpc_main + 151
51  Foundation                    0x2195263c -[NSXPCListener resume] + 159
52  PlugInKit                     0x2a6f22f8 0x2a6d9000 + 103160
53  WatchKit                      0x33470f94 WKExtensionMain + 59
54  WatchKit                      0x33470fb8 main + 11
55  libdyld.dylib                 0x20a1ca38 start + 3


Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib        0x20b94c88 __pthread_kill + 8
1   libsystem_pthread.dylib       0x20c11cbc pthread_kill + 200
2   libsystem_c.dylib             0x20af06f4 abort + 100
3   libc++abi.dylib               0x208fb620 __cxa_bad_cast + 0
4   libc++abi.dylib               0x208fb7f8 demangling_unexpected_handler+ 6136 () + 0
5   libobjc.A.dylib               0x209175cc _objc_terminate+ 38348 () + 124
6   libc++abi.dylib               0x20908600 std::__terminate(void (*)+ 58880 ()) + 16
7   libc++abi.dylib               0x20908224 __cxa_rethrow + 144
8   libobjc.A.dylib               0x209174cc objc_exception_rethrow + 40
9   CoreFoundation                0x20f82490 CFRunLoopRunSpecific + 576
10  GraphicsServices              0x244f22ec GSEventRunModal + 99
11  UIKitCore                     0x3d783784 UIApplicationMain + 1759
12  libxpc.dylib                  0x20c70aa4 _xpc_objc_main.cold.3 + 207
13  libxpc.dylib                  0x20c5ca90 _xpc_objc_main + 211
14  libxpc.dylib                  0x20c5f3e4 xpc_main + 151
15  Foundation                    0x2195263c -[NSXPCListener resume] + 159
16  PlugInKit                     0x2a6f22f8 0x2a6d9000 + 103160
17  WatchKit                      0x33470f94 WKExtensionMain + 59
18  WatchKit                      0x33470fb8 main + 11
19  libdyld.dylib                 0x20a1ca38 start + 3

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

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

Thread 3 name:  com.apple.uikit.eventfetch-thread
Thread 3:
0   libsystem_kernel.dylib        0x20b72540 mach_msg_trap + 8
1   libsystem_kernel.dylib        0x20b71a0c mach_msg + 72
2   CoreFoundation                0x20f87b10 __CFRunLoopServiceMachPort + 212
3   CoreFoundation                0x20f82e0c __CFRunLoopRun + 1760
4   CoreFoundation                0x20f82420 CFRunLoopRunSpecific + 463
5   Foundation                    0x21916ba8 -[NSRunLoop+ 43944 (NSRunLoop) runMode:beforeDate:] + 228
6   Foundation                    0x21916a88 -[NSRunLoop+ 43656 (NSRunLoop) runUntilDate:] + 88
7   UIKitCore                     0x3d810fe0 -[UIEventFetcher threadMain] + 152
8   Foundation                    0x21a440c0 __NSThread__start__ + 844
9   libsystem_pthread.dylib       0x20c10cb0 _pthread_start + 124
10  libsystem_pthread.dylib       0x20c18a70 thread_start + 8

Thread 4 name:  Dispatch queue: com.apple.platterImageFileWriteQueue
Thread 4:
0   libsystem_kernel.dylib        0x20b94778 __open + 8
1   libsystem_kernel.dylib        0x20b7ab04 open + 16
2   CoreFoundation                0x20f57628 _CFReadBytesFromFile + 156
3   CoreFoundation                0x20fde070 CFURLCreateDataAndPropertiesFromResource + 408
4   CoreFoundation                0x20ff56e8 _CFDataCreateFromURL + 80
5   CoreFoundation                0x210478ec CFBundleCopyLocalizedStringForLocalization + 436
6   Foundation                    0x21929d68 -[NSBundle localizedStringForKey:value:table:] + 60
7   Foundation                    0x21957684 -[NSFileManager _URLForReplacingItemAtURL:error:] + 1060
8   Foundation                    0x21a27de0 _NSCreateTemporaryFile_Protected + 716
9   Foundation                    0x21a28388 _NSWriteDataToFileWithExtendedAttributes + 416
10  WatchKit                      0x333ec400 __56-[SPInterfaceGroupView backgroundPlatterImageWithColor:]_block_invoke + 132
11  libdispatch.dylib             0x209df3a0 _dispatch_call_block_and_release + 24
12  libdispatch.dylib             0x209e0730 _dispatch_client_callout + 16
13  libdispatch.dylib             0x209e6844 _dispatch_lane_serial_drain + 676
14  libdispatch.dylib             0x209e7230 _dispatch_lane_invoke + 408
15  libdispatch.dylib             0x209f0728 _dispatch_workloop_worker_thread + 580
16  libsystem_pthread.dylib       0x20c12a0c _pthread_wqthread + 280
17  libsystem_pthread.dylib       0x20c18a64 start_wqthread + 8

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x000000002090b644   x5: 0x00000000041ef340   x6: 0x000000000000006e   x7: 0x00000000fffffffb
    x8: 0x00000000044cd470   x9: 0x00000000044cd3c0  x10: 0x0000000000000002  x11: 0x000000000000000d
   x12: 0x0000000000000000  x13: 0x0000000000000010  x14: 0x0000000000000000  x15: 0x0000000000000000
   x16: 0x0000000000000148  x17: 0x0000000000000001  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000000000407  x21: 0x000000004c5c3f58  x22: 0x00000000041ef340  x23: 0x00000000497c4cc8
   x24: 0x000000001454bc00  x25: 0x0000000000000000  x26: 0x0000000000000001  x27: 0x0000000000000000
   x28: 0x000000004ccac000   fp: 0x00000000041ef2b0   lr: 0x0000000020c11cbc
    sp: 0x00000000041ef290   pc: 0x0000000020b94c88 cpsr: 0x40000000
   esr: 0x56000080  Address size fault

Consider the Last Exception Backtrace section of your crash report. Frame 7 shows your app calling

+[NSDictionary dictionaryWithObject:forKey:]
at frame 6. Frame 5…3 are internal to that, and frame 2 is that code throwing a language exception. The most likely cause of this exception is that either the key or the object you supplied to
NSDictionary
in frame 7 is
nil
. Specifically, this code:
NSDictionary * dict = [NSDictionary dictionaryWithObject:nil forKey:@"***"];

will throw an exception with a matching backtrace.

In short, you need to fully symbolicate this crash report so that you can uncover the identity of frame 7.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Watch application crashes when a start
 
 
Q