与 CALayer 相关的奇怪崩溃日志
今天我在开发的应用程序中遇到了一个奇怪的错误。 问题出在目录模块上。每个页面上方都有一个小的黑色区域,因为该页面没有 100% 填满屏幕。点击该区域会导致崩溃。
我的崩溃日志看起来像这样:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_PROTECTION_FAILURE at 0x2fd00fec
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 QuartzCore 0x35d812ac CA::Transaction::ensure_compat() + 0
1 QuartzCore 0x35da2648 CALayerMapGeometry_(CALayer*, CALayer*, void (*)(void*, CA::Mat4<double> const&), void (*)(void*, CA::Mat4<double> const&), void*) + 28
2 QuartzCore 0x35da25f8 -[CALayer convertPoint:fromLayer:] + 52
3 UIKit 0x32457018 -[UIView(Geometry) convertPoint:fromView:] + 68
4 UIKit 0x32456d40 -[UIView(Geometry) hitTest:withEvent:] + 172
5 UIKit 0x32456d50 -[UIView(Geometry) hitTest:withEvent:] + 188
(...)repeat the line above^ until it reached 511
511 UIKit 0x32456d50 -[UIView(Geometry) hitTest:withEvent:] + 188
更重要的是,xcode 很快就崩溃了。 调试导航器向我展示了更奇怪的东西: http://i43.tinypic.com/5txnq0.png 然后继续列出一个巨大的 列表,如下所示: http://i41.tinypic.com/2h81ctw.png
我真的不知道从哪里开始...... 目录模块很旧并且经过了良好的测试,以前从未发生过类似的情况。 我知道有很多变量和事情可能会影响应用程序,但如果有人能对此提供哪怕一点点的说明,我将非常感激 正如我所说,我什至不知道如何开始处理这个问题,它看起来不像你常规的“访问已释放的对象”,“内存泄漏”或我迄今为止遇到的其他问题
I encountered today a weird bug with an app I'm working on.
The problem was with a catalog module. Above each page, there was a small black area, since the page didn't fill 100% the screen. Tapping on that zone would generate a crash.
My crash log looks something like this:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_PROTECTION_FAILURE at 0x2fd00fec
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 QuartzCore 0x35d812ac CA::Transaction::ensure_compat() + 0
1 QuartzCore 0x35da2648 CALayerMapGeometry_(CALayer*, CALayer*, void (*)(void*, CA::Mat4<double> const&), void (*)(void*, CA::Mat4<double> const&), void*) + 28
2 QuartzCore 0x35da25f8 -[CALayer convertPoint:fromLayer:] + 52
3 UIKit 0x32457018 -[UIView(Geometry) convertPoint:fromView:] + 68
4 UIKit 0x32456d40 -[UIView(Geometry) hitTest:withEvent:] + 172
5 UIKit 0x32456d50 -[UIView(Geometry) hitTest:withEvent:] + 188
(...)repeat the line above^ until it reached 511
511 UIKit 0x32456d50 -[UIView(Geometry) hitTest:withEvent:] + 188
Even more, xcode ends up crashing soon after.
The debug navigator shows me something even more weird: http://i43.tinypic.com/5txnq0.png and then continued with a HUGE list of , like here: http://i41.tinypic.com/2h81ctw.png
I don't really know where to begin with...
The catalog module is old and well tested, and something like this never happened before.
I know there are many variables and things that might affect the app, but if anyone could shed even a tiny bit of light on this, I would be really grateful
As I said, I don't even know how to start approaching this matter, it doesn't look like your regular "accessing a deallocated object", "memory leak" or other problems I encountered so far
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你在某个地方有无限递归。您是否在某处重写了
-[UIView hitTest:withEvent:]
?这将是一个很好的起点。You have an infinite recursion somewhere. Did you override
-[UIView hitTest:withEvent:]
somewhere? That would be a good place to start.