My app in TestFlight has a few times crashed on launch, and when it decides to crash it will do so on every launch afterwards. Only way to fix it, is to reinstall the app, and then in a future time it will crash again, so I have no idea how to reproduce the crash.
I have the crash log, but I am unsure what to read from it. The app is pure SwiftUI.
Incident Identifier: 643EF787-991A-41DD-98C9-CFFCEA4C8982
CrashReporter Key: 8eb3731ae5012452a0a5758baaacba1a94696953
Hardware Model: iPhone12,3
Process: TimeMindster [5006]
Path: /private/var/containers/Bundle/Application/99C55F69-E5DA-47CF-BC59-CBC20965489F/TimeMindster.app/TimeMindster
Identifier: com.magnuskahr.TimeMindster
Version: 12 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.magnuskahr.TimeMindster [1341]
Date/Time: 2021-04-28 21:14:04.6293 +0200
Launch Time: 2021-04-28 21:14:04.0304 +0200
OS Version: iPhone OS 14.5 (18E199)
Release Type: User
Baseband Version: 2.04.07
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001b3a3f334 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001d1461aa0 pthread_kill + 272
2 libsystem_c.dylib 0x000000018edc6b90 abort + 104
3 AttributeGraph 0x00000001aee71a6c util::Heap::Heap+ 121452 (void*, unsigned long, unsigned long) + 0
4 AttributeGraph 0x00000001aee5f4cc AG::Graph::any_inputs_changed+ 46284 (AG::data::ptr<AG::Node>, unsigned int const*, unsigned long) + 0
5 AttributeGraph 0x00000001aee7109c AGGraphGetValue + 232
6 SwiftUI 0x000000018c450344 MergePreferenceKeys.rhs.getter + 32
7 SwiftUI 0x000000018c450394 MergePreferenceKeys.value.getter + 52
8 SwiftUI 0x000000018c0ecf64 specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>+ 1949540 (_:) + 36
9 SwiftUI 0x000000018c148490 partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>+ 2323600 (_:) + 48
10 AttributeGraph 0x00000001aee5977c AG::Graph::UpdateStack::update+ 22396 () + 492
11 AttributeGraph 0x00000001aee59bb4 AG::Graph::update_attribute+ 23476 (AG::data::ptr<AG::Node>, bool) + 332
12 AttributeGraph 0x00000001aee5f2fc AG::Graph::input_value_ref_slow+ 45820 (AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long) + 364
13 AttributeGraph 0x00000001aee7109c AGGraphGetValue + 232
14 SwiftUI 0x000000018c0bbd00 specialized HostPreferencesWriter.updateValue+ 1748224 () + 136
15 SwiftUI 0x000000018c10c5ac partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>+ 2078124 (_:) + 24
16 AttributeGraph 0x00000001aee5977c AG::Graph::UpdateStack::update+ 22396 () + 492
17 AttributeGraph 0x00000001aee59bb4 AG::Graph::update_attribute+ 23476 (AG::data::ptr<AG::Node>, bool) + 332
18 AttributeGraph 0x00000001aee5f2fc AG::Graph::input_value_ref_slow+ 45820 (AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long) + 364
19 AttributeGraph 0x00000001aee7109c AGGraphGetValue + 232
20 SwiftUI 0x000000018c0bbcd8 specialized HostPreferencesWriter.updateValue+ 1748184 () + 96
21 SwiftUI 0x000000018c10c5ac partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>+ 2078124 (_:) + 24
22 AttributeGraph 0x00000001aee5977c AG::Graph::UpdateStack::update+ 22396 () + 492
23 AttributeGraph 0x00000001aee59bb4 AG::Graph::update_attribute+ 23476 (AG::data::ptr<AG::Node>, bool) + 332
24 AttributeGraph 0x00000001aee5f2fc AG::Graph::input_value_ref_slow+ 45820 (AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long) + 364
25 AttributeGraph 0x00000001aee7109c AGGraphGetValue + 232
26 SwiftUI 0x000000018c0bbcd8 specialized HostPreferencesWriter.updateValue+ 1748184 () + 96
27 SwiftUI 0x000000018c10c5ac partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>+ 2078124 (_:) + 24
28 AttributeGraph 0x00000001aee5977c AG::Graph::UpdateStack::update+ 22396 () + 492
29 AttributeGraph 0x00000001aee59bb4 AG::Graph::update_attribute+ 23476 (AG::data::ptr<AG::Node>, bool) + 332
30 AttributeGraph 0x00000001aee5f2fc AG::Graph::input_value_ref_slow+ 45820 (AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long) + 364
31 AttributeGraph 0x00000001aee7109c AGGraphGetValue + 232
32 SwiftUI 0x000000018c2b8ecc DynamicPreferenceCombiner.value.getter + 1028
33 SwiftUI 0x000000018c1a3144 implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>+ 2695492 (_:) + 252
34 AttributeGraph 0x00000001aee5977c AG::Graph::UpdateStack::update+ 22396 () + 492
35 AttributeGraph 0x00000001aee59bb4 AG::Graph::update_attribute+ 23476 (AG::data::ptr<AG::Node>, bool) + 332
36 AttributeGraph 0x00000001aee5ed6c AG::Graph::value_ref+ 44396 (AG::AttributeID, AGSwiftMetadata const*, bool*) + 156
37 AttributeGraph 0x00000001aee710e4 AGGraphGetValue + 304
38 SwiftUI 0x000000018c97649c GraphHost.updatePreferences+ 10900636 () + 56
39 SwiftUI 0x000000018c3fd188 ViewGraph.updateOutputs+ 5161352 (at:) + 112
40 SwiftUI 0x000000018c8c1688 closure #1 in ViewRendererHost.render+ 10159752 (interval:updateDisplayList:) + 1508
41 SwiftUI 0x000000018c8b7bdc ViewRendererHost.render+ 10120156 (interval:updateDisplayList:) + 308
42 SwiftUI 0x000000018c2cc72c closure #1 in _UIHostingView.requestImmediateUpdate+ 3913516 () + 72
43 SwiftUI 0x000000018ca4d89c thunk for #escaping #callee_guaranteed () -> + 11782300 () + 28
44 libdispatch.dylib 0x0000000185631a54 _dispatch_call_block_and_release + 32
45 libdispatch.dylib 0x00000001856337ec _dispatch_client_callout + 20
46 libdispatch.dylib 0x0000000185641c40 _dispatch_main_queue_callback_4CF + 884
47 CoreFoundation 0x00000001859c01f8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
48 CoreFoundation 0x00000001859ba0d0 __CFRunLoopRun + 2524
49 CoreFoundation 0x00000001859b91c0 CFRunLoopRunSpecific + 600
50 GraphicsServices 0x000000019cfa1734 GSEventRunModal + 164
51 UIKitCore 0x00000001884277e4 -[UIApplication _run] + 1072
52 UIKitCore 0x000000018842d054 UIApplicationMain + 168
53 SwiftUI 0x000000018c8fd350 closure #1 in KitRendererCommon+ 10404688 (_:) + 112
54 SwiftUI 0x000000018c8fd2dc runApp<A>+ 10404572 (_:) + 224
55 SwiftUI 0x000000018c3f5b4c static App.main+ 5131084 () + 144
56 TimeMindster 0x000000010230dce0 0x102294000 + 498912
57 TimeMindster 0x000000010230dd80 0x102294000 + 499072
58 libdyld.dylib 0x0000000185675cf8 start + 4
Thread 1:
0 libsystem_pthread.dylib 0x00000001d1469744 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00000001d1469744 start_wqthread + 0
Thread 3 name: Dispatch queue: com.apple.root.utility-qos
Thread 3:
0 libswiftCore.dylib 0x000000018994b154 swift_conformsToProtocolImpl(swift::TargetMetadata<swift::InProcess> const*, swift::TargetProtocolDescriptor<swift::InProcess> const*)::$_5::operator()((anonymous namespace)::ConformanceSection const&) const::'lambda'(swift::TargetProtocolConformanceDescriptor<swift::InProcess> const&)::operator()+ 3895636 (swift::TargetProtocolConformanceDescriptor<swift::InProcess> const&) const + 40
1 libswiftCore.dylib 0x000000018994a344 swift_conformsToProtocolImpl+ 3892036 (swift::TargetMetadata<swift::InProcess> const*, swift::TargetProtocolDescriptor<swift::InProcess> const*) + 596
2 libswiftCore.dylib 0x000000018994a344 swift_conformsToProtocolImpl+ 3892036 (swift::TargetMetadata<swift::InProcess> const*, swift::TargetProtocolDescriptor<swift::InProcess> const*) + 596
3 AttributeGraph 0x00000001aee65d2c AG::LayoutDescriptor::Builder::visit_element+ 73004 (AG::swift::metadata const*, AG::swift::metadata::ref_kind, unsigned long) + 212
4 AttributeGraph 0x00000001aee576d4 AG::swift::metadata_visitor::visit_field+ 14036 (AG::swift::metadata const*, AG::swift::field_record const&, unsigned long) + 96
5 AttributeGraph 0x00000001aee56e64 AG::swift::metadata::visit+ 11876 (AG::swift::metadata_visitor&) const + 820
6 AttributeGraph 0x00000001aee660e8 AG::LayoutDescriptor::Builder::visit_case+ 73960 (AG::swift::metadata const*, AG::swift::field_record const&, unsigned int) + 376
7 AttributeGraph 0x00000001aee56de0 AG::swift::metadata::visit+ 11744 (AG::swift::metadata_visitor&) const + 688
8 AttributeGraph 0x00000001aee65e08 AG::LayoutDescriptor::Builder::visit_element+ 73224 (AG::swift::metadata const*, AG::swift::metadata::ref_kind, unsigned long) + 432
9 AttributeGraph 0x00000001aee576d4 AG::swift::metadata_visitor::visit_field+ 14036 (AG::swift::metadata const*, AG::swift::field_record const&, unsigned long) + 96
10 AttributeGraph 0x00000001aee56e64 AG::swift::metadata::visit+ 11876 (AG::swift::metadata_visitor&) const + 820
11 AttributeGraph 0x00000001aee66bdc AG::LayoutDescriptor::make_layout+ 76764 (AG::swift::metadata const*, AGComparisonMode, AG::LayoutDescriptor::HeapMode) + 624
12 AttributeGraph 0x00000001aee67eb4 AG::(anonymous namespace)::LayoutCache::drain_queue+ 81588 (void*) + 152
13 libdispatch.dylib 0x00000001856337ec _dispatch_client_callout + 20
14 libdispatch.dylib 0x00000001856450dc _dispatch_root_queue_drain + 688
15 libdispatch.dylib 0x00000001856457a8 _dispatch_worker_thread2 + 112
16 libsystem_pthread.dylib 0x00000001d1462768 _pthread_wqthread + 216
17 libsystem_pthread.dylib 0x00000001d146974c start_wqthread + 8
Thread 4:
0 libsystem_pthread.dylib 0x00000001d1469744 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x00000001d1469744 start_wqthread + 0
Thread 6 name: com.apple.uikit.eventfetch-thread
Thread 6:
0 libsystem_kernel.dylib 0x00000001b3a1a4fc mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b3a19884 mach_msg + 76
2 CoreFoundation 0x00000001859bfd10 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x00000001859b9bb0 __CFRunLoopRun + 1212
4 CoreFoundation 0x00000001859b91c0 CFRunLoopRunSpecific + 600
5 Foundation 0x0000000186c99fac -[NSRunLoop+ 32684 (NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x0000000186c99e78 -[NSRunLoop+ 32376 (NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x00000001884dc38c -[UIEventFetcher threadMain] + 516
8 Foundation 0x0000000186e0b2fc __NSThread__start__ + 864
9 libsystem_pthread.dylib 0x00000001d1460c00 _pthread_start + 320
10 libsystem_pthread.dylib 0x00000001d1469758 thread_start + 8
Thread 7:
0 libsystem_pthread.dylib 0x00000001d1469744 start_wqthread + 0
Thread 8:
0 libsystem_pthread.dylib 0x00000001d1469744 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x00000000000062dc x5: 0x000000000000000b x6: 0x000000000000000a x7: 0x000000000000003e
x8: 0x6f2c18735f2b4680 x9: 0x6f2c18725da73e40 x10: 0x00000000000007fd x11: 0x000000000000005e
x12: 0x0000000000000001 x13: 0x00000000d180105d x14: 0x00000000d1a01800 x15: 0x0000000000001800
x16: 0x0000000000000148 x17: 0x00000001028c78c0 x18: 0x000000011111fe1c x19: 0x0000000000000006
x20: 0x0000000000000103 x21: 0x00000001028c79a0 x22: 0x000000000001ca18 x23: 0x0000000000000000
x24: 0x0000000000000000 x25: 0x000000000000f618 x26: 0x00000001e7f20950 x27: 0x0000000102b1d66c
x28: 0x0000000102b0f418 fp: 0x000000016db69400 lr: 0x00000001d1461aa0
sp: 0x000000016db693e0 pc: 0x00000001b3a3f334 cpsr: 0x40000000
esr: 0x56000080 Address size fault
I had experienced same problem. It was caused by combination of AnyView and NSViewRepresentable wrapper for WKWebView. Getting rid of AnyView by rewriting helper function with #ViewBuilder fixed the problem.
Problem:
func viewFunc() -> AnyView {
switch self {
case .case1: return AnyView(ListOfWebViewWrappers())
default: return AnyView(WaitView())
}
}
Solution:
#ViewBuilder
func viewFunc() -> some View {
switch self {
case .case1: ListOfWebViewWrappers()
default: WaitView()
}
}
the #ViewBuilder allows SwiftUI to properly track each view's identity and properly manage resources. More information about view's identity: https://developer.apple.com/videos/play/wwdc2021/10022/
Related
Here is the crash log Apple Review sent me. I've never had this issue previously, and it seems like the issue is coming from old code I've been using for months and had no problem with before.
I tried uninstalling and re installing Firebase firestore, storage, analytics, AdSupport, Auth, and kingfisher with Swift Package Manager with no success.
I can't replicate the error on my device, the simulator, or testflight. It apparently only occurs on Apple Reviews end.
Any help deciphering the crash log is much appreciated. I'm new to deciphering crash logs as I've never had an issue like this before so any help or direction on this is helpful.
Incident Identifier: B59F06E2-AEE1-481D-8B7C-E13EA1EBB3A5
CrashReporter Key: 4808b991e8d5157f0ce4498edd01aa490f760f0d
Hardware Model: iPad11,6
Process: uEats [42025]
Path: /private/var/containers/Bundle/Application/7C7686D2-1729-4FCA-8CFB-B5D3FC5540D3/uEats.app/uEats
Identifier: io.siub.uEats
Version: 3.5 (5)
AppStoreTools: 13E500
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: io.siub.uEats [4847]
Date/Time: 2022-05-06 07:56:38.9859 +0100
Launch Time: 2022-05-06 07:56:37.1542 +0100
OS Version: iPhone OS 15.4.1 (19E258)
Release Type: User
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000104f8bdec
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 5 Trace/BPT trap: 5
Terminating Process: exc handler [42025]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 uEats 0x104f8bdec specialized RestaurantManager.openOrClosed(restaurant:) + 310764 (RestaurantManager.swift:200)
1 uEats 0x104f8b4b8 specialized RestaurantManager.openOrClosed(restaurant:) + 308408 (RestaurantManager.swift:200)
2 uEats 0x104f8a830 RestaurantManager.sortOpen() + 305200 (RestaurantManager.swift:154)
3 uEats 0x104f887c4 closure #1 in RestaurantManager.grabRestaurantData() + 296900 (RestaurantManager.swift:0)
4 uEats 0x104fb40dc thunk for #escaping #callee_guaranteed (#guaranteed FIRQuerySnapshot?, #guaranteed Error?) -> () + 475356 (<compiler-generated>:0)
5 uEats 0x105320d2c -[FIRQuery wrapQuerySnapshotBlock:]::Converter::OnEvent(firebase::firestore::util::StatusOr<firebase::firestore::api::QuerySnapshot>) + 4066604 (FIRQuery.mm:0)
6 uEats 0x105335878 firebase::firestore::api::Query::GetDocuments(firebase::firestore::api::Source, std::__1::unique_ptr<firebase::firestore::core::EventListener<firebase::firestore::api::QuerySnapshot>, std::__1::default_delete<firebase::firestore::core::EventListener<firebase::firestore::api::QuerySnapshot> > >&&)::ListenOnce::OnEvent(firebase::firestore::util::StatusOr<firebase::firestore::api::QuerySnapshot>) + 4151416 (query_core.cc:159)
7 uEats 0x105335ee0 firebase::firestore::api::Query::AddSnapshotListener(firebase::firestore::core::ListenOptions, std::__1::unique_ptr<firebase::firestore::core::EventListener<firebase::firestore::api::QuerySnapshot>, std::__1::default_delete<firebase::firestore::core::EventListener<firebase::firestore::api::QuerySnapshot> > >&&)::Converter::OnEvent(firebase::firestore::util::StatusOr<firebase::firestore::core::ViewSnapshot>) + 4153056 (query_core.cc:208)
8 uEats 0x105320b74 void std::__1::__invoke_void_return_wrapper<void, true>::__call<firebase::firestore::core::AsyncEventListener<firebase::firestore::core::ViewSnapshot>::OnEvent(firebase::firestore::util::StatusOr<firebase::firestore::core::ViewSnapshot>)::'lambda'()&>(firebase::firestore::core::AsyncEventListener<firebase::firestore::core::ViewSnapshot>::OnEvent(firebase::firestore::util::StatusOr<firebase::firestore::core::ViewSnapshot>)::'lambda'()&) + 4066164 (invoke.h:61)
9 uEats 0x105423f34 firebase::firestore::util::Task::ExecuteAndRelease() + 5127988 (task.cc:107)
10 libdispatch.dylib 0x180d89a2c _dispatch_client_callout + 20
11 libdispatch.dylib 0x180d97f48 _dispatch_main_queue_drain + 928
12 libdispatch.dylib 0x180d97b98 _dispatch_main_queue_callback_4CF + 44
13 CoreFoundation 0x1810db2f0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
14 CoreFoundation 0x1810951f4 __CFRunLoopRun + 2532
15 CoreFoundation 0x1810a86b8 CFRunLoopRunSpecific + 600
16 GraphicsServices 0x19d142374 GSEventRunModal + 164
17 UIKitCore 0x183a0de88 -[UIApplication _run] + 1100
18 UIKitCore 0x18378f5ec UIApplicationMain + 364
19 SwiftUI 0x188edf640 closure #1 in KitRendererCommon(_:) + 164
20 SwiftUI 0x188e0d524 runApp<A>(_:) + 252
21 SwiftUI 0x188dee810 static App.main() + 128
22 uEats 0x104f47f90 main + 32656 (ServerManager.swift:0)
23 dyld 0x105acdce4 start + 520
Thread 1 name: Dispatch queue: com.google.fira.worker
Thread 1:
0 libsystem_kernel.dylib 0x1b7e68bdc kevent_id + 8
1 libdispatch.dylib 0x180dac1fc _dispatch_kq_poll + 228
2 libdispatch.dylib 0x180dacf5c _dispatch_event_loop_end_ownership + 356
3 libdispatch.dylib 0x180d99044 _dispatch_sync_complete_recurse + 88
4 libdispatch.dylib 0x180d990d0 _dispatch_sync_invoke_and_complete_recurse + 88
5 libdispatch.dylib 0x180d98b44 _dispatch_sync_f_slow + 172
6 uEats 0x10502c4c0 -[GULMutableDictionary objectForKeyedSubscript:] + 967872 (GULMutableDictionary.m:84)
7 uEats 0x1055d503c -[APMRemoteConfig numberFromCacheWithKey:defaultValue:maxValue:minValue:block:] + 148
8 uEats 0x1055d5480 -[APMRemoteConfig intValueFromCacheWithKey:defaultValue:maxValue:minValue:] + 188
9 uEats 0x10556e680 APMNormalizedParametersForParametersAndEventName + 1864
10 uEats 0x1055699e0 -[APMEvent initWithOrigin:isPublic:name:timestamp:previousTimestamp:parameters:] + 424
11 uEats 0x105583f28 -[APMMeasurement logEventOnWorkerQueueWithOrigin:isPublicEvent:name:parameters:timestamp:enabled:ignoreEnabled:ignoreInterceptor:interceptor:addedScreenParameters:] + 240
12 uEats 0x105583d90 __151-[APMMeasurement logEventWithOrigin:isPublicEvent:name:parameters:timestamp:enabled:ignoreEnabled:ignoreInterceptor:interceptor:addedScreenParameters:]_block_invoke + 68
13 uEats 0x1055d5a80 __51-[APMScheduler scheduleOnWorkerQueueBlockID:block:]_block_invoke + 44
14 libdispatch.dylib 0x180d87e68 _dispatch_call_block_and_release + 32
15 libdispatch.dylib 0x180d89a2c _dispatch_client_callout + 20
16 libdispatch.dylib 0x180d91124 _dispatch_lane_serial_drain + 668
17 libdispatch.dylib 0x180d91c80 _dispatch_lane_invoke + 392
18 libdispatch.dylib 0x180d9c500 _dispatch_workloop_worker_thread + 648
19 libsystem_pthread.dylib 0x1f0efa0bc _pthread_wqthread + 288
20 libsystem_pthread.dylib 0x1f0ef9e5c start_wqthread + 8
Thread 2:
0 libsystem_pthread.dylib 0x1f0ef9e54 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x1f0ef9e54 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x1f0ef9e54 start_wqthread + 0
Thread 5 name: Dispatch queue: com.google.firebase.firestore.rpc
Thread 5:
0 libsystem_kernel.dylib 0x1b7e6bbe4 poll + 8
1 uEats 0x105264a7c pollset_work(grpc_pollset*, grpc_pollset_worker**, long long) + 3295868 (ev_poll_posix.cc:1026)
2 uEats 0x1052667f8 pollset_work(grpc_pollset*, grpc_pollset_worker**, long long) + 3303416 (ev_posix.cc:323)
3 uEats 0x1052b37f8 cq_next(grpc_completion_queue*, gpr_timespec, void*) + 3618808 (completion_queue.cc:0)
4 uEats 0x105089e1c grpc::CompletionQueue::AsyncNextInternal(void**, bool*, gpr_timespec) + 1351196 (completion_queue_cc.cc:147)
5 uEats 0x1053f36e8 firebase::firestore::remote::Datastore::PollGrpcQueue() + 4929256 (datastore.cc:141)
6 uEats 0x105423f34 firebase::firestore::util::Task::ExecuteAndRelease() + 5127988 (task.cc:107)
7 libdispatch.dylib 0x180d89a2c _dispatch_client_callout + 20
8 libdispatch.dylib 0x180d91124 _dispatch_lane_serial_drain + 668
9 libdispatch.dylib 0x180d91c80 _dispatch_lane_invoke + 392
10 libdispatch.dylib 0x180d9c500 _dispatch_workloop_worker_thread + 648
11 libsystem_pthread.dylib 0x1f0efa0bc _pthread_wqthread + 288
12 libsystem_pthread.dylib 0x1f0ef9e5c start_wqthread + 8
Thread 6:
0 libsystem_pthread.dylib 0x1f0ef9e54 start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x1f0ef9e54 start_wqthread + 0
Thread 8:
0 libsystem_pthread.dylib 0x1f0ef9e54 start_wqthread + 0
Thread 9 name: com.apple.uikit.eventfetch-thread
Thread 9:
0 libsystem_kernel.dylib 0x1b7e684e0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b7e68b24 mach_msg + 76
2 CoreFoundation 0x181090820 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x181094cac __CFRunLoopRun + 1180
4 CoreFoundation 0x1810a86b8 CFRunLoopRunSpecific + 600
5 Foundation 0x18288f414 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6 Foundation 0x1828d0cac -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x183987fb0 -[UIEventFetcher threadMain] + 524
8 Foundation 0x1828df55c __NSThread__start__ + 808
9 libsystem_pthread.dylib 0x1f0efa9ac _pthread_start + 148
10 libsystem_pthread.dylib 0x1f0ef9e68 thread_start + 8
Thread 10:
0 libsystem_pthread.dylib 0x1f0ef9e54 start_wqthread + 0
Thread 11:
0 libsystem_kernel.dylib 0x1b7e68f64 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1f0f01298 _pthread_cond_wait + 1236
2 uEats 0x10525877c gpr_cv_wait + 3245948 (sync_posix.cc:143)
3 uEats 0x1052678d8 grpc_core::Executor::ThreadMain(void*) + 3307736 (executor.cc:238)
4 uEats 0x10525bf68 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void (*)(void*), void*, bool*, grpc_core::Thread::Options const&)::'lambda'(void*)::__invoke(void*) + 3260264 (thd_posix.cc:110)
5 libsystem_pthread.dylib 0x1f0efa9ac _pthread_start + 148
6 libsystem_pthread.dylib 0x1f0ef9e68 thread_start + 8
Thread 12:
0 libsystem_kernel.dylib 0x1b7e68f64 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1f0f01298 _pthread_cond_wait + 1236
2 uEats 0x10525877c gpr_cv_wait + 3245948 (sync_posix.cc:143)
3 uEats 0x1052678d8 grpc_core::Executor::ThreadMain(void*) + 3307736 (executor.cc:238)
4 uEats 0x10525bf68 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void (*)(void*), void*, bool*, grpc_core::Thread::Options const&)::'lambda'(void*)::__invoke(void*) + 3260264 (thd_posix.cc:110)
5 libsystem_pthread.dylib 0x1f0efa9ac _pthread_start + 148
6 libsystem_pthread.dylib 0x1f0ef9e68 thread_start + 8
Thread 13:
0 libsystem_kernel.dylib 0x1b7e68f64 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1f0f01298 _pthread_cond_wait + 1236
2 uEats 0x10525876c gpr_cv_wait + 3245932 (sync_posix.cc:0)
3 uEats 0x1052732ac timer_thread(void*) + 3355308 (timer_manager.cc:284)
4 uEats 0x10525bf68 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void (*)(void*), void*, bool*, grpc_core::Thread::Options const&)::'lambda'(void*)::__invoke(void*) + 3260264 (thd_posix.cc:110)
5 libsystem_pthread.dylib 0x1f0efa9ac _pthread_start + 148
6 libsystem_pthread.dylib 0x1f0ef9e68 thread_start + 8
Thread 14:
0 libsystem_kernel.dylib 0x1b7e68f64 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1f0f01298 _pthread_cond_wait + 1236
2 uEats 0x10525876c gpr_cv_wait + 3245932 (sync_posix.cc:0)
3 uEats 0x1052732ac timer_thread(void*) + 3355308 (timer_manager.cc:284)
4 uEats 0x10525bf68 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void (*)(void*), void*, bool*, grpc_core::Thread::Options const&)::'lambda'(void*)::__invoke(void*) + 3260264 (thd_posix.cc:110)
5 libsystem_pthread.dylib 0x1f0efa9ac _pthread_start + 148
6 libsystem_pthread.dylib 0x1f0ef9e68 thread_start + 8
Thread 15 name: com.apple.NSURLConnectionLoader
Thread 15:
0 libsystem_kernel.dylib 0x1b7e684e0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b7e68b24 mach_msg + 76
2 CoreFoundation 0x181090820 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x181094cac __CFRunLoopRun + 1180
4 CoreFoundation 0x1810a86b8 CFRunLoopRunSpecific + 600
5 CFNetwork 0x181b1e4d8 0x1818a7000 + 2585816
6 Foundation 0x1828df55c __NSThread__start__ + 808
7 libsystem_pthread.dylib 0x1f0efa9ac _pthread_start + 148
8 libsystem_pthread.dylib 0x1f0ef9e68 thread_start + 8
Thread 16:
0 libsystem_kernel.dylib 0x1b7e684e0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1b7e68b24 mach_msg + 76
2 CoreFoundation 0x181090820 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x181094cac __CFRunLoopRun + 1180
4 CoreFoundation 0x1810a86b8 CFRunLoopRunSpecific + 600
5 Foundation 0x18288f414 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6 Foundation 0x18288fbd0 -[NSRunLoop(NSRunLoop) run] + 92
7 SwiftUI 0x188d5eda8 static DisplayLink.asyncThread(arg:) + 836
8 SwiftUI 0x188d5ca14 #objc static DisplayLink.asyncThread(arg:) + 100
9 Foundation 0x1828df55c __NSThread__start__ + 808
10 libsystem_pthread.dylib 0x1f0efa9ac _pthread_start + 148
11 libsystem_pthread.dylib 0x1f0ef9e68 thread_start + 8
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000001 x1: 0x0000000000000001 x2: 0x00000001db391b10 x3: 0x000000016aebca69
x4: 0x0000000000000067 x5: 0x000000000000006a x6: 0x0000000000000001 x7: 0x0000000199e946bc
x8: 0x0000000000000000 x9: 0xeff731fd1c940033 x10: 0x000000010d10d4a0 x11: 0x007ffffffffffff8
x12: 0x0000000000000005 x13: 0x0000000000005e74 x14: 0x0000000000000001 x15: 0x0000000000000005
x16: 0x00000001f0ef1a50 x17: 0x00000001db3a9cb8 x18: 0x0000000000000000 x19: 0x00000001db3a6e70
x20: 0x00000001058df758 x21: 0xbcc12b01f4e479e5 x22: 0x000000016aebca30 x23: 0x00000002835943c0
x24: 0x00000001db391b10 x25: 0x00000002835943c0 x26: 0x000000016aebca60 x27: 0x00000001da3319c8
x28: 0x000000016aebca40 fp: 0x000000016aebcb90 lr: 0x0000000104f8b4b8
sp: 0x000000016aebca20 pc: 0x0000000104f8bdec cpsr: 0x60000000
far: 0x000000010bf201b8 esr: 0xf2000001 (Breakpoint) brk 1
Binary Images:
0x104f40000 - 0x105827fff uEats arm64 <4fbe6abe088c32dd9f472d44c6eedf69> /private/var/containers/Bundle/Application/7C7686D2-1729-4FCA-8CFB-B5D3FC5540D3/uEats.app/uEats
0x180d86000 - 0x180dcbfff libdispatch.dylib arm64e <69dac9c7ddaf318eb068be596d142a2f> /usr/lib/system/libdispatch.dylib
0x181089000 - 0x1814defff CoreFoundation arm64e <d2716f2f688b3d51ba8b17e6553b209e> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x19d141000 - 0x19d149fff GraphicsServices arm64e <75a910dc87a43b3a8c0ea868b945f5d4> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x1834fa000 - 0x184d94fff UIKitCore arm64e <e6e89bb5b5863725bf8f4c85dcd443bd> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x188c9f000 - 0x189d36fff SwiftUI arm64e <9bab2c1c95813bdcbc37fab1ad03dce0> /System/Library/Frameworks/SwiftUI.framework/SwiftUI
0x105ab4000 - 0x105b0bfff dyld arm64e <d16b72c0d6193e4892622c10a1d3066f> /usr/lib/dyld
0x1b7e67000 - 0x1b7e9cfff libsystem_kernel.dylib arm64e <c2fcc05874803c14b4790064a3f843e3> /usr/lib/system/libsystem_kernel.dylib
0x1f0ef9000 - 0x1f0f04fff libsystem_pthread.dylib arm64e <b48efcbed4f7308ba3fa172e0ea78e33> /usr/lib/system/libsystem_pthread.dylib
0x182877000 - 0x182b7ffff Foundation arm64e <feeef9b1b0e63561adfa3ef0302d23f8> /System/Library/Frameworks/Foundation.framework/Foundation
0x1818a7000 - 0x181d67fff CFNetwork arm64e <eae64611a84036fea69d5658f1bcf4d0> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
EOF
And here is the referenced function
func openOrClosed(restaurant: RestaurantModel) -> String {
//if force close bool value is on
if restaurant.forceClose {
return "Closed"
}
let hoursList = restaurant.hours
let now = Date()
let formatter = DateFormatter()
formatter.dateStyle = .full
formatter.timeStyle = .short
let datetime = formatter.string(from: now)
let dayOfTheWeek = (datetime.components(separatedBy: ","))[0] //grab current day of week
let currentTimeColen = (datetime.components(separatedBy: "at "))[1] //grab current time
//converts current time to 24 hr format
let dateAsString = currentTimeColen
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "h:mm a"
let date = dateFormatter.date(from: dateAsString)
dateFormatter.dateFormat = "HH:mm"
let Date24 = dateFormatter.string(from: date!) //line 200
print(Date24)
//replace : to . so value can be cast as a double
let decimal = Date24.replacingOccurrences(of: ":", with: ".")
let currentTime = Double(decimal)
//get array with starthour and closinghour of current day
guard let currentDayHours = hoursList[dayOfTheWeek] else {
return "error"
}
//get range value 1
guard let openHour = Double(currentDayHours[0]) else {
return "error"
}
//get range value 2
guard let closeHour = Double(currentDayHours[1]) else {
return "error"
}
//create range
let range = openHour...closeHour
var previousDayOfTheWeek:String = ""
var previousOpenHour:String = ""
var previousCloseHour:String = ""
var previousRange = 0.00...0.00
var lateTime = 0.00
var lateExists = false
//db will have p if restaurant closes after midnight
if currentDayHours.contains("p") {
previousDayOfTheWeek = currentDayHours[2] //get previous day
guard let previousDayHours = hoursList[previousDayOfTheWeek] else {
print(restaurant.name)
return restaurant.name
}
previousOpenHour = previousDayHours[0]//make double
previousCloseHour = previousDayHours[1]
previousRange = Double(previousOpenHour)!...Double(previousCloseHour)!
lateTime = 24.00 + currentTime!
if lateTime < Double(previousCloseHour)! {
lateExists = true
}
//eventually will get rid of p below
} else if Double(currentDayHours[0]) ?? 0.0 > 24.00 || Double(currentDayHours[1]) ?? 0.0 > 24.00 {
//let days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
}
if range.contains(currentTime!) && (closeHour-currentTime! <= 1.00) && lateExists==false{
return "Closing Soon"
} else if lateExists == true && previousRange.contains(lateTime) && (Double(previousCloseHour)! - Double(lateTime) <= 1.00){
return "Closing Soon"
} else if range.contains(currentTime!){
return "Open"
} else if lateExists == true && previousRange.contains(lateTime){
return "Open"
} else {
return "Closed"
}
}
I am showing a SwiftUI view with UIHostingController as part of a MapKit annotation's detailAccessoryView, and it works fine, never crashed when testing, but now that it is deployed to production, some users are reporting a crash. The crash isn't reproducible for me at this time, but this is the crash report I see repeated across different users:
[NOTE: updated below with better symbolication]
Date/Time: 2021-05-03T14:17:46.999Z
Launch Time: 2021-05-03T11:09:52Z
OS Version: iPhone OS 14.4.2 (18D70)
Report Version: 104
Exception Type: SIGABRT
Exception Codes: #0 at 0x1c0fff84c
Crashed Thread: 0
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001c0fff84c 0x1c0fd8000 + 161868
1 libsystem_c.dylib 0x000000019e5668f4 0x19e4f3000 + 473332
2 AttributeGraph 0x00000001bc924c7c 0x1bc909000 + 113788
3 AttributeGraph 0x00000001bc90ab84 0x1bc909000 + 7044
4 AttributeGraph 0x00000001bc90aed0 0x1bc909000 + 7888
5 AttributeGraph 0x00000001bc90b268 0x1bc909000 + 8808
6 AttributeGraph 0x00000001bc91d7a4 0x1bc909000 + 83876
7 AttributeGraph 0x00000001bc9248f4 0x1bc909000 + 112884
8 SwiftUI 0x000000019bbcd484 0x19b9e2000 + 2012292
9 SwiftUI 0x000000019bc2f920 0x19b9e2000 + 2414880
10 SwiftUI 0x000000019bcdceb8 0x19b9e2000 + 3124920
11 AttributeGraph 0x00000001bc90e14c 0x1bc909000 + 20812
12 AttributeGraph 0x00000001bc90e55c 0x1bc909000 + 21852
13 AttributeGraph 0x00000001bc91377c 0x1bc909000 + 42876
14 AttributeGraph 0x00000001bc924420 0x1bc909000 + 111648
15 SwiftUI 0x000000019bbee6ec 0x19b9e2000 + 2148076
16 SwiftUI 0x000000019bcc5178 0x19b9e2000 + 3027320
17 AttributeGraph 0x00000001bc90e14c 0x1bc909000 + 20812
18 AttributeGraph 0x00000001bc90e55c 0x1bc909000 + 21852
19 AttributeGraph 0x00000001bc91377c 0x1bc909000 + 42876
20 AttributeGraph 0x00000001bc924420 0x1bc909000 + 111648
21 SwiftUI 0x000000019c2dd644 0x19b9e2000 + 9418308
22 SwiftUI 0x000000019bab08f0 0x19b9e2000 + 846064
....
104 SwiftUI 0x000000019c22f328 0x19b9e2000 + 8704808
105 SwiftUI 0x000000019c385980 0x19b9e2000 + 10107264
106 SwiftUI 0x000000019c3859c8 0x19b9e2000 + 10107336
107 UIKitCore 0x0000000197e56bf8 0x1975a8000 + 9104376
108 UIKitCore 0x00000001984f3214 0x1975a8000 + 16036372
109 UIKitCore 0x00000001984f3998 0x1975a8000 + 16038296
110 UIKitCore 0x00000001984f36a8 0x1975a8000 + 16037544
111 UIKitCore 0x00000001984fd160 0x1975a8000 + 16077152
112 UIKitCore 0x00000001984fbf2c 0x1975a8000 + 16072492
113 UIKitCore 0x00000001984fc3e0 0x1975a8000 + 16073696
114 UIKitCore 0x00000001984fc2c0 0x1975a8000 + 16073408
115 CoreAutoLayout 0x00000001a9e71934 0x1a9e62000 + 63796
116 UIKitCore 0x00000001984fca98 0x1975a8000 + 16075416
117 UIKitCore 0x00000001984fb4bc 0x1975a8000 + 16069820
118 UIKitCore 0x00000001984fc6e4 0x1975a8000 + 16074468
119 UIKitCore 0x00000001984fd6bc 0x1975a8000 + 16078524
120 UIKitCore 0x00000001985cce00 0x1975a8000 + 16928256
121 CJournal 0x0000000104a52894 CJournal.MapCalloutView.(setupView in _C3508C6398D3621D6045FB1C8769598A)() -> () (MapCalloutView.swift:80)
122 CJournal 0x0000000104a52aa0 function signature specialization <Arg[0] = Owned To Guaranteed> of CJournal.MapCalloutView.init(rootView: SwiftUI.AnyView) -> CJournal.MapCalloutView (MapCalloutView.swift:43)
123 CJournal 0x0000000104aab01c CJournal.CJMapsCalloutController.makeMapsCalloutView() -> __C.UIView (MapCalloutView.swift:0)
124 CJournal 0x0000000104aab070 #objc CJournal.CJMapsCalloutController.makeMapsCalloutView() -> __C.UIView (<compiler-generated>:0)
125 CJournal 0x000000010483b2a8 -[CJCustomAnnotationView setupAnnotationDetailAccessoryViewWithAddress:] (CJCustomAnnotationView.m:114)
126 CJournal 0x000000010483b154 -[CJCustomAnnotationView setupAnnotationForPersonAddress:] (CJCustomAnnotationView.m:101)
127 CJournal 0x000000010483b370 -[CJCustomAnnotationView setupAnnotationForClusterAnnotation:] (CJCustomAnnotationView.m:124)
128 CJournal 0x000000010483ad70 -[CJCustomAnnotationView configureAnnotationViewWithAnnotation:] (CJCustomAnnotationView.m:37)
129 CJournal 0x000000010483acec -[CJCustomAnnotationView initWithAnnotation:reuseIdentifier:withDefaultColor:withCalloutDelegate:] (CJCustomAnnotationView.m:29)
130 CJournal 0x00000001048f4f74 -[MapViewShared annotationViewForMap:forAnnotation:withCalloutDelegate:] (MapViewShared.m:62)
131 CJournal 0x00000001049194f4 -[MapViewController mapView:viewForAnnotation:] (MapViewController.m:688)
132 MapKit 0x00000001a4c36638 0x1a4c2e000 + 34360
133 MapKit 0x00000001a4c31438 0x1a4c2e000 + 13368
134 MapKit 0x00000001a4d2c428 0x1a4c2e000 + 1041448
135 MapKit 0x00000001a4c651a8 0x1a4c2e000 + 225704
136 MapKit 0x00000001a4e2c314 0x1a4c2e000 + 2089748
137 CoreFoundation 0x00000001957d6cc8 0x195751000 + 548040
138 CoreFoundation 0x0000000195753604 0x195751000 + 9732
139 MapKit 0x00000001a4c34a3c 0x1a4c2e000 + 27196
140 MapKit 0x00000001a4e2b67c 0x1a4c2e000 + 2086524
141 MapKit 0x00000001a4c311f8 0x1a4c2e000 + 12792
142 MapKit 0x00000001a4c30440 0x1a4c2e000 + 9280
143 MapKit 0x00000001a4c6344c 0x1a4c2e000 + 218188
144 VectorKit 0x00000001a4fd647c 0x1a4ee8000 + 975996
145 VectorKit 0x00000001a4f8766c 0x1a4ee8000 + 652908
146 VectorKit 0x00000001a4f87a5c 0x1a4ee8000 + 653916
147 VectorKit 0x00000001a4f87b58 0x1a4ee8000 + 654168
148 VectorKit 0x00000001a4f02814 0x1a4ee8000 + 108564
149 VectorKit 0x00000001a4f03630 0x1a4ee8000 + 112176
150 VectorKit 0x00000001a523b6c4 0x1a4ee8000 + 3487428
151 VectorKit 0x00000001a5236240 0x1a4ee8000 + 3465792
152 VectorKit 0x00000001a536768c 0x1a4ee8000 + 4716172
153 VectorKit 0x00000001a536765c 0x1a4ee8000 + 4716124
154 VectorKit 0x00000001a54f5524 0x1a4ee8000 + 6346020
155 VectorKit 0x00000001a523bcf4 0x1a4ee8000 + 3489012
156 VectorKit 0x00000001a5239b70 0x1a4ee8000 + 3480432
157 VectorKit 0x00000001a54ee4e4 0x1a4ee8000 + 6317284
158 VectorKit 0x00000001a54ee048 0x1a4ee8000 + 6316104
159 QuartzCore 0x00000001989a3640 0x198990000 + 79424
160 IOKit 0x000000019ffe4464 0x19ffdd000 + 29796
161 CoreFoundation 0x00000001957c8b54 0x195751000 + 490324
162 CoreFoundation 0x00000001957ec420 0x195751000 + 635936
163 CoreFoundation 0x00000001957eb834 0x195751000 + 632884
164 CoreFoundation 0x00000001957e59f4 0x195751000 + 608756
165 CoreFoundation 0x00000001957e4ba0 0x195751000 + 605088
166 GraphicsServices 0x00000001ac54a598 0x1ac547000 + 13720
167 UIKitCore 0x00000001980d62f4 0x1975a8000 + 11723508
168 UIKitCore 0x00000001980db874 0x1975a8000 + 11745396
169 CJournal 0x00000001047b9708 main (main.m:20)
170 libdyld.dylib 0x00000001954c3568 0x1954c2000 + 5480
The line here is important
121 CJournal 0x0000000104a52894 CJournal.MapCalloutView.(setupView in _C3508C6398D3621D6045FB1C8769598A)() -> () (MapCalloutView.swift:80)
To show the annotation view's detailAccessoryView, I use a wrapper UIView which contains the UIHostingController which shows the SwiftUI view. At this point in the code, I call layoutIfNeeded() in the wrapper UIView, so that the view is sized correctly. I'm not sure if that is messing up the layout system or not. I can't reproduce the issue myself, so I can't really test out the theory.
Can anyone shed some light on this? This is the first time I've deployed SwiftUI code in production, so I'm not sure how to read these crash reports, or even take a concrete guess as to what might be happening here.
UPDATE:
Was able to symbolicate the rest of the crash report, including SwiftUI symbols. There seems to be a reference to AG::precondition_failure there.
Here is the better version:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001ba42e84c __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001d6cfc9e8 pthread_kill + 212 (pthread.c:1392)
2 libsystem_c.dylib 0x00000001972688f4 abort + 100 (abort.c:110)
3 AttributeGraph 0x00000001b5d36c7c AG::precondition_failure(char const*, ...) + 188 (ag-util.cc:51)
4 AttributeGraph 0x00000001b5d1cb84 AG::data::table::grow_region() + 288 (ag-data.cc:67)
5 AttributeGraph 0x00000001b5d1ced0 AG::data::table::alloc_page(AG::data::zone&, unsigned int) + 588 (ag-data.cc:212)
6 AttributeGraph 0x00000001b5d1d268 AG::data::zone::alloc_slow(unsigned int, unsigned int) + 228 (ag-data.cc:339)
7 AttributeGraph 0x00000001b5d1d524 AG::data::zone::alloc_bytes_recycle(unsigned int, unsigned int) + 240 (ag-data.h:417)
8 AttributeGraph 0x00000001b5d1d3b8 AG::data::zone::realloc_bytes(AG::data::ptr<void>&, unsigned int, unsigned int, unsigned int) + 112 (ag-data.cc:387)
9 AttributeGraph 0x00000001b5d25b64 AG::data::vector<AG::OutputEdge>::reserve_slow(AG::data::zone&, unsigned int) + 96 (ag-data-vector.h:191)
10 AttributeGraph 0x00000001b5d237d4 void AG::Graph::add_output_edge<AG::Node>(AG::data::ptr<AG::Node>, AG::AttributeID) + 144 (ag-data-vector.h:172)
11 AttributeGraph 0x00000001b5d2370c AG::Graph::add_input_dependencies(AG::AttributeID, AG::AttributeID) + 68 (ag-graph.cc:272)
12 AttributeGraph 0x00000001b5d24d20 AG::Graph::add_input(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AG::swift::metadata const*) + 220 (ag-graph.cc:831)
13 AttributeGraph 0x00000001b5d25700 AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long) + 256 (ag-graph.cc:1140)
14 AttributeGraph 0x00000001b5d36420 AGGraphGetValue + 228 (ag-graph-impl.h:43)
15 SwiftUI 0x0000000194a3b46c DynamicViewPhase.phase.getter + 28 (<compiler-generated>:0)
16 SwiftUI 0x0000000194a3b4c4 DynamicViewPhase.value.getter + 36 (DynamicContainer.swift:814)
17 SwiftUI 0x00000001947b34f8 specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:) + 24
18 SwiftUI 0x00000001947c27fc partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:) + 24 (<compiler-generated>:0)
19 AttributeGraph 0x00000001b5d2014c AG::Graph::UpdateStack::update() + 484 (ag-closure.h:108)
20 AttributeGraph 0x00000001b5d2055c AG::Graph::update_attribute(AG::data::ptr<AG::Node>, bool) + 328 (ag-graph-update.cc:563)
21 AttributeGraph 0x00000001b5d2577c AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long) + 380 (ag-graph.cc:1161)
22 AttributeGraph 0x00000001b5d36420 AGGraphGetValue + 228 (ag-graph-impl.h:43)
23 SwiftUI 0x0000000194fdf814 MergedPhase.rhs.getter + 28 (<compiler-generated>:0)
24 SwiftUI 0x0000000194fdf888 MergedPhase.value.getter + 28 (GraphInputs.swift:286)
25 SwiftUI 0x00000001947b34f8 specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:) + 24
26 SwiftUI 0x00000001947be2bc partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:) + 24 (<compiler-generated>:0)
27 AttributeGraph 0x00000001b5d2014c AG::Graph::UpdateStack::update() + 484 (ag-closure.h:108)
28 AttributeGraph 0x00000001b5d2055c AG::Graph::update_attribute(AG::data::ptr<AG::Node>, bool) + 328 (ag-graph-update.cc:563)
29 AttributeGraph 0x00000001b5d2577c AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long) + 380 (ag-graph.cc:1161)
30 AttributeGraph 0x00000001b5d36420 AGGraphGetValue + 228 (ag-graph-impl.h:43)
31 SwiftUI 0x0000000194d0d75c DynamicBody.phase.getter + 32 (<compiler-generated>:0)
32 SwiftUI 0x0000000194d0d850 DynamicBody.updateValue() + 112 (DynamicProperty.swift:261)
33 SwiftUI 0x0000000194a4194c partial apply for implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:) + 28 (<compiler-generated>:0)
34 AttributeGraph 0x00000001b5d2014c AG::Graph::UpdateStack::update() + 484 (ag-closure.h:108)
35 AttributeGraph 0x00000001b5d2055c AG::Graph::update_attribute(AG::data::ptr<AG::Node>, bool) + 328 (ag-graph-update.cc:563)
36 AttributeGraph 0x00000001b5d2577c AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long) + 380 (ag-graph.cc:1161)
37 AttributeGraph 0x00000001b5d36420 AGGraphGetValue + 228 (ag-graph-impl.h:43)
38 SwiftUI 0x00000001948e880c specialized UnaryLayoutComputer.layout.getter + 20
39 SwiftUI 0x00000001948e91d8 specialized UnaryLayoutComputer.updateValue() + 104 (UnaryLayoutView.swift:217)
40 SwiftUI 0x00000001949bf990 partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:) + 20 (<compiler-generated>:0)
41 AttributeGraph 0x00000001b5d2014c AG::Graph::UpdateStack::update() + 484 (ag-closure.h:108)
42 AttributeGraph 0x00000001b5d2055c AG::Graph::update_attribute(AG::data::ptr<AG::Node>, bool) + 328 (ag-graph-update.cc:563)
43 AttributeGraph 0x00000001b5d2577c AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long) + 380 (ag-graph.cc:1161)
44 AttributeGraph 0x00000001b5d36220 AGGraphGetInputValue + 268 (ag-graph-impl.h:43)
45 SwiftUI 0x0000000194a445dc LayoutProxy.layoutComputer.getter + 84 (<compiler-generated>:0)
46 SwiftUI 0x0000000194d5cdb8 accumulateSpacing #1 (ofChild:) in StackLayout.Header.init(layoutContext:proxies:majorAxis:minorAxisAlignment:uniformSpacing:childStorage:capacity:resizeChildrenWithTrailingOverflow:) + 292 (LayoutProxy.swift:29)
47 SwiftUI 0x0000000194d5c9a8 StackLayout.Header.init(layoutContext:proxies:majorAxis:minorAxisAlignment:uniformSpacing:childStorage:capacity:resizeChildrenWithTrailingOverflow:) + 396 (StackLayout.swift:438)
48 SwiftUI 0x0000000194936f80 specialized ManagedBufferPointer.init(bufferClass:minimumCapacity:makingHeaderWith:) + 268 (StackLayout.swift:378)
49 SwiftUI 0x00000001949373c8 specialized closure #2 in HVStack.updateLayoutComputer<A>(rule:layoutContext:children:) + 156
50 SwiftUI 0x00000001949bd298 specialized closure #2 in HVStack.updateLayoutComputer<A>(rule:layoutContext:children:) + 44
51 SwiftUI 0x00000001949c7c7c partial apply for specialized closure #2 in HVStack.updateLayoutComputer<A>(rule:layoutContext:children:) + 40
52 SwiftUI 0x000000019493766c specialized static LayoutComputerDelegate.update<A>(_:maybeInPlace:create:) + 140 (LayoutComputer.swift:304)
53 SwiftUI 0x00000001948a4580 specialized StatefulRule<>.updateLayoutComputer<A>(layout:environment:layoutComputers:) + 100
54 SwiftUI 0x00000001949b9a50 specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:) + 212 (DynamicLayoutView.swift:277)
55 AttributeGraph 0x00000001b5d2014c AG::Graph::UpdateStack::update() + 484 (ag-closure.h:108)
56 AttributeGraph 0x00000001b5d2055c AG::Graph::update_attribute(AG::data::ptr<AG::Node>, bool) + 328 (ag-graph-update.cc:563)
57 AttributeGraph 0x00000001b5d256e0 AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long) + 224 (ag-graph.cc:1136)
58 AttributeGraph 0x00000001b5d36220 AGGraphGetInputValue + 268 (ag-graph-impl.h:43)
59 SwiftUI 0x0000000194a445dc LayoutProxy.layoutComputer.getter + 84 (<compiler-generated>:0)
60 SwiftUI 0x0000000194c013d8 _FlexFrameLayout.sizeThatFits(in:context:child:) + 436 (LayoutProxy.swift:46)
61 SwiftUI 0x0000000194c01630 protocol witness for UnaryLayout.sizeThatFits(in:context:child:) in conformance _FlexFrameLayout + 68 (<compiler-generated>:0)
62 SwiftUI 0x0000000194b2da3c closure #1 in UnaryLayoutEngine.sizeThatFits(_:) + 76 (UnaryLayoutView.swift:258)
63 SwiftUI 0x0000000194b2d97c UnaryLayoutEngine.sizeThatFits(_:) + 444 (StandardLibraryAdditions.swift:0)
64 SwiftUI 0x0000000194db8a20 LayoutComputer.EngineDelegate.sizeThatFits(_:) + 68 (LayoutComputer.swift:154)
65 SwiftUI 0x0000000194b2aac4 _PaddingLayout.sizeThatFits(in:context:child:) + 200 (LayoutComputer.swift:47)
66 SwiftUI 0x0000000194b2afd8 protocol witness for UnaryLayout.sizeThatFits(in:context:child:) in conformance _PaddingLayout + 40 (<compiler-generated>:0)
67 SwiftUI 0x0000000194b2da3c closure #1 in UnaryLayoutEngine.sizeThatFits(_:) + 76 (UnaryLayoutView.swift:258)
68 SwiftUI 0x0000000194b2d97c UnaryLayoutEngine.sizeThatFits(_:) + 444 (StandardLibraryAdditions.swift:0)
69 SwiftUI 0x0000000194db8a20 LayoutComputer.EngineDelegate.sizeThatFits(_:) + 68 (LayoutComputer.swift:154)
70 SwiftUI 0x0000000194b3e200 ViewGraph.sizeThatFits(_:) + 252 (LayoutComputer.swift:47)
71 SwiftUI 0x0000000194f345e0 closure #1 in ViewRendererHost.sizeThatFits(_:) + 52 (ViewRendererHost.swift:249)
72 SwiftUI 0x0000000194adeec4 thunk for #callee_guaranteed (#guaranteed ViewGraph) -> (#unowned CGSize) + 24 (<compiler-generated>:0)
73 SwiftUI 0x0000000194f3287c closure #1 in ViewRendererHost.updateViewGraph<A>(body:) + 92 (ViewRendererHost.swift:92)
74 SwiftUI 0x0000000194f2b0b4 ViewRendererHost.updateViewGraph<A>(body:) + 88 (<compiler-generated>:0)
75 SwiftUI 0x0000000194f31328 ViewRendererHost.sizeThatFits(_:) + 112 (ViewRendererHost.swift:249)
76 SwiftUI 0x0000000195087980 _UIHostingView.sizeThatFits(_:) + 112 (UIHostingView.swift:1865)
77 SwiftUI 0x00000001950879c8 #objc _UIHostingView._baselineOffsets(at:) + 48
78 UIKitCore 0x0000000190b58bf8 -[UIView(_UIConstraintBasedLayoutEmbedding) _layoutSizeThatFits:fixedAxes:] + 84 (UIView_UnifiedLayout.m:27)
79 UIKitCore 0x00000001911f5214 -[UIView(UIConstraintBasedLayout) intrinsicContentSize] + 92 (NSLayoutConstraint_UIKitAdditions.m:2112)
80 UIKitCore 0x00000001911f5998 -[UIView(UIConstraintBasedLayout) _generateContentSizeConstraints] + 52 (NSLayoutConstraint_UIKitAdditions.m:2239)
81 UIKitCore 0x00000001911f56a8 -[UIView(UIConstraintBasedLayout) _updateContentSizeConstraints] + 340 (NSLayoutConstraint_UIKitAdditions.m:2187)
82 UIKitCore 0x00000001911ff160 -[UIView(AdditionalLayoutSupport) _updateSystemConstraints] + 124 (NSLayoutConstraint_UIKitAdditions.m:4611)
83 UIKitCore 0x00000001911fdf2c -[UIView(AdditionalLayoutSupport) _sendUpdateConstraintsIfNecessaryForSecondPass:] + 480 (NSLayoutConstraint_UIKitAdditions.m:0)
84 UIKitCore 0x00000001911fe3e0 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 944 (NSLayoutConstraint_UIKitAdditions.m:4412)
85 UIKitCore 0x00000001911fe2c0 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 656 (NSLayoutConstraint_UIKitAdditions.m:4393)
86 CoreAutoLayout 0x00000001a2b73934 -[NSISEngine withBehaviors:performModifications:] + 80 (NSISEngine.m:1917)
87 UIKitCore 0x00000001911fea98 __100-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:]_block_invoke + 88 (NSLayoutConstraint_UIKitAdditions.m:4458)
88 UIKitCore 0x00000001911fd4bc -[UIView(AdditionalLayoutSupport) _withUnsatisfiableConstraintsLoggingSuspendedIfEngineDelegateExists:] + 120 (NSLayoutConstraint_UIKitAdditions.m:4157)
89 UIKitCore 0x00000001911fe6e4 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:] + 160 (NSLayoutConstraint_UIKitAdditions.m:4457)
90 UIKitCore 0x00000001911ff6bc -[UIView(AdditionalLayoutSupport) _updateConstraintsAtEngineLevelIfNeededWithViewForVariableChangeNotifications:] + 428 (NSLayoutConstraint_UIKitAdditions.m:4722)
91 UIKitCore 0x00000001912cee00 -[UIView(Hierarchy) layoutBelowIfNeeded] + 860 (UIView.m:12277)
92 CJournal 0x00000001029e2894 MapCalloutView.setupView() + 948 (MapCalloutView.swift:80)
93 CJournal 0x00000001029e2aa0 specialized MapCalloutView.init(rootView:) + 320 (MapCalloutView.swift:43)
94 CJournal 0x0000000102a3b01c MapCalloutView.init(rootView:) + 8 (MapCalloutView.swift:0)
95 CJournal 0x0000000102a3b01c MapCalloutView.__allocating_init(rootView:) + 24 (CJMapsCalloutController.swift:19)
96 CJournal 0x0000000102a3b01c CJMapsCalloutController.makeMapsCalloutView() + 252
97 CJournal 0x0000000102a3b070 #objc CJMapsCalloutController.makeMapsCalloutView() + 28 (<compiler-generated>:0)
98 CJournal 0x00000001027cb2a8 -[CJCustomAnnotationView setupAnnotationDetailAccessoryViewWithAddress:] + 312 (CJCustomAnnotationView.m:114)
99 CJournal 0x00000001027cb154 -[CJCustomAnnotationView setupAnnotationForPersonAddress:] + 553300 (CJCustomAnnotationView.m:0)
100 CJournal 0x00000001027cb370 -[CJCustomAnnotationView setupAnnotationForClusterAnnotation:] + 553840 (CJCustomAnnotationView.m:0)
101 CJournal 0x00000001027cad70 -[CJCustomAnnotationView configureAnnotationViewWithAnnotation:] + 552304 (CJCustomAnnotationView.m:38)
102 CJournal 0x00000001027cacec -[CJCustomAnnotationView initWithAnnotation:reuseIdentifier:withDefaultColor:withCalloutDelegate:] + 552172 (CJCustomAnnotationView.m:32)
103 CJournal 0x0000000102884f74 -[MapViewShared annotationViewForMap:forAnnotation:withCalloutDelegate:] + 1314676 (MapViewShared.m:62)
Recently, I get these crashes from users. I cannot figure out the root cause, please help. I'm using WebView (UIWebView for iOS 8 and WkWebview for iOS 9 and above), some javascript function will be called in runtime. I think this can be related to the crash but I cannot figure it out.
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000001
VM Region Info: 0x1 is not in any region. Bytes before following region: 4304863231
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 0000000100970000-0000000100974000 [ 16K] r-x/r-x SM=COW ....app/test123456]
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
Triggered by Thread: 3
Thread 3 name:
Thread 3 Crashed:
0 libGPUSupportMercury.dylib 0x00000001a0a98ee8 gpus_ReturnNotPermittedKillClient + 12 (gpui_client_io.c:77)
1 AGXGLDriver 0x00000001a4cbb228 glrKillClient + 464 (agxu_kill_client.cpp:175)
2 libGPUSupportMercury.dylib 0x00000001a0a99ecc gpusSubmitDataBuffers + 176 (gpui_context.c:0)
3 AGXGLDriver 0x00000001a4cbc724 SubmitPackets(AGXContextRec*) + 296 (agxu_gl_command.cpp:93)
4 WebCore 0x000000018d96435c WebCore::GraphicsContext3D::reshape(int, int) + 552 (GraphicsContext3DOpenGLCommon.cpp:376)
5 WebCore 0x000000018e5f2198 WebCore::WebGLRenderingContextBase::initializeNewContext() + 888 (WebGLRenderingContextBase.cpp:598)
6 WebCore 0x000000018e5f1ba4 WebCore::WebGLRenderingContextBase::WebGLRenderingContextBase(WebCore::HTMLCanvasElement&, WTF::Ref<WebCore::GraphicsContext3D>&&, WebCore::GraphicsContext3DAttributes) + 544 (WebGLRenderingContextBase.cpp:497)
7 WebCore 0x000000018e5ec8dc WebCore::WebGLRenderingContext::WebGLRenderingContext(WebCore::HTMLCanvasElement&, WTF::Ref<WebCore::GraphicsContext3D>&&, WebCore::GraphicsContext3DAttributes) + 44 (WebGLRenderingContext.cpp:74)
8 WebCore 0x000000018e5f1160 WebCore::WebGLRenderingContextBase::create(WebCore::HTMLCanvasElement&, WebCore::GraphicsContext3DAttributes&, WTF::String const&) + 956 (memory:3006)
9 WebCore 0x000000018d9a3b28 WebCore::HTMLCanvasElement::getContextWebGL(WTF::String const&, WebCore::GraphicsContext3DAttributes&&) + 152 (HTMLCanvasElement.cpp:326)
10 WebCore 0x000000018dd1a740 WebCore::JSHTMLCanvasElement::getContext(JSC::ExecState&) + 312 (JSHTMLCanvasElementCustom.cpp:71)
11 WebCore 0x000000018d531fc0 WebCore::jsHTMLCanvasElementPrototypeFunctionGetContext(JSC::ExecState*) + 168 (JSHTMLCanvasElement.cpp:258)
12 JavaScriptCore 0x000000018c748eb4 llint_entry + 29668
13 JavaScriptCore 0x000000018c748454 llint_entry + 27012
14 JavaScriptCore 0x000000018c748454 llint_entry + 27012
15 JavaScriptCore 0x000000018c748454 llint_entry + 27012
16 JavaScriptCore 0x000000018c748454 llint_entry + 27012
17 JavaScriptCore 0x000000018c741900 vmEntryToJavaScript + 272
18 JavaScriptCore 0x000000018c620170 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 184 (JITCode.cpp:81)
19 JavaScriptCore 0x000000018c005294 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 400 (Interpreter.cpp:971)
20 JavaScriptCore 0x000000018c658a9c JSC::boundThisNoArgsFunctionCall(JSC::ExecState*) + 476 (JSBoundFunction.cpp:54)
21 JavaScriptCore 0x000000018c741a48 vmEntryToNative + 280
22 JavaScriptCore 0x000000018c0052dc JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 472 (Interpreter.cpp:973)
23 JavaScriptCore 0x000000018c2693fc JSC::profiledCall(JSC::ExecState*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&) + 180 (CallData.cpp:40)
24 WebCore 0x000000018e329308 WebCore::ScheduledAction::executeFunctionInContext(JSC::JSGlobalObject*, JSC::JSValue, WebCore::ScriptExecutionContext&) + 528 (JSMainThreadExecState.h:72)
25 WebCore 0x000000018e328f44 WebCore::ScheduledAction::execute(WebCore::Document&) + 140 (ScheduledAction.cpp:126)
26 WebCore 0x000000018d408260 WebCore::DOMTimer::fired() + 728 (DOMTimer.cpp:368)
27 WebCore 0x000000018d407e18 WebCore::ThreadTimers::sharedTimerFiredInternal() + 172 (ThreadTimers.cpp:118)
28 WebCore 0x000000018d407d58 WebCore::timerFired(__CFRunLoopTimer*, void*) + 28 (MainThreadSharedTimerCF.cpp:74)
29 CoreFoundation 0x00000001855a7dc0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28 (CFRunLoop.c:1832)
30 CoreFoundation 0x00000001855a7ae4 __CFRunLoopDoTimer + 864 (CFRunLoop.c:2415)
31 CoreFoundation 0x00000001855a72e4 __CFRunLoopDoTimers + 248 (CFRunLoop.c:2562)
32 CoreFoundation 0x00000001855a4ecc __CFRunLoopRun + 1928 (CFRunLoop.c:3083)
33 CoreFoundation 0x00000001854c4c58 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
34 WebCore 0x000000018d43984c RunWebThread(void*) + 560 (WebCoreThread.mm:690)
35 libsystem_pthread.dylib 0x00000001852282b4 _pthread_body + 308 (pthread.c:740)
36 libsystem_pthread.dylib 0x0000000185228180 _pthread_start + 312 (pthread.c:799)
37 libsystem_pthread.dylib 0x0000000185226b74 thread_start + 4
Thank you very much.
I'm getting this crash log from Fabric but am unable to understand what causes it. Can anyone help to explain what cause this crash?
Here is the log from Fabric:
Crashed: com.apple.NSURLConnectionLoader
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000000008efcaa00
Crashed: com.apple.NSURLConnectionLoader
0 libobjc.A.dylib 0x1808bdb90 objc_msgSend + 16
1 CoreFoundation 0x1811be0a4 __CFArrayCreateCopy0 + 628
2 Security 0x181685aa4 SecTrustCreateWithCertificates + 96
3 Security 0x18165974c sslCreateSecTrust + 204
4 Security 0x181659c5c tls_verify_peer_cert + 80
5 libsystem_coretls.dylib 0x180d8603c SSLProcessHandshakeRecordInner + 176
6 libsystem_coretls.dylib 0x180d8a490 tls_handshake_process + 148
7 Security 0x18165dd60 SSLHandshakeProceed + 140
8 Security 0x18165e188 SSLHandshake + 140
9 CFNetwork 0x1818299b8 SocketStream::_PerformSecurityHandshake_NoLock() + 464
10 CFNetwork 0x18180440c SocketStream::socketCallback(__CFSocket*, unsigned long, __CFData const*, void const*) + 204
11 CFNetwork 0x1818042fc SocketStream::_SocketCallBack_stream(__CFSocket*, unsigned long, __CFData const*, void const*, void*) + 88
12 CoreFoundation 0x181201750 __CFSocketPerformV0 + 1096
13 CoreFoundation 0x1811fd09c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
14 CoreFoundation 0x1811fcab0 __CFRunLoopDoSources0 + 412
15 CoreFoundation 0x1811fa830 __CFRunLoopRun + 724
16 CoreFoundation 0x181124c50 CFRunLoopRunSpecific + 384
17 CFNetwork 0x1818a5c68 +[NSURLConnection(Loader) _resourceLoadLoop:] + 412
18 Foundation 0x181c1be4c __NSThread__start__ + 1000
19 libsystem_pthread.dylib 0x180eabb28 _pthread_body + 156
20 libsystem_pthread.dylib 0x180eaba8c _pthread_body + 154
21 libsystem_pthread.dylib 0x180ea9028 thread_start + 4
As far as i know, in my app, I didn't do any call using SecTrustCreateWithCertificates. But I did use AFNewtworking.
Any help and explanation would be helpful.
I've had an app on the app store for about a month and then I recently uploaded an updated binary to the App Store, version 2.0. It uses SpriteKit and ever since that update every person who downloaded it got a crash upon startup (this was apparent in the customer reviews). So I went back through my code and realized that I forgot to change one of the code signing options to Distribution instead of developer. After archiving that new binary, 2.1, and waiting ANOTHER week to have it released again, version 2.1 crashed as well. My app has been down for 2 weeks now and I'm fed up with this. I made very minor changes including a line of code in the AppDelegate.m that allows the user to play their own music in the background:
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];
return YES;
}
I am not super comfortable with Xcode and it is my first app. I get this crash report in iTunes Connect:
Incident Identifier: A0DB04E6-A62B-46AB-8896-CE77A91064EF
Hardware Model: iPhone5,3
Process: PokeJump [831]
Path: /var/mobile/Applications/BB765A31-6028-429B-9939- F69DB8B62E85/PokeJump.app/PokeJump
Identifier: PokeJump.PokeJump
Version: 2.0 (2.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-07-01 19:07:36.341 -0400
OS Version: iOS 7.1.1 (11D201)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x2fe61f06 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3a5f8ce2 objc_exception_throw + 34
2 CoreFoundation 0x2fe61e48 +[NSException raise:format:] + 108
3 SpriteKit 0x325a6c12 +[SKPlaySound playSoundFileNamed:atPosition:waitForCompletion:] + 578
4 SpriteKit 0x3255f8ec +[SKAction(SKActions) playSoundFileNamed:waitForCompletion:] + 60
5 PokeJump 0x000637de 0x0005a000 + 38878
6 PokeJump 0x0006177e 0x0005a000 + 30590
7 PokeJump 0x0006e080 0x0005a000 + 82048
8 UIKit 0x32695a4e -[UIViewController loadViewIfRequired] + 514
9 UIKit 0x3269580c -[UIViewController view] + 20
10 UIKit 0x327b5292 -[UIWindow handleStatusBarChangeFromHeight:toHeight:] + 690
11 UIKit 0x3271c432 +[UIWindow _noteStatusBarHeightChanged:oldHeight:forAutolayoutRootViewsOnly:] + 234
12 UIKit 0x3281cb2c __79-[UIApplication _setStatusBarHidden:animationParameters:changeApplicationFlag:]_block_invoke + 128
13 UIKit 0x326c6a36 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 486
14 UIKit 0x327ff33a +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:completion:] + 66
15 UIKit 0x32741de6 -[UIApplication _setStatusBarHidden:animationParameters:changeApplicationFlag:] + 458
16 UIKit 0x3269c8fc -[UIApplication _updateCurrentStatusBarViewControllerAppearance] + 244
17 UIKit 0x32699d8e -[UIWindow _setHidden:forced:] + 230
18 UIKit 0x32703a4c -[UIWindow makeKeyAndVisible] + 56
19 UIKit 0x327006e0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1816
20 UIKit 0x326facc4 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 716
21 UIKit 0x32696c92 -[UIApplication handleEvent:withNewEvent:] + 3546
22 UIKit 0x32695df4 -[UIApplication sendEvent:] + 68
23 UIKit 0x326fa400 _UIApplicationHandleEvent + 612
24 GraphicsServices 0x34d03b50 _PurpleEventCallback + 604
25 GraphicsServices 0x34d0373a PurpleEventCallback + 30
26 CoreFoundation 0x2fe2c842 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
27 CoreFoundation 0x2fe2c7de __CFRunLoopDoSource1 + 342
28 CoreFoundation 0x2fe2afaa __CFRunLoopRun + 1402
29 CoreFoundation 0x2fd95764 CFRunLoopRunSpecific + 520
30 CoreFoundation 0x2fd95546 CFRunLoopRunInMode + 102
31 UIKit 0x326f9626 -[UIApplication _run] + 758
32 UIKit 0x326f488c UIApplicationMain + 1132
33 PokeJump 0x0006e73e 0x0005a000 + 83774
34 libdyld.dylib 0x3aaf6ab2 tlv_initializer + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3abad1f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x3ac157b2 pthread_kill + 54
2 libsystem_c.dylib 0x3ab5dff4 abort + 72
3 libc++abi.dylib 0x39fac98a abort_message + 70
4 libc++abi.dylib 0x39fc56e2 default_terminate_handler() + 250
5 libobjc.A.dylib 0x3a5f8f7a _objc_terminate() + 190
6 libc++abi.dylib 0x39fc31b0 std::__terminate(void
7 libc++abi.dylib 0x39fc2d12 __cxa_rethrow + 98
8 libobjc.A.dylib 0x3a5f8e2a objc_exception_rethrow + 38
9 CoreFoundation 0x2fd957da CFRunLoopRunSpecific + 638
10 CoreFoundation 0x2fd95546 CFRunLoopRunInMode + 102
11 UIKit 0x326f9626 -[UIApplication _run] + 758
12 UIKit 0x326f488c UIApplicationMain + 1132
13 PokeJump 0x0006e73e 0x5a000 + 83774
14 libdyld.dylib 0x3aaf6ab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x3ab9a804 kevent64 + 24
1 libdispatch.dylib 0x3aae9050 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3aae32de _dispatch_mgr_thread + 34
Thread 2:
0 libsystem_kernel.dylib 0x3abadc70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3ac12c1e _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3ac12ad8 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x3abadc70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3ac12c1e _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3ac12ad8 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x3ab9aa50 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3ab9a848 mach_msg + 36
2 CoreFoundation 0x2fe2c624 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2fe2ad44 __CFRunLoopRun + 788
4 CoreFoundation 0x2fd95764 CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2fd95546 CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2edfa45e GenericRunLoopThread::Entry(void*) + 126
7 libAVFAudio.dylib 0x2edee8fc CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x3ac14956 _pthread_body + 138
9 libsystem_pthread.dylib 0x3ac148c6 _pthread_start + 98
10 libsystem_pthread.dylib 0x3ac12ae4 thread_start + 4
Thread 5:
0 AudioToolbox 0x2f74f7d4 CrashIfClientProvidedBogusAudioBufferList + 124
1 AudioToolbox 0x2f75e1d6 AudioConverterFillComplexBuffer + 250
2 AudioToolbox 0x2f81decc AUInputFormatConverter2::PullAndConvertInput(AudioTimeStamp const&, unsigned long&, AudioBufferList&, AudioStreamPacketDescription*, bool&) + 96
3 AudioToolbox 0x2f81da74 AUConverterBase::RenderBus(unsigned long&, AudioTimeStamp const&, unsigned long, unsigned long) + 212
4 AudioToolbox 0x2f7518f4 AUBase::DoRenderBus(unsigned long&, AudioTimeStamp const&, unsigned long, AUOutputElement*, unsigned long, AudioBufferList&) + 144
5 AudioToolbox 0x2f751744 AUBase::DoRender(unsigned long&, AudioTimeStamp const&, unsigned long, unsigned long, AudioBufferList&) + 528
6 AudioToolbox 0x2f80d96c AURemoteIO::PerformIO(unsigned long, unsigned int, unsigned int, AudioTimeStamp const&, AudioTimeStamp const&, AudioBufferList const*, AudioBufferList*, int&) + 484
7 AudioToolbox 0x2f80e9b8 AURIOCallbackReceiver_PerformIO + 392
8 AudioToolbox 0x2f8050b2 _XPerformIO + 174
9 AudioToolbox 0x2f77264a mshMIGPerform + 122
10 AudioToolbox 0x2f7e1b28 MSHMIGDispatchMessage + 28
11 AudioToolbox 0x2f80dbe4 AURemoteIO::IOThread::Run() + 116
12 AudioToolbox 0x2f810cc4 AURemoteIO::IOThread::Entry(void*) + 4
13 AudioToolbox 0x2f74db38 CAPThread::Entry(CAPThread*) + 208
14 libsystem_pthread.dylib 0x3ac14956 _pthread_body + 138
15 libsystem_pthread.dylib 0x3ac148c6 _pthread_start + 98
16 libsystem_pthread.dylib 0x3ac12ae4 thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
I realize it says version 2.0 on this crash report but I am assuming both crashed for the same reason. I am desperate to find a fix for this and it frustrates me so much because it runs perfectly fine on all the simulators and on my iPad and iPhone when I run it when connected to my computer. Any help would mean a lot. Thanks