首页 文章

iPhone应用程序崩溃,未知错误

提问于
浏览
1

我正在开发一个应用程序来拍照并将照片上传到远程服务器 .

我使用叠加视图定制了相机视图 . 应用程序允许每次拍摄超过1张照片,照片将在拍照后保存到设备中 . 当我拍照时,应用会给出内存警告然后崩溃 . 以下是崩溃报告 . 我曾与Apple支持团队进行过交谈,他们表示这不是因为内存问题 . 这是因为尝试将操作发送到不再存在的某个控制器对象 .

操作系统版本:iPhone OS 4.3.3(8J2)报告版本:104异常类型:EXC_BAD_ACCESS(SIGSEGV)异常代码:KERN_INVALID_ADDRESS位于0x73980000崩溃线程:0线程0名称:调度队列:com.apple.main-thread线程0崩溃:0 libobjc.A.dylib 0x34499c9a objc_msgSend 18 1 UIKit 0x30a8bc1a - [UIBarButtonItem(UIInternal)_sendAction:withEvent:] 86 2 CoreFoundation 0x308f056a - [NSObject(NSObject)performSelector:withObject:withObject:] 18 3 UIKit 0x309feec2 - [UIApplication sendAction: to:from:forEvent:] 78 4 UIKit 0x309fee62 - [UIApplication sendAction:toTarget:fromSender:forEvent:] 26 5 UIKit 0x309fee34 - [UIControl sendAction:to:forEvent:] 32 6 UIKit 0x309feb86 - [UIControl(Internal)_sendActionsForEvents:withEvent :] 350 7 UIKit 0x309ff41c - [UIControl touchesEnded:withEvent:] 336 8 UIKit 0x309e452e _UIGestureRecognizerSortAndSendDelayedTouches 2194 9 UIKit 0x309e3bfa _UIGestureRecognizerUpdateObserver 690 10 CoreFoundation 0x30957a2e CFRUNLOOP_IS_CALLING_OUT_T O_AN_OBSERVER_CALLBACK_FUNCTION 10 11的CoreFoundation 0x3095945e __CFRunLoopDoObservers 406 12的CoreFoundation 0x3095a754 __CFRunLoopRun 848 13的CoreFoundation 0x308eaebc CFRunLoopRunSpecific 224 14的CoreFoundation 0x308eadc4 CFRunLoopRunInMode 52个15 GraphicsServices 0x30269418 GSEventRunModal 108个16 GraphicsServices 0x302694c4 GSEventRun 56 17的UIKit 0x30a10d62 - [UIApplication的_run] 398 18的UIKit 0x30a0e800 UIApplicationMain 664 19手-E -pix 0x000025a4 main(main.m:14)20 hand-e-pix 0x0000254c start 32

谁能帮助我找出导致这个问题的原因?

非常感谢

关心下巴

1 回答

  • 1

    这很容易与保留/释放问题有关 . 确保 balancer 您的重新启动/释放呼叫 . 还要确保您没有在代码中引用任何解除分配的对象 .

    你可能想看看启用NSZombieEnabled以便跟踪这个 . 您可以找到有关如何启用它的信息here .

相关问题