我的测试应用程序加载了一个 UITableView 并由[1421:12503] *** -[__NSArrayM class]: message sent to deallocated instance 0x10ae83e0
. 崩溃时进程在 main() 方法处停止。
而且这种崩溃只发生在 ios 4.3.2 的模拟器中,在 ios 4.3.2 和 ios 5.1 的设备中可以,在 ios 5.1 的模拟器中也可以。我无法找出哪个实例被错误地释放。
我在终端中使用命令malloc_history 1421:12503 0x10ae83e0
试图找到任何有价值的线索。但我只得到以下信息:
> ALLOC 0x10ae83e0-0x10ae83f7 [size=24]: thread_ac2502c0 |start | main | UIApplicationMain | GSEventRun | GSEventRunModal | CFRunLoopRunInMode | CFRunLoopRunSpecific | __CFRunLoopRun | __CFRunLoopDoSource1 |
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ | mshMIGPerform |
_XCopyElementAtPosition | _AXXMIGCopyElementAtPosition | _copyElementAtPositionCallback |
-[UIView(UIViewAccessibility) _accessibilityHitTest:withEvent:] |
-[UIView(UIViewAccessibility) __accessibilityHitTest:withEvent:] |
-[UIView(UIViewAccessibility) _accessibilityHitTest:withEvent:] |
-[UIView(UIViewAccessibility) __accessibilityHitTest:withEvent:]|
-[UIView(UIViewAccessibility) _accessibilityHitTest:withEvent:] |
-[UIView(UIViewAccessibility) __accessibilityHitTest:withEvent:] |
-[UIView(UIViewAccessibility) _accessibilityHitTest:withEvent:] |
-[UIView(UIViewAccessibility) __accessibilityHitTest:withEvent:] |
-[UIView(UIViewAccessibility) _accessibilityHitTest:withEvent:] |
-[UIView(UIViewAccessibility) __accessibilityHitTest:withEvent:] |
-[UITableViewAccessibility(Accessibility) _accessibilityHitTest:withEvent:] |
-[UITableViewSectionElement _accessibilityHitTest:withEvent:] |
-[UITableViewSectionElement accessibilityChildren] |
-[__NSPlaceholderArray init] |
-[__NSPlaceholderArray initWithCapacity:] |
+[__NSArrayM __new::] | __CFAllocateObject2 | class_createInstance | calloc | malloc_zone_calloc
您能否为这种情况提供任何线索?提前致谢!