[英]Application crash on iOS7 but runs in iOS8
which one is best method to find out the solution of this type of crash or other suggestion to understand and solve the crash? 哪种方法是找出此类崩溃的解决方案的最佳方法,或者是了解和解决崩溃的其他建议?
app crash on iphone 4s(iOS7),iphone5(iOS7), and iphone5s(iOS7) devices and work fine in all other devices(iOS8) as well iphone 4s(iOS7),iphone5(iOS7)和iphone5s(iOS7)设备上的应用程序崩溃,并且在所有其他设备(iOS8)上也能正常运行
get EXC_BAD_ACCESS error in main fucntion. 在主要功能中获得EXC_BAD_ACCESS错误。
on iphone4s -> exc_BAD_Access(Code=1,address=0xe000000c) 在iPhone4s-> exc_BAD_Access(Code = 1,address = 0xe000000c)
on iphone5 -> EXC_BAD_ACCESS(code=1,address=0x8955f985) 在iPhone5上-> EXC_BAD_ACCESS(代码= 1,地址= 0x8955f985)
on iphone5s -> exc_bad_access(code=exc_i386_gpflt) 在iPhone5s上-> exc_bad_access(code = exc_i386_gpflt)
i am not able to find out crash point, crash report is given below 我无法找到崩溃点,崩溃报告如下
using zombies get EXC_BREAKPOINT(code=EXC_I386_BPT, subcode0x0) on thread1 0 _ _ forwarding _ _ 使用僵尸在线程1 0 _ _转发_ _上获取EXC_BREAKPOINT(code = EXC_I386_BPT,subcode0x0)
2015-09-07 18:20:36.412 Application[2248:607] *** -[ViewController retain]: message sent to deallocated instance 0x7e6a2a30 2015-09-07 18:20:36.412 Application [2248:607] ***-[ViewController保留]:消息发送到已释放实例0x7e6a2a30
Incident Identifier: A1583491-E436-49A4-967A-6DB2BE55ED9B
CrashReporter Key: d0fc48d1d5f4d462334236dabac50669f2b9d217
Hardware Model: iPhone3,1
Process: Application [1691]
Path: (null)
Identifier: com.XXX.XX
Version: 1.2 (1.0)
Code Type: ARM
Parent Process: launchd [1]
Date/Time: 2015-09-03 17:36:38.000 +0530
OS Version: iPhone OS 7.1.2 (11D257)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xb000000c
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x3af6a626 0x3af5d000 + 54822 (objc_msgSend + 6)
1 UIKit 0x3307b5b0 0x32fc2000 + 759216 (<redacted> + 1324)
2 UIKit 0x3307adf8 0x32fc2000 + 757240 (<redacted> + 568)
3 UIKit 0x3307ab68 0x32fc2000 + 756584 (<redacted> + 40)
4 UIKit 0x3307ab00 0x32fc2000 + 756480 (<redacted> + 180)
5 UIKit 0x03049ab0 0x2ff8000 + 334512 (-[UILayoutContainerViewAccessibility(SafeCategory) layoutSubviews] + 40)
6 UIKit 0x32fccd58 0x32fc2000 + 44376 (<redacted> + 380)
7 QuartzCore 0x32c4a628 0x32c3e000 + 50728 (<redacted> + 140)
.
.
.
Thread 1:
0 libsystem_kernel.dylib 0x3b510808 0x3b510000 + 2056 (kevent64 + 24)
1 libdispatch.dylib 0x3b44bf70 0x3b447000 + 20336 (<redacted> + 36)
Thread 2:
0 libsystem_kernel.dylib 0x3b510a58 0x3b510000 + 2648 (mach_msg_trap + 20)
1 libsystem_kernel.dylib 0x3b513ef8 0x3b510000 + 16120 (thread_suspend + 44)
2 Application 0x0027a3f0 0x7b000 + 2094064 (ksmachexc_i_handleExceptions + 128)
3 libsystem_pthread.dylib 0x3b58c918 0x3b58a000 + 10520 (<redacted> + 140)
4 libsystem_pthread.dylib 0x3b58c888 0x3b58a000 + 10376 (_pthread_start + 100)
Thread 3:
Thread 4:
0 libsystem_kernel.dylib 0x3b510a58 0x3b510000 + 2648 (mach_msg_trap + 20)
1 CoreFoundation 0x3077a848 0x306dc000 + 649288
Thread 5:
0 libsystem_kernel.dylib 0x3b523434 0x3b510000 + 78900 (select$DARWIN_EXTSN + 20)
1 libsystem_pthread.dylib 0x3b58c918 0x3b58a000 + 10520 (<redacted> + 140)
2 libsystem_pthread.dylib 0x3b58c888 0x3b58a000 + 10376 (_pthread_start + 100)
Thread 6:
0 libsystem_kernel.dylib 0x3b510a58 0x3b510000 + 2648 (mach_msg_trap + 20)
1 CoreFoundation 0x3077a848 0x306dc000 + 649288 (<redacted> + 152)
2 CoreFoundation 0x30778f70 0x306dc000 + 642928 (<redacted> + 784)
Thread 7:
0 libsystem_kernel.dylib 0x3b510a58 0x3b510000 + 2648 (mach_msg_trap + 20)
1 CoreFoundation 0x3077a848 0x306dc000 + 649288 (<redacted> + 152)
2 CoreFoundation 0x30778f70 0x306dc000 + 642928 (<redacted> + 784)
3 CoreFoundation 0x306e3eb8 0x306dc000 + 32440 (CFRunLoopRunSpecific + 516)
Thread 8:
0 libsystem_kernel.dylib 0x3b510a58 0x3b510000 + 2648 (mach_msg_trap + 20)
1 CoreFoundation 0x3077a848 0x306dc000 + 649288 (<redacted> + 152)
Thread 9:
0 libsystem_kernel.dylib 0x3b523c70 0x3b510000 + 81008 (__workq_kernreturn + 8)
Thread 10:
0 libsystem_kernel.dylib 0x3b523c70 0x3b510000 + 81008 (__workq_kernreturn + 8)
Thread 11:
0 libsystem_kernel.dylib 0x3b523c70 0x3b510000 + 81008 (__workq_kernreturn + 8)
Thread 12:
0 libsystem_kernel.dylib 0x3b523c70 0x3b510000 + 81008 (__workq_kernreturn + 8)
Thread 0 crashed with ARM Thread State:
r0: 0x187474c0 r1: 0x335f927d r2: 0x3b73cf78 r3: 0x00000003
r4: 0x1a80c750 r5: 0x33624ba7 r6: 0x3bbc2b00 r7: 0x2 7d86a34
r8: 0x187474c0 r9: 0xb0000000 r10: 0x180a06a0 r11: 0x180a06a0
ip: 0x3b714740 sp: 0x27d86a04 lr: 0x306eb675 pc: 0x3af6a626
cpsr: 0x70000030
Binary Images:
0x7b000 - 0x7c6fff Application armv7 <07bdf31176343598ba6467dab231106a> /var/mobile/Applications/80D6634E-C9E7-4B34-B42D-6E208E4D878A/Application.app/Application
0x2fd67000 - 0x2fdcefff AddressBook armv7 <c742d15daada36238f237d74bcfb7f0e>......
Extra Information:
Stack Dump (0x27d869dc-0x27d86a54):
006C4817986C481750C7801A00000000000000002020401050C7801AA74B6233346AD82775B66E30A0060A18C07474184069D41650C7801A0100000021B36E30006C4817A0060A18A0060A1850C7801AA74B623380B3E0164C6BD827B3B50733000000000000A0430000F04300000000000080420000A043
Notable Addresses:
{
"r1": {
"address": 861901437,
"type": "string",
"value": "retain"
},
"r10": {
"address": 403310240,
"class": "UINavigationController",
"ivars": {
"_bottomInsetDelta": 0,
"_containerView": {
"address": 403373392,
"class": "UILayoutContainerView",
"ivars": {
"_cornerRadius": 0,
"_delegate": {
"address": 403310240,
"class": "UINavigationController",
"type": "objc_object"
},
"_shadowView": {
"address": 0,
"type": "null_pointer"
},
"_shadowViewsInstalled": 0,
"_usesInnerShadow": 0,
"_usesRoundedCorners": 0
},
"type": "objc_object"
},
"_delegate": {
"address": 0,
"type": "null_pointer"
},
"_disappearingViewController": {
"address": 0,
"type": "null_pointer"
},
"_navigationBar": {
"address": 403375888,
"class": "UINavigationBar",
"type": "objc_object"
},
"_navigationBarClass": {
"address": 1002093260,
"type": "unknown"
},
"_navigationTransitionView": {
"address": 403378096,
"class": "UINavigationTransitionView",
"type": "objc_object"
},
"_savedNavBarStyleBeforeSheet": 0,
"_statusBarHeightForHideShow": 0,
"_toolbar": {
"address": 0,
"type": "null_pointer"
}
},
"type": "objc_object"
},
"r11": {
"address": 403310240,
"class": "UINavigationController",
"ivars": {
"_bottomInsetDelta": 0,
"_containerView": {
"address": 403373392,
"class": "UILayoutContainerView",
"ivars": {
"_cornerRadius": 0,
"_delegate": {
"address": 403310240,
"class": "UINavigationController",
"type": "objc_object"
},
"_shadowView": {
"address": 0,
"type": "null_pointer"
},
"_shadowViewsInstalled": 0,
"_usesInnerShadow": 0,
"_usesRoundedCorners": 0
},
"type": "objc_object"
},
"_delegate": {
"address": 0,
"type": "null_pointer"
},
"_disappearingViewController": {
"address": 0,
"type": "null_pointer"
},
"_navigationBar": {
"address": 403375888,
"class": "UINavigationBar",
"type": "objc_object"
},
"_navigationBarClass": {
"address": 1002093260,
"type": "unknown"
},
"_navigationTransitionView": {
"address": 403378096,
"class": "UINavigationTransitionView",
"type": "objc_object"
},
"_savedNavBarStyleBeforeSheet": 0,
"_statusBarHeightForHideShow": 0,
"_toolbar": {
"address": 0,
"type": "null_pointer"
}
},
"type": "objc_object"
},
"r2": {
"address": 997445496,
"class": "__NSCFType",
"ivars": {},
"type": "objc_object"
},
"r4": {
"address": 444647248,
"class": "__NSDictionaryM",
"ivars": {
"_mutations": 2,
"_size": 3
},
"type": "objc_object"
},
"r5": {
"address": 862079911,
"type": "string",
"value": "navigationController:willShowViewController:animated:"
},
"r6": {
"address": 1002187520,
"class": "__NSCFConstantString",
"type": "objc_object",
"value": "UINavigationControllerLastVisibleViewController"
},
"stack@0x27d869dc": {
"address": 390622208,
"class": "AddEditInviteVC",
"ivars": {
"button": {
"address": 0,
"type": "null_pointer"
},
"eventStore": {
"address": 384778464,
"class": "EKEventStore",
"ivars": {
"_database": {
"address": 384779280,
"class": "EKDaemonConnection",
"type": "objc_object"
},
"_defaultAllDayAlarmOffset": {
"address": 0,
"type": "null_pointer"
},
"_defaultCalendarForNewEvents": {
"address": 410043040,
"class": "EKCalendar",
"type": "objc_object"
},
"_defaultCalendarForNewReminders": {
"address": 0,
"type": "null_pointer"
},
"_defaultTimedAlarmOffset": {
"address": 0,
"type": "null_pointer"
},
"_deletedObjects": {
"address": 0,
"type": "null_pointer"
},
"_insertedObjects": {
"address": 410000880,
"class": "__NSSetM",
"type": "objc_object"
},
"_publicRegisteredObjects": {
"address": 0,
"type": "null_pointer"
},
"_registeredObjects": {
"address": 410453024,
"class": "__NSDictionaryM",
"type": "objc_object"
},
"_updatedObjects": {
"address": 0,
"type": "null_pointer"
}
},
"type": "objc_object"
},
"isEventSent": 0,
"labelEventName": {
"address": 445219808,
"class": "UILabel",
"type": "objc_object"
},
"labelInvite": {
"address": 445011664,
"class": "UILabel",
"type": "objc_object"
},
"labelVenue": {
"address": 410924128,
"class": "UILabel",
"type": "objc_object"
},
"obj": {
"address": 0,
"type": "null_pointer"
},
"objDbmanager": {
"address": 384062048,
"class": "DatabaseManager",
"type": "objc_object"
},
"questionMarkClick": 1,
"scrollView": {
"address": 410316928,
"class": "UIScrollView",
"type": "objc_object"
}
},
"type": "objc_object"
},
"stack@0x27d869e4": {
"address": 444647248,
"class": "__NSDictionaryM",
"ivars": {
"_mutations": 2,
"_size": 3
},
"type": "objc_object"
},
"stack@0x27d869f4": {
"address": 444647248,
"class": "__NSDictionaryM",
"ivars": {
"_mutations": 2,
"_size": 3
},
"type": "objc_object"
},
"stack@0x27d869f8": {
"address": 862079911,
"type": "string",
"value": "navigationController:willShowViewController:animated:"
},
"stack@0x27d86a04": {
"address": 403310240,
"class": "UINavigationController",
"ivars": {
"_bottomInsetDelta": 0,
"_containerView": {
"address": 403373392,
"class": "UILayoutContainerView",
"ivars": {
"_cornerRadius": 0,
"_delegate": {
"address": 403310240,
"class": "UINavigationController",
"type": "objc_object"
},
"_shadowView": {
"address": 0,
"type": "null_pointer"
},
"_shadowViewsInstalled": 0,
"_usesInnerShadow": 0,
"_usesRoundedCorners": 0
},
"type": "objc_object"
},
"_delegate": {
"address": 0,
"type": "null_pointer"
},
"_disappearingViewController": {
"address": 0,
"type": "null_pointer"
},
"_navigationBar": {
"address": 403375888,
"class": "UINavigationBar",
"type": "objc_object"
},
"_navigationBarClass": {
"address": 1002093260,
"type": "unknown"
},
"_navigationTransitionView": {
"address": 403378096,
"class": "UINavigationTransitionView",
"type": "objc_object"
},
"_savedNavBarStyleBeforeSheet": 0,
"_statusBarHeightForHideShow": 0,
"_toolbar": {
"address": 0,
"type": "null_pointer"
}
},
"type": "objc_object"
},
"stack@0x27d86a0c": {
"address": 383019328,
"class": "__NSPlaceholderDictionary",
"ivars": {},
"type": "objc_object"
},
"stack@0x27d86a10": {
"address": 444647248,
"class": "__NSDictionaryM",
"ivars": {
"_mutations": 2,
"_size": 3
},
"type": "objc_object"
},
"stack@0x27d86a1c": {
"address": 390622208,
"class": "AddEditInviteVC",
"ivars": {
"button": {
"address": 0,
"type": "null_pointer"
},
"eventStore": {
"address": 384778464,
"class": "EKEventStore",
"ivars": {
"_database": {
"address": 384779280,
"class": "EKDaemonConnection",
"type": "objc_object"
},
"_defaultAllDayAlarmOffset": {
"address": 0,
"type": "null_pointer"
},
"_defaultCalendarForNewEvents": {
"address": 410043040,
"class": "EKCalendar",
"type": "objc_object"
},
"_defaultCalendarForNewReminders": {
"address": 0,
"type": "null_pointer"
},
"_defaultTimedAlarmOffset": {
"address": 0,
"type": "null_pointer"
},
"_deletedObjects": {
"address": 0,
"type": "null_pointer"
},
"_insertedObjects": {
"address": 410000880,
"class": "__NSSetM",
"type": "objc_object"
},
"_publicRegisteredObjects": {
"address": 0,
"type": "null_pointer"
},
"_registeredObjects": {
"address": 410453024,
"class": "__NSDictionaryM",
"type": "objc_object"
},
"_updatedObjects": {
"address": 0,
"type": "null_pointer"
}
},
"type": "objc_object"
},
"isEventSent": 0,
"labelEventName": {
"address": 445219808,
"class": "UILabel",
"type": "objc_object"
},
"labelInvite": {
"address": 445011664,
"class": "UILabel",
"type": "objc_object"
},
"labelVenue": {
"address": 410924128,
"class": "UILabel",
"type": "objc_object"
},
"obj": {
"address": 0,
"type": "null_pointer"
},
"objDbmanager": {
"address": 384062048,
"class": "DatabaseManager",
"type": "objc_object"
},
"questionMarkClick": 1,
"scrollView": {
"address": 410316928,
"class": "UIScrollView",
"type": "objc_object"
}
},
"type": "objc_object"
},
"stack@0x27d86a20": {
"address": 403310240,
"class": "UINavigationController",
"ivars": {
"_bottomInsetDelta": 0,
"_containerView": {
"address": 403373392,
"class": "UILayoutContainerView",
"ivars": {
"_cornerRadius": 0,
"_delegate": {
"address": 403310240,
"class": "UINavigationController",
"type": "objc_object"
},
"_shadowView": {
"address": 0,
"type": "null_pointer"
},
"_shadowViewsInstalled": 0,
"_usesInnerShadow": 0,
"_usesRoundedCorners": 0
},
"type": "objc_object"
},
"_delegate": {
"address": 0,
"type": "null_pointer"
},
"_disappearingViewController": {
"address": 0,
"type": "null_pointer"
},
"_navigationBar": {
"address": 403375888,
"class": "UINavigationBar",
"type": "objc_object"
},
"_navigationBarClass": {
"address": 1002093260,
"type": "unknown"
},
"_navigationTransitionView": {
"address": 403378096,
"class": "UINavigationTransitionView",
"type": "objc_object"
},
"_savedNavBarStyleBeforeSheet": 0,
"_statusBarHeightForHideShow": 0,
"_toolbar": {
"address": 0,
"type": "null_pointer"
}
},
"type": "objc_object"
},
"stack@0x27d86a24": {
"address": 403310240,
"class": "UINavigationController",
"ivars": {
"_bottomInsetDelta": 0,
"_containerView": {
"address": 403373392,
"class": "UILayoutContainerView",
"ivars": {
"_cornerRadius": 0,
"_delegate": {
"address": 403310240,
"class": "UINavigationController",
"type": "objc_object"
},
"_shadowView": {
"address": 0,
"type": "null_pointer"
},
"_shadowViewsInstalled": 0,
"_usesInnerShadow": 0,
"_usesRoundedCorners": 0
},
"type": "objc_object"
},
"_delegate": {
"address": 0,
"type": "null_pointer"
},
"_disappearingViewController": {
"address": 0,
"type": "null_pointer"
},
"_navigationBar": {
"address": 403375888,
"class": "UINavigationBar",
"type": "objc_object"
},
"_navigationBarClass": {
"address": 1002093260,
"type": "unknown"
},
"_navigationTransitionView": {
"address": 403378096,
"class": "UINavigationTransitionView",
"type": "objc_object"
},
"_savedNavBarStyleBeforeSheet": 0,
"_statusBarHeightForHideShow": 0,
"_toolbar": {
"address": 0,
"type": "null_pointer"
}
},
"type": "objc_object"
},
"stack@0x27d86a28": {
"address": 444647248,
"class": "__NSDictionaryM",
"ivars": {
"_mutations": 2,
"_size": 3
},
"type": "objc_object"
},
"stack@0x27d86a2c": {
"address": 862079911,
"type": "string",
"value": "navigationController:willShowViewController:animated:"
},
"stack@0x27d86a30": {
"address": 383824768,
"class": "UIViewControllerWrapperView",
"ivars": {
"_tightWrappingDisabled": 1
},
"type": "objc_object"
}
}
Application Stats:
{
"active_time_since_last_crash": 267.14,
"active_time_since_launch": 267.14,
"application_active": true,
"application_in_foreground": true,
"background_time_since_last_crash": 44.8144,
"background_time_since_launch": 44.8144,
"launches_since_last_crash": 1,
"sessions_since_last_crash": 3,
"sessions_since_launch": 3
}
CrashDoctor Diagnosis: Attempted to dereference garbage pointer 0xb000000c.
can anybody suggests me to solve this type of crash or way to detect the problem or crash point where app get crash 有人可以建议我解决这种类型的崩溃或检测应用崩溃的问题或崩溃点的方法吗
Seems like issue with memory management and maybe with (accessibilityUILayoutContainerViewAccessibility in log). 似乎与内存管理有关,也可能与(日志中的accessibilityUILayoutContainerViewAccessibility)有关。 It can be possible to detect unexpected deallocation of MMMFriendListVC by adding breakpoint to method
通过向方法添加断点,可以检测MMMFriendListVC的意外释放。
- (void)dealloc{}
in MMMFriendListVC. 在MMMFriendListVC中。 If you are using ARC it is still possible to use this method with just single NSLog inside.
如果您使用的是ARC,则仍然可以仅使用一个NSLog来使用此方法。 With ARC, make sure to avoid storing NSObject subclasses in properties of type
assign
because they won't be nullified after deallocation - making possible calling deallocated variable. 使用ARC,请确保避免将NSObject子类存储在类型为
assign
属性中,因为在释放之后它们不会被清空-可以调用释放的变量。 Without ARC make sure to set pointer as nil after releasing it. 如果没有ARC,请确保在释放指针后将其设置为nil。
If Voice Over was active at the moment of crash it can explain difference between iOS 7 and iOS 8, because VO is having surprising differences in implementation on different iOS version. 如果Voice Over在崩溃时处于活动状态,则可以解释iOS 7和iOS 8之间的差异,因为VO在不同iOS版本上的实现存在令人惊讶的差异。 Sometimes it can be necessary to store retained pointer to view controller a bit longer than expected (for example in NSDictionary for at least some more seconds) to make sure that object won't get called.
有时可能有必要将保留的指针存储到视图控制器中比预期的时间长一点(例如,在NSDictionary中至少保留几秒钟),以确保不会调用该对象。 Maybe in iOS 7 view controller was stored by system as delegate represented by
assigned
pointer... It is also possible that iOS 7 is a bit faster with deallocating variable with zero retains, and that also would explain observed difference in behaviour. 也许在iOS 7中,视图控制器是由系统存储为由
assigned
指针表示的委托...。也有可能是iOS 7的速度更快,在保留零的情况下释放变量,这也可以解释观察到的行为差异。
For this moment I suppose one of this possibilities is cause of crash. 目前,我认为这种可能性之一就是崩溃的原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.