Good afternoon colleagues
Recently, I have been receiving reports through the organizer from users of the crash application.
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000010
Exception Codes: 0x0000000000000001, 0x0000000000000010
VM Region Info: 0x10 is not in any region. Bytes before following region: 68719476720
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
commpage (reserved) 1000000000-7000000000 [384.0G] ---/--- SM=NUL ...(unallocated)
Triggered by Thread: 0
Kernel Triage:
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
Thread 0 name:
Thread 0 Crashed:
0 libobjc.A.dylib 0x00000001d30f9c20 objc_msgSend + 32 (:-1)
1 UIKitCore 0x00000001dc192224 -[UIViewController dealloc] + 768 (UIViewController.m:3098)
2 UIKitCore 0x00000001dc18fdf8 -[UINavigationController dealloc] + 308 (UINavigationController.m:774)
3 libobjc.A.dylib 0x00000001d30f95d8 AutoreleasePoolPage::releaseUntil(objc_object**) + 196 (NSObject.mm:938)
4 libobjc.A.dylib 0x00000001d30fcf80 objc_autoreleasePoolPop + 256 (NSObject.mm:1208)
5 UIKitCore 0x00000001dc192340 -[UIViewController dealloc] + 1052 (UIViewController.m:3128)
6 UIKitCore 0x00000001dc18fdf8 -[UINavigationController dealloc] + 308 (UINavigationController.m:774)
7 libobjc.A.dylib 0x00000001d30f95d8 AutoreleasePoolPage::releaseUntil(objc_object**) + 196 (NSObject.mm:938)
8 libobjc.A.dylib 0x00000001d30fcf80 objc_autoreleasePoolPop + 256 (NSObject.mm:1208)
9 CoreFoundation 0x00000001d9e4e764 _CFAutoreleasePoolPop + 32 (NSObject.m:793)
10 CoreFoundation 0x00000001d9e4c4b8 __CFRunLoopPerCalloutARPEnd + 48 (CFRunLoop.c:746)
11 CoreFoundation 0x00000001d9e4c080 __CFRunLoopRun + 2076 (CFRunLoop.c:3149)
12 CoreFoundation 0x00000001d9e50ed4 CFRunLoopRunSpecific + 612 (CFRunLoop.c:3418)
13 GraphicsServices 0x0000000213152368 GSEventRunModal + 164 (GSEvent.c:2196)
14 UIKitCore 0x00000001dc32f3d0 -[UIApplication _run] + 888 (UIApplication.m:3745)
15 UIKitCore 0x00000001dc32f034 UIApplicationMain + 340 (UIApplication.m:5335)
16 AppIOS 0x000000010546defc main + 68 (AppDelegate.swift:21)
17 dyld 0x00000001f84b8960 start + 2528 (dyldMain.cpp:1170)
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x00000001120ac600 x1: 0x00000001d5cacf78 x2: 0x0000000112910400 x3: 0x000000016ae5a268
x4: 0x0000000000000010 x5: 0x0000000111f5d290 x6: 0x0000000000000020 x7: 0x0000000000000000
x8: 0x0000000280568de0 x9: 0x0000000000000000 x10: 0x6ae10001120ac600 x11: 0x000000000000001f
x12: 0x0000000000984000 x13: 0x0000000111f42fe0 x14: 0x0000000000000000 x15: 0x0000000000000000
x16: 0x0000000000000000 x17: 0x0000000235516f30 x18: 0x0000000000000000 x19: 0x0000000112910400
x20: 0x00000001128096c8 x21: 0x0000000280568de0 x22: 0x0000000000000050 x23: 0x00000000000001b8
x24: 0x000000022d863000 x25: 0x0000000100000002 x26: 0x0000000000000050 x27: 0x0000000000000001
x28: 0x0000000283eb1210 fp: 0x000000016ae5a3c0 lr: 0x00000001dc192224
sp: 0x000000016ae5a1a0 pc: 0x00000001d30f9c20 cpsr: 0x20000000
esr: 0x56000080 Address size fault
I can't figure out why the crash is happening.
The rootViewController itself is initialized through the code:
class AppDelegate: UIResponder, UIApplicationDelegate {
//...//
var window: UIWindow?
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
createRootVC()
}
private func createRootVC() {
self.window = UIWindow(frame: UIScreen.main.bounds)
let mainView = Main_V2()
let navigation = RootNavigationController(rootViewController: mainView)
self.window?.rootViewController = navigation
self.window?.makeKeyAndVisible()
}
//..//
}
In Main_V2, this is a continuation of the Launch Screen, which has a network request and determines which screen will be next on the stack. After opening the next screen, Main_V2 is removed from the viewControllers stack of the root navigation controller.
The error is not reproduced by own efforts. Even with AddressSanitizer and ZombieObject scan enabled.
The application also has a timer restart when the application goes into the background. After 5 minutes, the screens restart:
private func restartApp() {
let mainView = Main_V2()
let navigation = RootNavigationController(rootViewController: mainView)
// Get current Window with RootViewController
guard
let window = UIApplication.shared.keyWindow,
let rootVC = window.rootViewController
else {
createRootVC()
return
}
// Change frame of current root frame
navigation.view.frame = rootVC.view.frame
navigation.view.layoutIfNeeded()
// Clear All
window.rootViewController = nil
// Animate transition new rootViewController
UIView.transition(with: window, duration: 0.2, options: .transitionCrossDissolve) {
window.rootViewController = navigation
}
}
But judging by the report, it's not about the restart, but the first cold start of the application.
There are no dsym files for UIKit in the downloaded Debug Symbols, so it is not possible to check the cause through the %atos -arch arm64 -o command
I would be very grateful if you could tell me what the reason may be or how to investigate this report.
Related
I collected some user crash logs from the Xcode > Window > Organizer > crashes.
it is very strange.
It shows a "Unexpectedly found nil while unwrapping an Optional value" error on line 3 below, but this line code already uses an if to check.
And I don't think line number is wrong after log be parsed, any suggestions? Thanks a lot.
model.weekday = workout.startDate.dayOfWeek()
model.shortDate = workout.startDate.toString(format: "MM/dd")
if let totalEnergyBurned = workout.totalEnergyBurned { // Unexpectedly found nil while unwrapping
model.kilocalorie = (Int)(round(totalEnergyBurned.doubleValue(for: HKUnit.kilocalorie())))
}
The crash log:
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000100cdaaa4
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [21903]
Triggered by Thread: 17
Thread 17 name:
Thread 17 Crashed:
0 DunDun 0x0000000100cdaaa4 Swift runtime failure: Unexpectedly found nil while unwrapping an Optional value + 0 (DDWorkout.swift:0)
1 DunDun 0x0000000100cdaaa4 specialized static DDWorkout.convert(_:) + 1936 (DDWorkout.swift:59)
2 DunDun 0x0000000100cda868 specialized static DDWorkout.convert(_:) + 1364 (DDWorkout.swift:59)
3 DunDun 0x0000000100cb0a90 static DDWorkout.convert(_:) + 8 (<compiler-generated>:0)
4 DunDun 0x0000000100cb0a90 completion #1 (_:error:) in HealthKitStorage.getTotalWorkout(callback:) + 752
5 DunDun 0x0000000100cb0ecc closure #1 in HealthKitStorage.getTotalWorkout(callback:) + 496 (HealthKitStorage.swift:55)
6 DunDun 0x0000000100cb1590 thunk for #escaping #callee_guaranteed (#guaranteed HKSampleQuery, #guaranteed [HKSample]?, #guaranteed Error?) -> () + 132 (<compiler-generated>:0)
7 libdispatch.dylib 0x0000000193359a84 _dispatch_call_block_and_release + 32 (init.c:1466)
8 libdispatch.dylib 0x000000019335b81c _dispatch_client_callout + 20 (object.m:559)
9 libdispatch.dylib 0x0000000193363004 _dispatch_lane_serial_drain + 620 (inline_internal.h:2557)
10 libdispatch.dylib 0x0000000193363c34 _dispatch_lane_invoke + 456 (queue.c:3862)
11 libdispatch.dylib 0x000000019336e4bc _dispatch_workloop_worker_thread + 764 (queue.c:6589)
12 libsystem_pthread.dylib 0x00000001df2d27a4 _pthread_wqthread + 276 (pthread.c:2437)
13 libsystem_pthread.dylib 0x00000001df2d974c start_wqthread + 8 (:-1)
Thread 17 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x00000001e2b66eb7 x2: 0x0000000000000002 x3: 0x00000001a2d8e1b0
x4: 0x00000000000062dc x5: 0x00000001012329c0 x6: 0x0000000000000142 x7: 0x0000000000000000
x8: 0x000000016facf0e0 x9: 0x0000000000000000 x10: 0x0000000297a6fa57 x11: 0x000f000280cf4a00
x12: 0x000000000000000a x13: 0x0000000280cf4a90 x14: 0x000000009f285800 x15: 0x00000001f5dfdee0
x16: 0x00000001a823473c x17: 0xe52c29819e292a34 x18: 0x0000000000000000 x19: 0x0000000197650b94
x20: 0x00000035312f3131 x21: 0x00000002802ee2e0 x22: 0x0000000197650b40 x23: 0x00000001f64c5848
x24: 0x0000000101210d70 x25: 0x000000016face650 x26: 0x00000002805ed140 x27: 0xa119cee65a67aed3
x28: 0xe500000000000000 fp: 0x000000016face740 lr: 0x0000000100cda868
sp: 0x000000016face650 pc: 0x0000000100cdaaa4 cpsr: 0x80000000
esr: 0xf2000001 Address size fault
I have submitted my App for review, and I am unable to replicate the crash that they are getting. The feedback says "Your app crashed intermittently on iPad running iOS 13.5.1 on WiFi when we were navigating around your app.
We have attached detailed crash logs to help troubleshoot this issue."
Here are the crash logs:
Date/Time: 2020-06-12 17:27:32.8720 -0700
Launch Time: 2020-06-12 16:25:42.0646 -0700
OS Version: iPhone OS 13.5.1 (17F80)
Release Type: User
Baseband Version: n/a
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000100a476f8
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [6054]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 WayPoint 0x0000000100a476f8 MapViewController.updateMap() + 63224 (MapViewController.swift:321)
1 WayPoint 0x0000000100a47cb4 #objc MapViewController.searchBar(_:textDidChange:) + 64692 (<compiler-generated>:0)
2 UIKitCore 0x00000001c1b91f30 0x1c1a24000 + 1498928
3 UIKitCore 0x00000001c245378c 0x1c1a24000 + 10680204
4 UIKitCore 0x00000001c1e63fc8 0x1c1a24000 + 4456392
5 UIKitCore 0x00000001c1e64320 0x1c1a24000 + 4457248
6 UIKitCore 0x00000001c2738534 0x1c1a24000 + 13714740
7 UIKitCore 0x00000001c271df94 0x1c1a24000 + 13606804
8 UIKitCore 0x00000001c274915c 0x1c1a24000 + 13783388
9 UIKitCore 0x00000001c274b7d0 0x1c1a24000 + 13793232
10 UIKitCore 0x00000001c274c2ac 0x1c1a24000 + 13796012
11 UIKitCore 0x00000001c272166c 0x1c1a24000 + 13620844
12 UIKitCore 0x00000001c273e594 0x1c1a24000 + 13739412
13 UIKitCore 0x00000001c1b9acc8 0x1c1a24000 + 1535176
14 UIKitCore 0x00000001c2277680 0x1c1a24000 + 8730240
15 UIKitCore 0x00000001c22719d4 0x1c1a24000 + 8706516
16 UIKitCore 0x00000001c2270600 0x1c1a24000 + 8701440
17 UIKitCore 0x00000001c22a0568 0x1c1a24000 + 8897896
18 UIKitCore 0x00000001c229ef9c 0x1c1a24000 + 8892316
19 Foundation 0x00000001be795f78 0x1be65f000 + 1273720
20 CoreFoundation 0x00000001be329c18 0x1be281000 + 691224
21 CoreFoundation 0x00000001be329b70 0x1be281000 + 691056
22 CoreFoundation 0x00000001be3292f8 0x1be281000 + 688888
23 CoreFoundation 0x00000001be324328 0x1be281000 + 668456
24 CoreFoundation 0x00000001be323ce8 0x1be281000 + 666856
25 GraphicsServices 0x00000001c846e38c 0x1c846b000 + 13196
26 UIKitCore 0x00000001c2452444 0x1c1a24000 + 10675268
27 WayPoint 0x0000000100a411d8 main + 37336 (ViewController.swift:14)
28 libdyld.dylib 0x00000001be1ab8f0 0x1be1aa000 + 6384
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x00000001be17f198 0x1be17b000 + 16792
1 libsystem_kernel.dylib 0x00000001be17e60c 0x1be17b000 + 13836
2 CoreFoundation 0x00000001be329468 0x1be281000 + 689256
3 CoreFoundation 0x00000001be32449c 0x1be281000 + 668828
4 CoreFoundation 0x00000001be323ce8 0x1be281000 + 666856
5 Foundation 0x00000001be66701c 0x1be65f000 + 32796
6 Foundation 0x00000001be666efc 0x1be65f000 + 32508
7 UIKitCore 0x00000001c24f55dc 0x1c1a24000 + 11343324
8 Foundation 0x00000001be795e20 0x1be65f000 + 1273376
9 libsystem_pthread.dylib 0x00000001be0c1d98 0x1be0b7000 + 44440
10 libsystem_pthread.dylib 0x00000001be0c574c 0x1be0b7000 + 59212
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000102089c00 x1: 0x00000001f809dc3c x2: 0x0000000000000000 x3: 0x00000001be08cd84
x4: 0x0000000282f92000 x5: 0x0000000000000010 x6: 0x000000000000005f x7: 0x0000000000000000
x8: 0x000000010148f000 x9: 0x00000001f809dc3c x10: 0x0000000102931600 x11: 0x007f000102931600
x12: 0x00000001029319c0 x13: 0x00000002095270c0 x14: 0x0000000000000000 x15: 0x000000000000004f
x16: 0x00000002095270c0 x17: 0x00000001be29fd14 x18: 0x0000000000000000 x19: 0x00000000000003c8
x20: 0x00000001019c7ca0 x21: 0x00000001fda87548 x22: 0x0000000102089c00 x23: 0x00000001fda87548
x24: 0x40000001fda87548 x25: 0x0000000000000358 x26: 0x00000001f809f105 x27: 0x0000000101adefb0
x28: 0x0000000280fc95f0 fp: 0x000000016f3c64a0 lr: 0x0000000100a47684
sp: 0x000000016f3c6460 pc: 0x0000000100a476f8 cpsr: 0x60000000
esr: 0xf2000001 Address size fault
Binary Images:
0x100a38000 - 0x10126ffff WayPoint arm64 <f1ced8645a553f72a9ab74ce2eef6f5a> /var/containers/Bundle/Application/08A1E8CF-27BC-48F7-9168-AEE9F1E80DE1/WayPoint.app/WayPoint
0x1015c8000 - 0x1015dbfff FBLPromises arm64 <2776fe10453430d2885b7e7a134a8194> /var/containers/Bundle/Application/08A1E8CF-27BC-48F7-9168-AEE9F1E80DE1/WayPoint.app/Frameworks/FBLPromises.framework/FBLPromises
0x101648000 - 0x101663fff GoogleUtilities arm64 <ac79608dd1a0396c8ae2ea36ab9a208b> /var/containers/Bundle/Application/08A1E8CF-27BC-48F7-9168-AEE9F1E80DE1/WayPoint.app/Frameworks/GoogleUtilities.framework/GoogleUtilities
0x101678000 - 0x101687fff PureLayout arm64 <30c5c49aa9b033c182690a26591a8a0c> /var/containers/Bundle/Application/08A1E8CF-27BC-48F7-9168-AEE9F1E80DE1/WayPoint.app/Frameworks/PureLayout.framework/PureLayout
0x101694000 - 0x10169ffff nanopb arm64 <cf0524b8df6e3443b29665991467bc84> /var/containers/Bundle/Application/08A1E8CF-27BC-48F7-9168-AEE9F1E80DE1/WayPoint.app/Frameworks/nanopb.framework/nanopb
0x10175c000 - 0x101767fff libobjc-trampolines.dylib arm64 <927690b4ce6e3dbb8d54d00bd46e211c> /usr/lib/libobjc-trampolines.dylib
0x101784000 - 0x1017e7fff dyld arm64 <c9d0dd090ebd3364b6b6d3baeb788dbf> /usr/lib/dyld
0x1bdf50000 - 0x1bdf66fff libsystem_trace.dylib arm64 <c70a923b37ad3f8a8e0873a3157620b1> /usr/lib/system/libsystem_trace.dylib
0x1bdf67000 - 0x1bdf98fff libxpc.dylib arm64 <d54676d1b91b309b8f35ed171eff1612> /usr/lib/system/libxpc.dylib
...
0x1f47f3000 - 0x1f482cfff CryptoTokenKit arm64 <372cbaac3f983cdaa76b4ef549ab6782> /System/Library/Frameworks/CryptoTokenKit.framework/CryptoTokenKit
0x1f482d000 - 0x1f4845fff ExposureNotification arm64 <8690d585e715374f81f32cb141ca5913> /System/Library/Frameworks/ExposureNotification.framework/ExposureNotification
0x1f506f000 - 0x1f508dfff AppSSO arm64 <eb1e0057fc123367a346cdce1045d087> /System/Library/PrivateFrameworks/AppSSO.framework/AppSSO
0x1f508e000 - 0x1f50a2fff AppSSOCore arm64 <f2c320f1a8bb334b80decfdad5091d02> /System/Library/PrivateFrameworks/AppSSOCore.framework/AppSSOCore
0x1f54ae000 - 0x1f54b8fff PointerUIServices arm64 <10ec5cd78b4232c798a290e3a51a4385> /System/Library/PrivateFrameworks/PointerUIServices.framework/PointerUIServices
0x1f54b9000 - 0x1f553dfff SafariSharedUI arm64 <44563ecd6ffc38dfb63fa4927ead6de4> /System/Library/PrivateFrameworks/SafariSharedUI.framework/SafariSharedUI
EOF
I figure it is a Memory issue in the SceneDelegate or in the way I push to different view controllers. Can anyone see anything wrong with these functions?
SceneDelegate function:
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
GMSPlacesClient.provideAPIKey("AIzaSyAJ97vEitxVOdTg9tcDCRIIqmLuN6KfN80")
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(frame: windowScene.coordinateSpace.bounds)
window?.windowScene = windowScene
let nav1 = UINavigationController()
let mainView = ViewController(nibName: nil, bundle: nil) //ViewController = Name of your controller
nav1.viewControllers = [mainView]
self.window!.rootViewController = nav1
window?.makeKeyAndVisible()
}
ViewController Navigation Functions
func buttonPressed() {
if(button.isEnabled) {
// On press - redirect to MapViewController and pass in the mean of latitude and longitude
var sumLat = 0.0
var sumLon = 0.0
for spots in spotList {
sumLat += spots.coordinate.latitude
sumLon += spots.coordinate.longitude
}
let vc = MapViewController()
vc.midLat = sumLat/Double(spotList.count)
vc.midLon = sumLon/Double(spotList.count)
self.navigationController?.pushViewController(vc, animated: true)
}
}
print(self.locations[indexPath.row])
print(self.spotList[indexPath.row])
let vc = DirectionsViewController()
vc.spot = self.spotList[indexPath.row]
self.navigationController?.pushViewController(vc, animated: true)
}
func updateMap() {
mapView.removeAnnotations(mapView.annotations)
mapView.addAnnotation(spot)
mapView.setCenter(spot.coordinate, animated: true)
}
Currently experiencing a problem where the app sometime crashes only in release mode. Any ideas on how to decode the IOS Crash log, i've attached a small section of the crash log below.
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000004111401c
VM Region Info: 0x4111401c is not in any region. Bytes before following region: 3209592804
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 00000001005fc000-0000000100600000 [ 16K] r-x/r-x SM=COW ...er.app/Runner
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [1113]
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libobjc.A.dylib 0x000000019c3c74ac object_isClass + 16 (objc-runtime-new.h:340)
1 Foundation 0x000000019ca551a8 KVO_IS_RETAINING_ALL_OBSERVERS_OF_THIS_OBJECT_IF_IT_CRASHES_AN_OBSERVER_WAS_OVERRELEASED_OR_SMASHED + 44 (NSKeyValueObserving.m:1120)
2 Foundation 0x000000019ca52cd0 NSKeyValueWillChangeWithPerThreadPendingNotifications + 272 (NSKeyValueObserving.m:1151)
3 AVFoundation 0x00000001a6896348 -[AVPlayerItem _informObserversAboutAvailabilityOfTracks] + 56 (AVPlayerItem.m:3722)
4 AVFoundation 0x00000001a6899374 -[AVPlayerItem _respondToBecomingReadyForBasicInspectionWithDuration:] + 296 (AVPlayerItem.m:4358)
5 AVFoundation 0x00000001a68ae580 __avplayeritem_fpItemNotificationCallback_block_invoke + 2080 (AVPlayerItem.m:8874)
6 libdispatch.dylib 0x000000019c36b9a8 _dispatch_call_block_and_release + 24 (init.c:1408)
7 libdispatch.dylib 0x000000019c36c524 _dispatch_client_callout + 16 (object.m:495)
8 libdispatch.dylib 0x000000019c31e5b4 _dispatch_main_queue_callback_4CF$VARIANT$mp + 904 (inline_internal.h:2484)
9 CoreFoundation 0x000000019c624748 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1749)
10 CoreFoundation 0x000000019c61f61c __CFRunLoopRun + 1724 (CFRunLoop.c:3069)
11 CoreFoundation 0x000000019c61ec34 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3192)
12 GraphicsServices 0x00000001a676838c GSEventRunModal + 160 (GSEvent.c:2246)
13 UIKitCore 0x00000001a075122c UIApplicationMain + 1932 (UIApplication.m:4820)
14 Runner 0x0000000100603380 main + 88 (main.m:7)
15 libdyld.dylib 0x000000019c4a6800 start + 4
....
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x00000002809c1740 x1: 0x000000016f802310 x2: 0xfffffffffffffff0 x3: 0x000000016f802310
x4: 0x0000000000000008 x5: 0x0000000000000010 x6: 0x0000000000000000 x7: 0x00000000000002d0
x8: 0x0000000041114000 x9: 0x00000002809c2df0 x10: 0x00000002809cd4a0 x11: 0x00000002809cf780
x12: 0x00000002809cd4a0 x13: 0x00000002809cf780 x14: 0x00000002809cfb40 x15: 0x00000002809ce4c0
x16: 0x000000019c3ae8f0 x17: 0x000000019c58f928 x18: 0x0000000000000000 x19: 0x000000016f802310
x20: 0x0000000000000008 x21: 0x00000002809c1740 x22: 0x000000028055e940 x23: 0x00000002807350c0
x24: 0x0000000000000008 x25: 0x0000000000000000 x26: 0x0000000000000008 x27: 0x000000016f802310
x28: 0x0000000000000000 fp: 0x000000016f802300 lr: 0x000000019ca551a8
sp: 0x000000016f8022e0 pc: 0x000000019c3c74ac cpsr: 0x20000000
esr: 0x92000005 (Data Abort) byte read Translation fault
I have an App that doesn't use internet connexion, but apple send me a message where says that I have a crash in my first view controller for problem with the IPv6. Apple send me a report for the crash but i'm not able to learn it, i need your help. Or maybe if u had the same problem with this conexión(IPv6) and you were find the error.
pleas help me!!
Heres one file from the crash, that apple send me but i don't understand, pleas help me to know what they say.
{"app_name":"idWallet","timestamp":"2017-03-03 19:35:40.34 -0800","app_version":"1.1","slice_uuid":"7670eb49-b5ca-3334-b398-6cdb6982530e","adam_id":0,"build_version":"3","bundleID":"fernandorey.idWallet","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 10.2.1 (14D27)","incident_id":"195A9217-8AF8-47BA-A8C2-4FC808AF587F","name":"idWallet"}
Incident Identifier: 195A9217-8AF8-47BA-A8C2-4FC808AF587F
CrashReporter Key: 0ec021c8a7f1efb30dfc7eceb07eaa3fd8f82c46
Hardware Model: xxx
Process: idWallet [8539]
Path: /private/var/containers/Bundle/Application/E974F007-2A8F-4724-A766-6E542BCDD035/idWallet.app/idWallet
Identifier: fernandorey.idWallet
Version: 3 (1.1)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: fernandorey.idWallet [4123]
Date/Time: 2017-03-03 19:35:40.1752 -0800
Launch Time: 2017-03-03 19:26:24.4423 -0800
OS Version: iPhone OS 10.2.1 (14D27)
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
Filtered syslog:
None found
Last Exception Backtrace:
(0x18e1a91b8 0x18cbe055c 0x1904c0b90 0x10005f17c 0x10005e8c8 0x194057924 0x1940574ec 0x194a19cf0 0x1943a24ac 0x1943c3a54 0x1943c6920 0x19414a154 0x1943ca0e4 0x194706808 0x194814854 0x19481465c 0x1943ba9b8 0x100067b98 0x100068804 0x10006841c 0x100068218 0x19408cd30 0x19408ccb0 0x194077128 0x19408c59c 0x19408c0c4 0x194087328 0x194057da0 0x19484175c 0x19483b130 0x18e156b5c 0x18e1564a4 0x18e1540a4 0x18e0822b8 0x18fb36198 0x1940c27fc 0x1940bd534 0x10005d3b4 0x18d0655b8)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018d177014 0x18d158000 + 126996
1 libsystem_pthread.dylib 0x000000018d23f450 0x18d23a000 + 21584
2 libsystem_c.dylib 0x000000018d0eb400 0x18d088000 + 406528
3 libc++abi.dylib 0x000000018cbb52d4 0x18cbb4000 + 4820
4 libc++abi.dylib 0x000000018cbd2cc0 0x18cbb4000 + 126144
5 libobjc.A.dylib 0x000000018cbe0844 0x18cbd8000 + 34884
6 libc++abi.dylib 0x000000018cbcf66c 0x18cbb4000 + 112236
7 libc++abi.dylib 0x000000018cbcf234 0x18cbb4000 + 111156
8 libobjc.A.dylib 0x000000018cbe071c 0x18cbd8000 + 34588
9 CoreFoundation 0x000000018e08232c 0x18e079000 + 37676
10 GraphicsServices 0x000000018fb36198 0x18fb2a000 + 49560
11 UIKit 0x00000001940c27fc 0x194048000 + 501756
12 UIKit 0x00000001940bd534 0x194048000 + 480564
13 idWallet 0x000000010005d3b4 0x100054000 + 37812
14 libdyld.dylib 0x000000018d0655b8 0x18d061000 + 17848
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x000000018d159188 0x18d158000 + 4488
1 libsystem_kernel.dylib 0x000000018d158ff8 0x18d158000 + 4088
2 CoreFoundation 0x000000018e1565d0 0x18e079000 + 906704
3 CoreFoundation 0x000000018e1541ec 0x18e079000 + 897516
4 CoreFoundation 0x000000018e0822b8 0x18e079000 + 37560
5 Foundation 0x000000018ebbf26c 0x18ebb3000 + 49772
6 Foundation 0x000000018ebdfdd0 0x18ebb3000 + 183760
7 UIKit 0x0000000194a36c38 0x194048000 + 10415160
8 Foundation 0x000000018ecbce68 0x18ebb3000 + 1089128
9 libsystem_pthread.dylib 0x000000018d23d850 0x18d23a000 + 14416
10 libsystem_pthread.dylib 0x000000018d23d760 0x18d23a000 + 14176
11 libsystem_pthread.dylib 0x000000018d23ad94 0x18d23a000 + 3476
Thread 2:
0 libsystem_pthread.dylib 0x000000018d23ad88 0x18d23a000 + 3464
Thread 3:
0 libsystem_pthread.dylib 0x000000018d23ad88 0x18d23a000 + 3464
Thread 4:
0 libsystem_pthread.dylib 0x000000018d23ad88 0x18d23a000 + 3464
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001780e8437
x4: 0x000000018cbd3bc3 x5: 0x000000016fdab520 x6: 0x000000000000006e x7: 0xffffffffffffffec
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x000000000000000b x11: 0x0000000000000010
x12: 0x000000018d102772 x13: 0x0000000000000000 x14: 0x0000040000000400 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001b3219c40 x21: 0x000000016fdab520 x22: 0x00000001b3220bb8 x23: 0x0000000000000001
x24: 0x0000000178018be0 x25: 0x0000000000000000 x26: 0x0000000000000001 x27: 0x0000000000000000
x28: 0x000000016fdabbc0 fp: 0x000000016fdab480 lr: 0x000000018d23f450
sp: 0x000000016fdab460 pc: 0x000000018d177014 cpsr: 0x00000000
.
.
.
i can't add all the message for question of limit characters.
As #dan mentioned, try to symbolicate your crash report.
The following link will help you.
https://developer.apple.com/library/content/technotes/tn2151/_index.html#//apple_ref/doc/uid/DTS40008184-CH1-SYMBOLICATEWITHXCODE
I have some trouble to review my App for the App Store. Thats not my first App but I just cant get the Error.
The App works on Real Device (iPhone 5S) without any exceptions. I don't have an iPad, but on Simulator it works perfectly.
STEPS:
1. App Launches with Launcher Image
2. App SHOULD create / open SQLite3 Database and populate a UITableView from it. As i said - works perfectly on iPhone but crashes directly after Launch-Screens on iPad.
EDIT:::
- I found at the Targets Position the following:
"Patientenratgeber"
"PatientenratgeberTests"
If I build for the first one - no errors
If I build the second - error
Do I need this second Build Target? How can i delete it without causing new problems?
Some ideas why this happens?
This is my Crash-Report:
{"bundleID":"Patientenratgeber","app_name":"Patientenratgeber","bug_type":"109","name":"Patientenratgeber","os_version":"iPhone OS 7.1 (11D167)","version":"1.0 (1.0)"} Incident Identifier: D72511CB-A5EA-4C6A-A535-DD1FB46BC2E5 CrashReporter Key: 4f2c8fa05c83e9d455c232dbd2fa63e852283d0e Hardware Model: xxx Process: Patientenratgeber [1324] Path: /var/mobile/Applications/DF803017-609F-498A-8C5C-56FB17B4F581/Patientenratgeber.app/Patientenratgeber Identifier: Patientenratgeber Version: 1.0 (1.0) Code Type: ARM-64 (Native) Parent Process: launchd [1]
Date/Time: 2014-05-01 10:53:37.785 -0700 OS Version: iOS 7.1 (11D167) Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000005 Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libobjc.A.dylib 0x000000018ee0c0b0 objc_retain + 16 1 UIKit 0x00000001853e466c
-[UIViewController loadViewIfRequired] + 572 2 UIKit 0x00000001853e43f0 -[UIViewController view] + 28 3 UIKit 0x0000000185465af0 -[UIClientRotationContext initWithClient:toOrientation:duration:andWindow:] + 436 4 UIKit 0x0000000185463f48 -[UIWindow
_setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:]
+ 1216 5 UIKit 0x0000000185463a00 -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 124 6 UIKit 0x00000001853e6450 -[UIWindow
_updateToInterfaceOrientation:duration:force:] + 400 7 UIKit 0x000000018546302c -[UIViewController
_tryBecomeRootViewControllerInWindow:] + 188 8 UIKit 0x00000001853eb95c -[UIWindow addRootViewControllerViewIfPossible] + 508 9 UIKit 0x00000001853e8d74 -[UIWindow
_setHidden:forced:] + 288 10 UIKit 0x000000018545b838 -[UIWindow makeKeyAndVisible] + 64 11 UIKit 0x0000000185458144 -[UIApplication
_callInitializationDelegatesForURL:payload:suspended:] + 2136 12 UIKit 0x00000001854519e8 -[UIApplication
_runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 768 13 UIKit 0x00000001853e58c8 -[UIApplication handleEvent:withNewEvent:] + 3312 14 UIKit 0x00000001853e4acc -[UIApplication sendEvent:] + 100 15 UIKit 0x0000000185451040 _UIApplicationHandleEvent + 668 16 GraphicsServices 0x0000000187fb7500 _PurpleEventCallback
+ 672 17 GraphicsServices 0x0000000187fb702c PurpleEventCallback + 44 18 CoreFoundation 0x00000001823da88c
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 19 CoreFoundation 0x00000001823da7ec __CFRunLoopDoSource1
+ 440 20 CoreFoundation 0x00000001823d8a10 __CFRunLoopRun + 1616 21 CoreFoundation 0x00000001823196cc CFRunLoopRunSpecific + 448 22 UIKit 0x00000001854501c4 -[UIApplication _run] + 780 23 UIKit 0x000000018544afd8 UIApplicationMain + 1152 24 Patientenratgeber 0x000000010005d400 main (main.m:16) 25 libdyld.dylib 0x000000018f3e7a9c start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager Thread 1: 0 libsystem_kernel.dylib 0x000000018f4c9aa8 kevent64 + 8 1 libdispatch.dylib 0x000000018f3cd998
_dispatch_mgr_thread + 48
Thread 2: 0 libsystem_kernel.dylib 0x000000018f4e2e74
__workq_kernreturn + 8 1 libsystem_pthread.dylib 0x000000018f561548 start_wqthread + 0
Thread 3: 0 libsystem_kernel.dylib 0x000000018f4e2e74
__workq_kernreturn + 8 1 libsystem_pthread.dylib 0x000000018f561548 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000005 x1: 0x0000000000000000 x2: 0x00000000ffffffff x3: 0x0000000000000001
x4: 0x000000018f15af34 x5: 0x0000000000000020 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000000 x9: 0x2b00950554ab6cf2 x10: 0x000000016fda89e2 x11: 0x0000000192b24c3f x12: 0x0000000000000018 x13: 0x0000000000060000 x14: 0x0000000000000000 x15: 0x0000000000000000 x16: 0x000000018ee0d8cc x17: 0x0000000100064018 x18: 0x0000000000000000 x19: 0x000000015d510c50 x20: 0x0000000170248760 x21: 0x0000000185ab3f08 x22: 0x0000000185adb64c x23: 0x0000000185ad2516 x24: 0x0000000000000000 x25: 0x0000000178062240 x26: 0x000000019232e098 x27: 0x0000000000000001 x28: 0x0000000000000003 fp: 0x000000016fda8b70 lr: 0x000000010005d56c
sp: 0x000000016fda8b50 pc: 0x000000018ee0c0b0 cpsr: 0x00000000
Binary Images:
Try to debug your code by enabling NSZombieEnabled flag.
Take a look at the images below and follow the steps.
You can add Exception Break point.. From there you will get idea where app crashes:
Here are steps for that: