Binary Rejected - ios

I have submitted my app to Review and it was rejected.
To sum up, Apple said my app crashed on launch, and that I should test it on a real device.
I have tested my app in several real devices, both iPhones and iPads, as well as it has been tested through TestFlight without any known crashes on launch.
They've appended the crash_log for me to analyze the issue, but I cannot identify the problem based in the information they've provided, and maybe someone can help me find what may be causing the supposed issue based in their crash_log.
I can only identify that it crashed in the Main Thread which is pretty vague.
Here's the crash_log
{"app_name":"Union","timestamp":"2018-08-12 11:03:04.14 -0700","app_version":"1.0","slice_uuid":"4fab1f57-a08b-3604-9e09-73488d1e4019","adam_id":1346010710,"build_version":"23","bundleID":"com.ivancantarino.Union","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 11.4.1 (15G77)","incident_id":"AD9ED6DF-E560-49F8-A3C9-0454A7E7EA82","name":"Union"}
Incident Identifier: AD9ED6DF-E560-49F8-A3C9-0454A7E7EA82
CrashReporter Key: 2f0a1db768819ed531b57a3f0eceba0c4e03cc30
Hardware Model: xxx1
Process: Union [272]
Path: /private/var/containers/Bundle/Application/1235D72F-63C9-49F7-B29F-9DB2EF9B8DDC/Union.app/Union
Identifier: com.ivancantarino.Union
Version: 23 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.ivancantarino.Union [390]
Date/Time: 2018-08-12 11:03:03.8680 -0700
Launch Time: 2018-08-12 11:00:58.0841 -0700
OS Version: iPhone OS 11.4.1 (15G77)
Baseband Version: n/a
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000100f601f4
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 Union 0x0000000100f601f4 0x100dfc000 + 1458676
1 Union 0x0000000100f6635c 0x100dfc000 + 1483612
2 Union 0x0000000100f5caa8 0x100dfc000 + 1444520
3 Foundation 0x00000001820d21bc 0x1820a1000 + 201148
4 CoreFoundation 0x0000000181700c3c 0x181629000 + 883772
5 CoreFoundation 0x00000001817001b8 0x181629000 + 881080
6 CoreFoundation 0x00000001816fff14 0x181629000 + 880404
7 CoreFoundation 0x000000018177d84c 0x181629000 + 1394764
8 CoreFoundation 0x0000000181636f38 0x181629000 + 57144
9 Foundation 0x00000001820a7bbc 0x1820a1000 + 27580
10 UIKit 0x000000018b737518 0x18b337000 + 4195608
11 UIKit 0x000000018b348d94 0x18b337000 + 73108
12 UIKit 0x000000018bfde84c 0x18b337000 + 13269068
13 UIKit 0x000000018b3481ec 0x18b337000 + 70124
14 UIKit 0x000000018bdc3ac8 0x18b337000 + 11061960
15 UIKit 0x000000018bf11bf8 0x18b337000 + 12430328
16 UIKit 0x000000018b347c0c 0x18b337000 + 68620
17 UIKit 0x000000018b3475a8 0x18b337000 + 66984
18 UIKit 0x000000018b385334 0x18b337000 + 320308
19 FrontBoardServices 0x0000000183f70f24 0x183f64000 + 53028
20 libdispatch.dylib 0x0000000181060a60 0x18105f000 + 6752
21 libdispatch.dylib 0x0000000181068170 0x18105f000 + 37232
22 FrontBoardServices 0x0000000183fa4878 0x183f64000 + 264312
23 FrontBoardServices 0x0000000183fa451c 0x183f64000 + 263452
24 FrontBoardServices 0x0000000183fa4ab8 0x183f64000 + 264888
25 CoreFoundation 0x0000000181717404 0x181629000 + 975876
26 CoreFoundation 0x0000000181716c2c 0x181629000 + 973868
27 CoreFoundation 0x000000018171479c 0x181629000 + 964508
28 CoreFoundation 0x0000000181634da8 0x181629000 + 48552
29 GraphicsServices 0x000000018361a020 0x18360f000 + 45088
30 UIKit 0x000000018b654758 0x18b337000 + 3266392
31 Union 0x0000000100e031e4 0x100dfc000 + 29156
32 libdyld.dylib 0x00000001810c5fc0 0x1810c5000 + 4032
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x00000001811d3de8 0x1811d3000 + 3560
1 libsystem_kernel.dylib 0x00000001811d3c60 0x1811d3000 + 3168
2 CoreFoundation 0x0000000181716e40 0x181629000 + 974400
3 CoreFoundation 0x0000000181714908 0x181629000 + 964872
4 CoreFoundation 0x0000000181634da8 0x181629000 + 48552
5 Foundation 0x00000001820a9674 0x1820a1000 + 34420
6 Foundation 0x00000001820a951c 0x1820a1000 + 34076
7 UIKit 0x000000018b339768 0x18b337000 + 10088
8 Foundation 0x00000001821b9efc 0x1820a1000 + 1150716
9 libsystem_pthread.dylib 0x0000000181395220 0x181393000 + 8736
10 libsystem_pthread.dylib 0x0000000181395110 0x181393000 + 8464
11 libsystem_pthread.dylib 0x0000000181393b10 0x181393000 + 2832
Thread 2:
0 libsystem_pthread.dylib 0x0000000181393b04 0x181393000 + 2820
Thread 3:
0 libsystem_kernel.dylib 0x00000001811f5d78 0x1811d3000 + 142712
1 libsystem_pthread.dylib 0x0000000181393eb4 0x181393000 + 3764
2 libsystem_pthread.dylib 0x0000000181393b08 0x181393000 + 2824
Thread 4:
0 libsystem_pthread.dylib 0x0000000181393b04 0x181393000 + 2820
Thread 5:
0 libsystem_pthread.dylib 0x0000000181393b04 0x181393000 + 2820
Thread 6:
0 libsystem_pthread.dylib 0x0000000181393b04 0x181393000 + 2820
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x00000001c00320e0 x1: 0x0000000000000303 x2: 0x0000000000000303 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000102009cd0 x7: 0x0000000000000000
x8: 0x00000000000003d0 x9: 0x0000000000000000 x10: 0x000001a1b39294a1 x11: 0x0000002d0000003f
x12: 0x0000000102868870 x13: 0x000021a1b39294a1 x14: 0x00000000000d52ac x15: 0x00000000000003ff
x16: 0x0000000180944250 x17: 0x00000001820b43dc x18: 0x0000000000000000 x19: 0x00000001c00320e0
x20: 0x0000000000000000 x21: 0x0000000000000000 x22: 0x00000001ac5221c0 x23: 0x00000001c0025500
x24: 0x00000001b38ce000 x25: 0x00000001b38ce000 x26: 0x0000000101e4c338 x27: 0x00000001b38c8878
x28: 0x0000000000000001 fp: 0x000000016f001880 lr: 0x0000000100f60184
sp: 0x000000016f001850 pc: 0x0000000100f601f4 cpsr: 0x20000000
Can you identify the root cause based in these information?
They've provided binary images with the crash_log but from what I'm concerned it only shows the libraries I'm using.
EDIT
After symbolicate the crash_log I got the following:
{"app_name":"Union","timestamp":"2018-08-12 11:03:04.14 -0700","app_version":"1.0","slice_uuid":"4fab1f57-a08b-3604-9e09-73488d1e4019","adam_id":1346010710,"build_version":"23","bundleID":"com.ivancantarino.Union","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 11.4.1 (15G77)","incident_id":"AD9ED6DF-E560-49F8-A3C9-0454A7E7EA82","name":"Union"}
Incident Identifier: AD9ED6DF-E560-49F8-A3C9-0454A7E7EA82
CrashReporter Key: 2f0a1db768819ed531b57a3f0eceba0c4e03cc30
Hardware Model: xxx1
Process: Union [272]
Path: /private/var/containers/Bundle/Application/1235D72F-63C9-49F7-B29F-9DB2EF9B8DDC/Union.app/Union
Identifier: com.ivancantarino.Union
Version: 23 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.ivancantarino.Union [390]
Date/Time: 2018-08-12 11:03:03.8680 -0700
Launch Time: 2018-08-12 11:00:58.0841 -0700
OS Version: iPhone OS 11.4.1 (15G77)
Baseband Version: n/a
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000100f601f4
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 Union 0x0000000100f601f4 0x100dfc000 + 1458676
1 Union 0x0000000100f6635c 0x100dfc000 + 1483612
2 Union 0x0000000100f5caa8 0x100dfc000 + 1444520
3 Foundation 0x00000001820d21bc -[__NSObserver _doit:] + 312
4 CoreFoundation 0x0000000181700c3c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
5 CoreFoundation 0x00000001817001b8 _CFXRegistrationPost + 428
6 CoreFoundation 0x00000001816fff14 ___CFXNotificationPost_block_invoke + 216
7 CoreFoundation 0x000000018177d84c -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1408
8 CoreFoundation 0x0000000181636f38 _CFXNotificationPost + 384
9 Foundation 0x00000001820a7bbc -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
10 UIKit 0x000000018b737518 -[UIApplication _sendWillEnterForegroundCallbacks] + 232
11 UIKit 0x000000018b348d94 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1388
12 UIKit 0x000000018bfde84c __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 296
13 UIKit 0x000000018b3481ec -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 432
14 UIKit 0x000000018bdc3ac8 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220
15 UIKit 0x000000018bf11bf8 _performActionsWithDelayForTransitionContext + 112
16 UIKit 0x000000018b347c0c -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 248
17 UIKit 0x000000018b3475a8 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 368
18 UIKit 0x000000018b385334 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 468
19 FrontBoardServices 0x0000000183f70f24 __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke.362 + 212
20 libdispatch.dylib 0x0000000181060a60 _dispatch_client_callout + 16
21 libdispatch.dylib 0x0000000181068170 _dispatch_block_invoke_direct$VARIANT$mp + 224
22 FrontBoardServices 0x0000000183fa4878 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
23 FrontBoardServices 0x0000000183fa451c -[FBSSerialQueue _performNext] + 404
24 FrontBoardServices 0x0000000183fa4ab8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
25 CoreFoundation 0x0000000181717404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
26 CoreFoundation 0x0000000181716c2c __CFRunLoopDoSources0 + 276
27 CoreFoundation 0x000000018171479c __CFRunLoopRun + 1204
28 CoreFoundation 0x0000000181634da8 CFRunLoopRunSpecific + 552
29 GraphicsServices 0x000000018361a020 GSEventRunModal + 100
30 UIKit 0x000000018b654758 UIApplicationMain + 236
31 Union 0x0000000100e031e4 0x100dfc000 + 29156
32 libdyld.dylib 0x00000001810c5fc0 start + 4
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x00000001811d3de8 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001811d3c60 mach_msg + 72
2 CoreFoundation 0x0000000181716e40 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181714908 __CFRunLoopRun + 1568
4 CoreFoundation 0x0000000181634da8 CFRunLoopRunSpecific + 552
5 Foundation 0x00000001820a9674 -[NSRunLoop+ 34420 (NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x00000001820a951c -[NSRunLoop+ 34076 (NSRunLoop) runUntilDate:] + 148
7 UIKit 0x000000018b339768 -[UIEventFetcher threadMain] + 136
8 Foundation 0x00000001821b9efc __NSThread__start__ + 1040
9 libsystem_pthread.dylib 0x0000000181395220 _pthread_body + 272
10 libsystem_pthread.dylib 0x0000000181395110 _pthread_body + 0
11 libsystem_pthread.dylib 0x0000000181393b10 thread_start + 4
Thread 2:
0 libsystem_pthread.dylib 0x0000000181393b04 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x00000001811f5d78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000181393eb4 _pthread_wqthread + 928
2 libsystem_pthread.dylib 0x0000000181393b08 start_wqthread + 4
Thread 4:
0 libsystem_pthread.dylib 0x0000000181393b04 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x0000000181393b04 start_wqthread + 0
Thread 6:
0 libsystem_pthread.dylib 0x0000000181393b04 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x00000001c00320e0 x1: 0x0000000000000303 x2: 0x0000000000000303 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000102009cd0 x7: 0x0000000000000000
x8: 0x00000000000003d0 x9: 0x0000000000000000 x10: 0x000001a1b39294a1 x11: 0x0000002d0000003f
x12: 0x0000000102868870 x13: 0x000021a1b39294a1 x14: 0x00000000000d52ac x15: 0x00000000000003ff
x16: 0x0000000180944250 x17: 0x00000001820b43dc x18: 0x0000000000000000 x19: 0x00000001c00320e0
x20: 0x0000000000000000 x21: 0x0000000000000000 x22: 0x00000001ac5221c0 x23: 0x00000001c0025500
x24: 0x00000001b38ce000 x25: 0x00000001b38ce000 x26: 0x0000000101e4c338 x27: 0x00000001b38c8878
x28: 0x0000000000000001 fp: 0x000000016f001880 lr: 0x0000000100f60184
sp: 0x000000016f001850 pc: 0x0000000100f601f4 cpsr: 0x20000000
Somehow my Union stacktrace doesn't point to any line of code as the ones below.

Related

Why is my iOS crash report from a debug build only partially symbolicated?

I have a crash report from my app on my iPhone, and the stack in the report is unsymbolicated for my app's binary only. I'm not using an archive build to distribute to Test Flight or the App Store yet, so I just have a debug build.
Is there something I can do fully symbolicate my debug build's crash report?
Maybe I have a setting similar to strip debug symbols during copy setup wrong that's causing this problem? I only say that because someone mentioned it in another question, but it didn't seem to make a difference.
Here's the interesting part from the crash report:
Incident Identifier: 411B8299-C4B8-4748-B76B-8F24E479BBA4
CrashReporter Key: 3833a4b98976d8b0b8fcc5623a7dff4217fc4101
Hardware Model: iPhone12,8
Process: MyApp [27285]
Path: /private/var/containers/Bundle/Application/3F19D333-751B-4CFE-B648-B2F6E04BD866/MyApp.app/MyApp
Identifier: Something.MyApp
Version: 1 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: Something.MyApp [5248]
Date/Time: 2021-06-28 18:20:49.0345 -0700
Launch Time: 2021-06-28 18:20:42.5327 -0700
OS Version: iPhone OS 14.6 (18F72)
Release Type: User
Baseband Version: 2.05.01
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001c9832334 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001e727da9c pthread_kill + 272
2 libsystem_c.dylib 0x00000001a4a4fb90 abort + 104
3 libsystem_c.dylib 0x00000001a4a4f024 err + 0
4 MyApp 0x00000001021228d0 0x1020f8000 + 174288
5 MyApp 0x0000000102122874 0x1020f8000 + 174196
6 MyApp 0x0000000102122828 0x1020f8000 + 174120
7 MyApp 0x0000000102122800 0x1020f8000 + 174080
8 MyApp 0x0000000102121114 0x1020f8000 + 168212
9 MyApp 0x00000001021180e0 0x1020f8000 + 131296
10 MyApp 0x0000000102117010 0x1020f8000 + 126992
11 MyApp 0x000000010212c5f8 0x1020f8000 + 214520
12 MyApp 0x0000000102171174 0x1020f8000 + 495988
13 MyApp 0x000000010212a05c 0x1020f8000 + 204892
14 MyApp 0x00000001021689b0 0x1020f8000 + 461232
15 SpriteKit 0x00000001d01df780 -[SKScene _update:] + 364
16 SpriteKit 0x00000001d01bec50 -[SKRenderer _update:] + 844
17 SpriteKit 0x00000001d01be8d0 -[SKRenderer updateAtTime:] + 108
18 MyApp 0x0000000102103a9c 0x1020f8000 + 47772
19 MetalKit 0x00000001ce5d6778 -[MTKView draw] + 144
20 MetalKit 0x00000001ce5d2d14 -[MTKViewDisplayLinkTarget draw] + 40
21 QuartzCore 0x000000019e9047b8 CA::Display::DisplayLink::dispatch_items+ 83896 (unsigned long long, unsigned long long, unsigned long long) + 672
22 QuartzCore 0x000000019e9e37f4 display_timer_callback+ 997364 (__CFMachPort*, void*, long, void*) + 280
23 CoreFoundation 0x000000019b5f6a5c __CFMachPortPerform + 176
24 CoreFoundation 0x000000019b61c274 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 60
25 CoreFoundation 0x000000019b61b5f4 __CFRunLoopDoSource1 + 596
26 CoreFoundation 0x000000019b6151d8 __CFRunLoopRun + 2372
27 CoreFoundation 0x000000019b614360 CFRunLoopRunSpecific + 600
28 GraphicsServices 0x00000001b2c52734 GSEventRunModal + 164
29 UIKitCore 0x000000019e08f584 -[UIApplication _run] + 1072
30 UIKitCore 0x000000019e094df4 UIApplicationMain + 168
31 MyApp 0x0000000102168a44 0x1020f8000 + 461380
32 libdyld.dylib 0x000000019b2d0cf8 start + 4
Thread 1:
0 libsystem_pthread.dylib 0x00000001e7285744 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00000001e7285744 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x00000001e7285744 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x00000001e7285744 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x00000001e7285744 start_wqthread + 0
Thread 6 name: com.apple.uikit.eventfetch-thread
Thread 6:
0 libsystem_kernel.dylib 0x00000001c980d4fc mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001c980c884 mach_msg + 76
2 CoreFoundation 0x000000019b61aeb0 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x000000019b614d50 __CFRunLoopRun + 1212
4 CoreFoundation 0x000000019b614360 CFRunLoopRunSpecific + 600
5 Foundation 0x000000019c901fdc -[NSRunLoop+ 32732 (NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x000000019c901ea8 -[NSRunLoop+ 32424 (NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x000000019e14412c -[UIEventFetcher threadMain] + 516
8 Foundation 0x000000019ca7332c __NSThread__start__ + 864
9 libsystem_pthread.dylib 0x00000001e727cbfc _pthread_start + 320
10 libsystem_pthread.dylib 0x00000001e7285758 thread_start + 8
Thread 7:
0 libsystem_pthread.dylib 0x00000001e7285744 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000030 x7: 0x0000000000000000
x8: 0x46025ab3c4edaa76 x9: 0x46025ab2c6bd92b6 x10: 0x0000000000000000 x11: 0x0000000000000037
x12: 0x00000000ffffffff x13: 0x0000000156bcafe0 x14: 0x0000000000000000 x15: 0x00000001fd88a6a8
x16: 0x0000000000000148 x17: 0x00000001025038c0 x18: 0x0000000105a17622 x19: 0x0000000000000006
x20: 0x0000000000000103 x21: 0x00000001025039a0 x22: 0x0000000102176a5e x23: 0x000000014dd18000
x24: 0x00000001f1799000 x25: 0x0000000000000000 x26: 0x0000000000000001 x27: 0x0000000283e0a200
x28: 0x000000015681d600 fp: 0x000000016dd04ba0 lr: 0x00000001e727da9c
sp: 0x000000016dd04b80 pc: 0x00000001c9832334 cpsr: 0x40000000
esr: 0x56000080 Address size fault
Binary Images:
0x1020f8000 - 0x10217ffff MyApp arm64 <b2aa8f67eb433d298ff722f4a4d98040> /var/containers/Bundle/Application/3F19D333-751B-4CFE-B648-B2F6E04BD866/MyApp.app/MyApp
0x102428000 - 0x102433fff libobjc-trampolines.dylib arm64e <26cb4bb90880358ba280192f8ed6d0ad> /usr/lib/libobjc-trampolines.dylib
...
I figured it out. I must have edited my build options at some point in the past, and I changed the Debug Information Format build option from DWARF with dSYM File to just DWARF for my debug build only. Once I rebuilt, all symbols were showing up.

Core Data Exception coerceValueForKeyWithDescription

I'm having trouble fixing a non-reproducible crash that's only appearing on a couple user devices. The exception is raised while changing the properties of a Core Data managed object, and then saving those changes. The users report that their changes are not persisted next time they open the app after the crash. Here is the crash log up to the binary images:
Hardware Model: iPhone12,5
Process: Pupl [25152]
Path: /private/var/containers/Bundle/Application/E75455E2-43A9-4C5C-BEFF-3E64F5046322/Pupl.app/Pupl
Identifier: com.kevinolmats.Pupl
Version: 285 (1.0.1)
AppStoreTools: 12A7402a
AppVariant: 1:iPhone12,5:14
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.kevinolmats.Pupl [1530]
Date/Time: 2020-10-25 09:57:57.2646 -0600
Launch Time: 2020-10-25 09:48:56.9577 -0600
OS Version: iPhone OS 14.0.1 (18A393)
Release Type: User
Baseband Version: 2.00.01
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x1935665ac __exceptionPreprocess + 220 (NSException.m:199)
1 libobjc.A.dylib 0x1a75e042c objc_exception_throw + 60 (objc-exception.mm:565)
2 CoreData 0x19961a648 _PFManagedObject_coerceValueForKeyWithDescription + 2004 (NSManagedObject.m:0)
3 CoreData 0x19961f6f4 _sharedIMPL_setvfk_core + 192 (NSManagedObject_Accessors.m:1412)
4 Pupl 0x100d96cac specialized WeightCategoryEditorViewModel.init(course:color:context:) + 596 (WeightCategoryEditorViewModel.swift:30)
5 Pupl 0x100d8d7a0 0x100d44000 + 300960
6 SwiftUI 0x199ed30b0 partial apply for implicit closure #2 in implicit closure #1 in DefaultListButtonStyle.ListButton.body.getter + 28 (PrimitiveButtonStyle.swift:47)
7 SwiftUI 0x199ddb9c4 thunk for #escaping #callee_guaranteed () -> () + 28 (<compiler-generated>:0)
8 SwiftUI 0x199e60e90 specialized closure #2 in PlatformItemList.containerSelectionBehavior.getter + 68 (<compiler-generated>:0)
9 SwiftUI 0x199efb3f8 ListCoreCoordinator.tableView(_:didSelectRowAt:) + 908 (ListCore_PhoneTV.swift:1250)
10 SwiftUI 0x199efb6e4 #objc ListCoreCoordinator.tableView(_:willBeginEditingRowAt:) + 136
11 UIKitCore 0x1960860d0 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:isCellMultiSelect:] + 1064 (UITableView.m:8278)
12 UIKitCore 0x196085c8c -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 112 (UITableView.m:8192)
13 UIKitCore 0x196086438 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 272 (UITableView.m:8317)
14 UIKitCore 0x19634b544 -[_UIAfterCACommitBlock run] + 72 (_UIAfterCACommitQueue.m:122)
15 UIKitCore 0x195e90400 _runAfterCACommitDeferredBlocks + 300 (UIApplication.m:2924)
16 UIKitCore 0x195e7f1bc _cleanUpAfterCAFlushAndRunDeferredBlocks + 204 (UIApplication.m:2902)
17 UIKitCore 0x195eb2648 _afterCACommitHandler + 80 (UIApplication.m:2958)
18 CoreFoundation 0x1934e2444 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36 (CFRunLoop.c:1799)
19 CoreFoundation 0x1934dc858 __CFRunLoopDoObservers + 576 (CFRunLoop.c:1912)
20 CoreFoundation 0x1934dce08 __CFRunLoopRun + 1056 (CFRunLoop.c:2953)
21 CoreFoundation 0x1934dc4bc CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
22 GraphicsServices 0x1a9f61820 GSEventRunModal + 164 (GSEvent.c:2259)
23 UIKitCore 0x195e80734 -[UIApplication _run] + 1072 (UIApplication.m:3270)
24 UIKitCore 0x195e85e10 UIApplicationMain + 168 (UIApplication.m:4739)
25 SwiftUI 0x19a23d32c closure #1 in KitRendererCommon(_:) + 112 (UIKitApp.swift:34)
26 SwiftUI 0x19a23d2b8 runApp<A>(_:) + 220 (<compiler-generated>:0)
27 SwiftUI 0x199db6b08 static App.main() + 140 (App.swift:113)
28 Pupl 0x100d5311c $main + 56 (Assignment.swift:0)
29 Pupl 0x100d5311c main + 68
30 libdyld.dylib 0x1931a3e60 start + 4
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001bf49798c __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001daabfc74 pthread_kill + 272 (pthread.c:1375)
2 libsystem_c.dylib 0x000000019c668bb4 abort + 104 (abort.c:110)
3 libc++abi.dylib 0x00000001a76dfe24 abort_message + 132 (abort_message.cpp:76)
4 libc++abi.dylib 0x00000001a76d1434 demangling_terminate_handler() + 308 (cxa_default_handlers.cpp:67)
5 libobjc.A.dylib 0x00000001a75e0710 _objc_terminate() + 132 (objc-exception.mm:701)
6 libc++abi.dylib 0x00000001a76df2a8 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)
7 libc++abi.dylib 0x00000001a76e2174 __cxa_rethrow + 148 (cxa_exception.cpp:617)
8 libobjc.A.dylib 0x00000001a75e05ec objc_exception_rethrow + 44 (objc-exception.mm:604)
9 CoreFoundation 0x00000001934dc5a8 CFRunLoopRunSpecific + 836 (CFRunLoop.c:3257)
10 GraphicsServices 0x00000001a9f61820 GSEventRunModal + 164 (GSEvent.c:2259)
11 UIKitCore 0x0000000195e80734 -[UIApplication _run] + 1072 (UIApplication.m:3270)
12 UIKitCore 0x0000000195e85e10 UIApplicationMain + 168 (UIApplication.m:4739)
13 SwiftUI 0x000000019a23d32c closure #1 in KitRendererCommon(_:) + 112 (UIKitApp.swift:34)
14 SwiftUI 0x000000019a23d2b8 runApp<A>(_:) + 220 (<compiler-generated>:0)
15 SwiftUI 0x0000000199db6b08 static App.main() + 140 (App.swift:113)
16 Pupl 0x0000000100d5311c $main + 56 (Assignment.swift:0)
17 Pupl 0x0000000100d5311c main + 68
18 libdyld.dylib 0x00000001931a3e60 start + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x000000016f0bad10 x5: 0x000000016f0bb2c0 x6: 0x000000000000006e x7: 0x0000000000000700
x8: 0x00000000000005b9 x9: 0x0d58175f700a1725 x10: 0x0000000000000002 x11: 0x0000000000000003
x12: 0x0000000000000000 x13: 0x0000000000000001 x14: 0x0000000000000010 x15: 0x0000000000000046
x16: 0x0000000000000148 x17: 0x00000001010838c0 x18: 0x000000010b9b6d8c x19: 0x0000000000000006
x20: 0x0000000000000407 x21: 0x00000001010839a0 x22: 0x0000000000000001 x23: 0x00000002835989d0
x24: 0x0000000000000000 x25: 0x0000000000000001 x26: 0x0000000eb1e31100 x27: 0x00000001e70b3000
x28: 0x0000000000000001 fp: 0x000000016f0bb220 lr: 0x00000001daabfc74
sp: 0x000000016f0bb200 pc: 0x00000001bf49798c cpsr: 0x40000000
esr: 0x56000080 Address size fault
Note the WeightCategoryEditorViewModel.init on frame 4. This is the frame that changes between crash logs, but the subsequent frames are the same. Here's the init for the WeightCategoryEditorViewModel:
/// Creates a new model which edits the given weight category.
init(weightCategory: WeightCategory, color: Color = .accentColor, context: NSManagedObjectContext) {
self.context = context
self.weightCategory = weightCategory
self.accentColor = color
self.isEditing = true
self.name = weightCategory.name
self.weight = String(format: "%.0f", weightCategory.weight)
}
Anyone know what my next steps should be?

Need bug fix on crash: thunk for #escaping #callee_guaranteed () -> () + 28 (<compiler-generated>:0)

This bug suggested a thread in a DispatchGroup is leaving early or not leaving. Hoping some senior iOS Swift devs can give thoughts on this
My way to take care of this is to review each DispatchGroup and check to see if the error can be narrowed:
- This has been a bug for a few years
- the problem is the stack trace does not locate where the crash is happening
I suppose the error is here:
Legacy Code:
let group = DispatchGroup()
group.enter()
DispatchQueue.walletQueue.async {
if self.walletManager.signTransaction(tx, pin: pin) {
self.publish(completion: completion)
success = true
}
group.leave()
}
let result = group.wait(timeout: .now() + 30.0)
if result == .timedOut {
...
vs.
Proposed Code:
let group = DispatchGroup()
group.enter()
DispatchQueue.walletQueue.async {
if self.walletManager.signTransaction(tx, pin: pin) {
self.publish(completion: completion)
success = true
group.leave()
} else {
didSignTransaction = false
group.leave()
}
}
let result = group.wait(timeout: .now() + 30.0)
if result == .timedOut {
...
```
Date/Time: 2020-01-11 14:25:01.5722 +0100
Launch Time: 2020-01-11 14:12:54.0779 +0100
OS Version: iPhone OS 13.3 (17C54)
Release Type: User
Baseband Version: 5.30.01
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001949ae500
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [2913]
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libdispatch.dylib 0x00000001949ae500 dispatch_group_leave$VARIANT$armv81.cold.1 + 36
1 libdispatch.dylib 0x00000001949796a8 dispatch_group_leave$VARIANT$armv81 + 112 (semaphore.c:303)
2 Litewallet 0x0000000104a72e3c thunk for #escaping #callee_guaranteed () -> () + 28 (<compiler-generated>:0)
3 libdispatch.dylib 0x00000001949a6610 _dispatch_call_block_and_release + 24 (init.c:1408)
4 libdispatch.dylib 0x00000001949a7184 _dispatch_client_callout + 16 (object.m:495)
5 libdispatch.dylib 0x000000019498a34c _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 996 (inline_internal.h:2484)
6 CoreFoundation 0x0000000194c585e4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1749)
7 CoreFoundation 0x0000000194c535d8 __CFRunLoopRun + 2004 (CFRunLoop.c:3069)
8 CoreFoundation 0x0000000194c52adc CFRunLoopRunSpecific + 464 (CFRunLoop.c:3192)
9 GraphicsServices 0x000000019ebd8328 GSEventRunModal + 104 (GSEvent.c:2246)
10 UIKitCore 0x0000000198d4dae0 UIApplicationMain + 1936 (UIApplication.m:4773)
11 Litewallet 0x0000000104a5e308 main + 68 (BuyTableViewController.swift:31)
12 libdyld.dylib 0x0000000194adc360 start + 4
Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x0000000194ab0634 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000194aafaa0 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x0000000194c58288 __CFRunLoopServiceMachPort + 216 (CFRunLoop.c:2575)
3 CoreFoundation 0x0000000194c533a8 __CFRunLoopRun + 1444 (CFRunLoop.c:2931)
4 CoreFoundation 0x0000000194c52adc CFRunLoopRunSpecific + 464 (CFRunLoop.c:3192)
5 Foundation 0x0000000194f927f4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 228 (NSRunLoop.m:374)
6 Foundation 0x0000000194f926d4 -[NSRunLoop(NSRunLoop) runUntilDate:] + 88 (NSRunLoop.m:421)
7 UIKitCore 0x0000000198de6204 -[UIEventFetcher threadMain] + 152 (UIEventFetcher.m:637)
8 Foundation 0x00000001950c30a4 __NSThread__start__ + 848 (NSThread.m:724)
9 libsystem_pthread.dylib 0x00000001949f5d8c _pthread_start + 156 (pthread.c:896)
10 libsystem_pthread.dylib 0x00000001949f976c thread_start + 8
Thread 2:
0 libsystem_pthread.dylib 0x00000001949f9758 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x00000001949f9758 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x00000001949f9758 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x00000001949f9758 start_wqthread + 0
Thread 6 name:
Thread 6:
0 libsystem_kernel.dylib 0x0000000194ab0634 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000194aafaa0 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x0000000194c58288 __CFRunLoopServiceMachPort + 216 (CFRunLoop.c:2575)
3 CoreFoundation 0x0000000194c533a8 __CFRunLoopRun + 1444 (CFRunLoop.c:2931)
4 CoreFoundation 0x0000000194c52adc CFRunLoopRunSpecific + 464 (CFRunLoop.c:3192)
5 CFNetwork 0x0000000197f094e8 -[__CoreSchedulingSetRunnable runForever] + 192 (CoreSchedulingSet.mm:1372)
6 Foundation 0x00000001950c30a4 __NSThread__start__ + 848 (NSThread.m:724)
7 libsystem_pthread.dylib 0x00000001949f5d8c _pthread_start + 156 (pthread.c:896)
8 libsystem_pthread.dylib 0x00000001949f976c thread_start + 8
Thread 7:
0 libsystem_pthread.dylib 0x00000001949f9758 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000002 x2: 0x0000000000000002 x3: 0x00000001949c26e8
x4: 0x0000001400000002 x5: 0x0000001600000002 x6: 0x0000000000000003 x7: 0x0000000000000680
x8: 0x0000000000000000 x9: 0x0000000000000004 x10: 0x0000000000000000 x11: 0x0000000200000002
x12: 0x0000000000000100 x13: 0x0000000093a0792e x14: 0x0000000093c08000 x15: 0x0000000000000010
x16: 0x0000000194979638 x17: 0x0000000013c00000 x18: 0x0000000000000000 x19: 0x0000000104ac651c
x20: 0x0000000281b70140 x21: 0x0000000280e8f740 x22: 0x0000000280e803c0 x23: 0x0000000000000000
x24: 0x0000000002ffffff x25: 0x0000000280e80600 x26: 0x00000001050718e0 x27: 0x00000000000020ff
x28: 0x0000000000000114 fp: 0x000000016b3a6ac0 lr: 0x00000001949796a8
sp: 0x000000016b3a6ac0 pc: 0x00000001949ae500 cpsr: 0x00000000
esr: 0xf2000001 Address size fault
```
Hard to pinpoint the exact cause of the crash without looking deeper into the source, but the above stack trace is referencing BuyTableViewController.swift:31.
I would use breakpoints to pinpoint the cause, starting with line 31 in BuyTableViewController.swift as the source of the crash.

iOS App Rejected EXC_BAD_ACCESS (SIGSEGV) - Unable to Reproduce Error

My app was rejected from the review based on the error log:
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000048
VM Region Info: 0x48 is not in any region. Bytes before following region: 4372316088
I am unable to reproduce the crash on any of the devices/simulators. I was running various instruments like Zombies and Address Sanitizer, but nothing was found. The app is build for iOS 12.1 and works fine on all tested devices.
Is there a way to discover the origin of the issue please? I came across thread in Apple Dev forum with similar error report pointing to known issues with SFNetwork using iOS 12, but my app does not use CFNetwork. What would you suggest please?
Thank you
Part of the error log from the app review is below:
{"app_name":"xxxxx","timestamp":"2019-11-10 17:11:55.07 -0800","app_version":"1.0","slice_uuid":"xxxxx-735520498fee","adam_id":1452107056,"build_version":"1","bundleID":"com.olaszStudios.xxxxx","share_with_app_devs":true,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 13.1.3 (17A878)","incident_id":"19AC53EB-8539-487A-91E0-BAE0C1C46053","name":"xxxxx"}
Incident Identifier: 19AC53EB-8539-487A-91E0-BAE0C1C46053
CrashReporter Key: 3ae8b3bfcaad4f26596c08d88637fbf24b0a7633
Hardware Model: xxx
Process: xxxxx [13937]
Path: /private/var/containers/Bundle/Application/700B5747-0D3B-4948-9DB0-923C97A94020/xxxxx.app/xxxxx
Identifier: com.olaszStudios.xxxxx
Version: 1 (1.0)
AppStoreTools: 11B48b
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.olaszStudios.xxxxx [6192]
Date/Time: 2019-11-10 17:11:54.5395 -0800
Launch Time: 2019-11-10 17:11:54.0933 -0800
OS Version: iPhone OS 13.1.3 (17A878)
Release Type: User
Baseband Version: n/a
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000048
VM Region Info: 0x48 is not in any region. Bytes before following region: 4372316088
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 00000001049c4000-00000001049cc000 [ 32K] r-x/r-x SM=COW ...y.app/xxxxx
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [13937]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 AVFAudio 0x00000001c2174268 0x1c2152000 + 139880
1 AVFAudio 0x00000001c21729ac 0x1c2152000 + 133548
2 AVFAudio 0x00000001c21729ac 0x1c2152000 + 133548
3 Sploony 0x00000001049e7e2c 0x1049c4000 + 146988
4 Sploony 0x00000001049e7c14 0x1049c4000 + 146452
5 UIKitCore 0x00000001b97e2ebc 0x1b8dfc000 + 10383036
6 UIKitCore 0x00000001b97e4c8c 0x1b8dfc000 + 10390668
7 UIKitCore 0x00000001b97ea4c0 0x1b8dfc000 + 10413248
8 UIKitCore 0x00000001b8fc6810 0x1b8dfc000 + 1878032
9 UIKitCore 0x00000001b94573ec 0x1b8dfc000 + 6665196
10 UIKitCore 0x00000001b8fc72f8 0x1b8dfc000 + 1880824
11 UIKitCore 0x00000001b8fc6e04 0x1b8dfc000 + 1879556
12 UIKitCore 0x00000001b8fc7124 0x1b8dfc000 + 1880356
13 UIKitCore 0x00000001b8fc69e0 0x1b8dfc000 + 1878496
14 UIKitCore 0x00000001b8fcaefc 0x1b8dfc000 + 1896188
15 UIKitCore 0x00000001b938a028 0x1b8dfc000 + 5824552
16 UIKitCore 0x00000001b94705ac 0x1b8dfc000 + 6768044
17 UIKitCore 0x00000001b8fcac34 0x1b8dfc000 + 1895476
18 UIKitCore 0x00000001b94704a8 0x1b8dfc000 + 6767784
19 UIKitCore 0x00000001b8fcaaa0 0x1b8dfc000 + 1895072
20 UIKitCore 0x00000001b8e3fefc 0x1b8dfc000 + 278268
21 UIKitCore 0x00000001b8e3ea64 0x1b8dfc000 + 272996
22 UIKitCore 0x00000001b8e3fc34 0x1b8dfc000 + 277556
23 UIKitCore 0x00000001b97e8840 0x1b8dfc000 + 10405952
24 UIKitCore 0x00000001b93aaa0c 0x1b8dfc000 + 5958156
25 FrontBoardServices 0x00000001ba877994 0x1ba86b000 + 51604
26 FrontBoardServices 0x00000001ba89c960 0x1ba86b000 + 203104
27 FrontBoardServices 0x00000001ba8820f8 0x1ba86b000 + 94456
28 FrontBoardServices 0x00000001ba89c61c 0x1ba86b000 + 202268
29 libdispatch.dylib 0x00000001b54ac184 0x1b5450000 + 377220
30 libdispatch.dylib 0x00000001b5455038 0x1b5450000 + 20536
31 FrontBoardServices 0x00000001ba8c1540 0x1ba86b000 + 353600
32 FrontBoardServices 0x00000001ba8c120c 0x1ba86b000 + 352780
33 FrontBoardServices 0x00000001ba8c1734 0x1ba86b000 + 354100
34 CoreFoundation 0x00000001b575c7e0 0x1b56b3000 + 694240
35 CoreFoundation 0x00000001b575c738 0x1b56b3000 + 694072
36 CoreFoundation 0x00000001b575bed0 0x1b56b3000 + 691920
37 CoreFoundation 0x00000001b575701c 0x1b56b3000 + 671772
38 CoreFoundation 0x00000001b57568bc 0x1b56b3000 + 669884
39 GraphicsServices 0x00000001bf5c2328 0x1bf5bf000 + 13096
40 UIKitCore 0x00000001b97ec6d4 0x1b8dfc000 + 10421972
41 xxxxx 0x00000001049cd460 0x1049c4000 + 37984
42 libdyld.dylib 0x00000001b55e1460 0x1b55e0000 + 5216
Thread 1 name: Dispatch queue: com.apple.network.connections
Thread 1:
0 libsystem_kernel.dylib 0x00000001b55d7170 0x1b55b2000 + 151920
1 libsystem_dnssd.dylib 0x00000001c92d6158 0x1c92d3000 + 12632
2 libsystem_dnssd.dylib 0x00000001c92d79f8 0x1c92d3000 + 18936
3 libnetwork.dylib 0x00000001b7b0e794 0x1b79f0000 + 1173396
4 libnetwork.dylib 0x00000001b7b0f578 0x1b79f0000 + 1176952
5 libnetwork.dylib 0x00000001b7b0f004 0x1b79f0000 + 1175556
6 libdispatch.dylib 0x00000001b54ab610 0x1b5450000 + 374288
7 libdispatch.dylib 0x00000001b54ac184 0x1b5450000 + 377220
8 libdispatch.dylib 0x00000001b545a110 0x1b5450000 + 41232
9 libdispatch.dylib 0x00000001b5462340 0x1b5450000 + 74560
10 libsystem_pthread.dylib 0x00000001b54fbfa4 0x1b54f0000 + 49060
11 libsystem_pthread.dylib 0x00000001b54feae0 0x1b54f0000 + 60128
Thread 2:
0 libsystem_pthread.dylib 0x00000001b54fead8 0x1b54f0000 + 60120
Thread 3:
0 libsystem_pthread.dylib 0x00000001b54fead8 0x1b54f0000 + 60120
Thread 4:
0 libsystem_pthread.dylib 0x00000001b54fead8 0x1b54f0000 + 60120
Thread 5 name: com.apple.uikit.eventfetch-thread
Thread 5:
0 libsystem_kernel.dylib 0x00000001b55b55f4 0x1b55b2000 + 13812
1 libsystem_kernel.dylib 0x00000001b55b4a60 0x1b55b2000 + 10848
2 CoreFoundation 0x00000001b575c068 0x1b56b3000 + 692328
3 CoreFoundation 0x00000001b5757188 0x1b56b3000 + 672136
4 CoreFoundation 0x00000001b57568bc 0x1b56b3000 + 669884
5 Foundation 0x00000001b5a96994 0x1b5a8f000 + 31124
6 Foundation 0x00000001b5a96874 0x1b5a8f000 + 30836
7 UIKitCore 0x00000001b988449c 0x1b8dfc000 + 11043996
8 Foundation 0x00000001b5bc70b0 0x1b5a8f000 + 1278128
9 libsystem_pthread.dylib 0x00000001b54fb1ec 0x1b54f0000 + 45548
10 libsystem_pthread.dylib 0x00000001b54feaec 0x1b54f0000 + 60140
Thread 6:
0 libsystem_pthread.dylib 0x00000001b54fead8 0x1b54f0000 + 60120
Thread 7 name: AVAudioSession Notify Thread
Thread 7:
0 libsystem_kernel.dylib 0x00000001b55b55f4 0x1b55b2000 + 13812
1 libsystem_kernel.dylib 0x00000001b55b4a60 0x1b55b2000 + 10848
2 CoreFoundation 0x00000001b575c068 0x1b56b3000 + 692328
3 CoreFoundation 0x00000001b5757188 0x1b56b3000 + 672136
4 CoreFoundation 0x00000001b57568bc 0x1b56b3000 + 669884
5 AVFAudio 0x00000001c21b7e68 0x1c2152000 + 417384
6 AVFAudio 0x00000001c2208df0 0x1c2152000 + 749040
7 libsystem_pthread.dylib 0x00000001b54fb1ec 0x1b54f0000 + 45548
8 libsystem_pthread.dylib 0x00000001b54feaec 0x1b54f0000 + 60140
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x00000002825de5e0 x1: 0x00000001ebade94a x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x000000010a80f080 x5: 0x0000000000000020 x6: 0x000000016b438cd8 x7: 0x0000000000000000
x8: 0x00000001ebade000 x9: 0x0000000000000000 x10: 0x0000000000000002 x11: 0x0000000280bc1fa8
x12: 0x0000000000000002 x13: 0x0000000000000000 x14: 0x0000000000000006 x15: 0x0000000000000032
x16: 0x00000001f27010a8 x17: 0x00000001c2174258 x18: 0x0000000000000000 x19: 0x00000002825de5e0
x20: 0x0000000000000000 x21: 0x00000002825d5da0 x22: 0x0000000000000020 x23: 0x00000002801d28e0
x24: 0x0000000000000000 x25: 0x00000001eb6dcc21 x26: 0x0000000000000010 x27: 0x4000000280bc0400
x28: 0x00000001f90b1000 fp: 0x000000016b439510 lr: 0x00000001c21729ac
sp: 0x000000016b439500 pc: 0x00000001c2174268 cpsr: 0x40000000
esr: 0x92000006 (Data Abort) byte read Translation fault
Binary Images:
0x1049c4000 - 0x104acbfff xxxxx arm64 <ecee71b82c9331ebaaf1735520498fee> /var/containers/Bundle/Application/700B5747-0D3B-4948-9DB0-923C97A94020/xxxxx.app/xxxxx
0x104b4c000 - 0x104b53fff GoogleToolboxForMac arm64 <5f9b626d67533ccbae318dd06fe0d217> /var/containers/Bundle/Application/700B5747-0D3B-4948-9DB0-923C97A94020/Sploony.app/Frameworks/GoogleToolboxForMac.framework/GoogleToolboxForMac
0x104b60000 - 0x104b6bfff nanopb arm64 <5dc8b13a7cad3f87a317374d4e52967e> /var/containers/Bundle/Application/700B5747-0D3B-4948-9DB0-923C97A94020/Sploony.app/Frameworks/nanopb.framework/nanopb
0x104b7c000 - 0x104bdffff dyld arm64 <571392a7e1e6369f8805c1a141f3c1c5> /usr/lib/dyld
0x104c58000 - 0x104c8bfff SwiftyStoreKit arm64 <b16e5abd43da35c2bef846ae27832694> /var/containers/Bundle/Application/700B5747-0D3B-4948-9DB0-923C97A94020/Sploony.app/Frameworks/SwiftyStoreKit.framework/SwiftyStoreKit
0x104ca4000 - 0x104cabfff libswiftARKit.dylib arm64 <428f4bbfa8e43e558832a8665af09444> /var/containers/Bundle/Application/700B5747-0D3B-4948-9DB0-923C97A94020/Sploony.app/Frameworks/libswiftARKit.dylib

iOS App (Using Core Data) Crashes After Update, But Only App Store Version

I have a serious problem with an iOS 9.1 app: I have updated the app, successfully tested it on several iPhone devices, submitted it to the App Store and Apple reviewed and rolled out the app. The app uses Core Data.
The problem is, however, that the app crashes immediately after start up for users that installed it as an update. A crash report is listed below, however, I cannot find the real problem with it (also because not everything is symbolised). If I run it on the same device directly via Xcode, the app works fine and does not crash.
Any ideas of how I could find the error?
Thanks very much for any hint!
Incident Identifier: 82CFBBFB-D78F-45B8-B7B1-5CA927889673
CrashReporter Key: b74b72673e3b94fca688b2e61a466eb9826dc424
Hardware Model: iPhone7,1
Process: MyAppName [826]
Path: /private/var/mobile/Containers/Bundle/Application/13C779F5-8CEB-4815-AF64-18B08827CDEE/MyAppName.app/MyAppName
Identifier: com.myappdomain.MyAppName
Version: 20151128 (1.4)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-12-02 07:07:58.58 +0100
Launch Time: 2015-12-02 07:07:57.57 +0100
OS Version: iOS 9.1 (13B143)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x200000001576a714
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 MyAppName 0x0000000100071a64 0x100040000 + 203364
1 MyAppName 0x00000001000721a0 0x100040000 + 205216
2 MyAppName 0x0000000100071d2c 0x100040000 + 204076
3 MyAppName 0x0000000100073624 0x100040000 + 210468
4 MyAppName 0x00000001000718d8 0x100040000 + 202968
5 MyAppName 0x0000000100071978 0x100040000 + 203128
6 MyAppName 0x0000000100071a20 0x100040000 + 203296
7 MyAppName 0x0000000100072848 0x100040000 + 206920
8 MyAppName 0x0000000100072e08 0x100040000 + 208392
9 MyAppName 0x000000010006c6f8 0x100040000 + 182008
10 MyAppName 0x000000010006fe68 0x100040000 + 196200
11 MyAppName 0x000000010006afdc 0x100040000 + 176092
12 UIKit 0x00000001883f4654 -[UIViewController _setViewAppearState:isAnimating:] + 724
13 UIKit 0x00000001884b45c8 -[UINavigationController viewDidAppear:] + 220
14 UIKit 0x00000001883f4654 -[UIViewController _setViewAppearState:isAnimating:] + 724
15 UIKit 0x00000001885239b8 -[UITabBarController viewDidAppear:] + 128
16 UIKit 0x00000001883f4654 -[UIViewController _setViewAppearState:isAnimating:] + 724
17 UIKit 0x00000001884654f0 __64-[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke + 44
18 UIKit 0x000000018846548c -[UIViewController _executeAfterAppearanceBlock] + 92
19 UIKit 0x000000018868c674 _runAfterCACommitDeferredBlocks + 556
20 UIKit 0x00000001886994bc _cleanUpAfterCAFlushAndRunDeferredBlocks + 92
21 CoreFoundation 0x0000000182e0042c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
22 CoreFoundation 0x0000000182dffd64 __CFRunLoopDoBlocks + 308
23 CoreFoundation 0x0000000182dfdcc8 __CFRunLoopRun + 708
24 CoreFoundation 0x0000000182d2cca0 CFRunLoopRunSpecific + 384
25 GraphicsServices 0x000000018df68088 GSEventRunModal + 180
26 UIKit 0x0000000188444ffc UIApplicationMain + 204
27 MyAppName 0x00000001000581e4 0x100040000 + 98788
28 libdyld.dylib 0x000000019824a8b8 start + 4
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x00000001983684fc kevent_qos + 8
1 libdispatch.dylib 0x000000019822ca04 _dispatch_mgr_invoke + 232
2 libdispatch.dylib 0x000000019821b874 _dispatch_source_invoke + 0
Thread 2:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 5:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x00000001576a7350 x1: 0x000000015769c200 x2: 0x0000000000000000 x3: 0x0000000100071a40
x4: 0x000000016fdbdf60 x5: 0x000000016fdbdf68 x6: 0x0000000000000000 x7: 0x0000000000000004
x8: 0x200000001576a69c x9: 0x0000000000000018 x10: 0x0000000000000000 x11: 0x0000000300000003
x12: 0x000000015755f2f0 x13: 0x0000000000003fff x14: 0xffffffffffffc000 x15: 0x0000000000003fff
x16: 0x000000010027da54 x17: 0x0000000182e438dc x18: 0x0000000000000000 x19: 0x000000015769c200
x20: 0x00000001576a7350 x21: 0x000000016fdbe260 x22: 0x000000015769c200 x23: 0x000000015769c200
x24: 0x000000015769ccd0 x25: 0x000000015808fc20 x26: 0x000000010006ff58 x27: 0x000000016fdbe198
x28: 0x0000000000000002 fp: 0x000000016fdbe060 lr: 0x00000001000721a0
sp: 0x000000016fdbe020 pc: 0x0000000100071a64 cpsr: 0x20000000
Just in case someone else experiences this issue:
The problem is actually a bug in Swift's implementation of array. The following code crashes in release mode:
myarr.sortInPlace($0.date < $1.date)
However, this code works just fine:
myarr = myarr.sort($0.date < $1.date)
More about this issue (which is hopefully solved soon by Apple) can be found here:
https://forums.developer.apple.com/thread/23455

Resources