调试CoreGraphics / MapKit中的崩溃 [英] Debugging crash in CoreGraphics/MapKit

查看:139
本文介绍了调试CoreGraphics / MapKit中的崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我的应用程序在iPhone上运行时,我的间歇性崩溃。所有崩溃都是相同的,并且以某种方式涉及MKMapView Overlays(MKCircleViews)。

I am getting an intermittent crash when my application runs on an iPhone. All the crashes are identical and involve MKMapView Overlays (MKCircleViews) in some way.

来自典型的iPhone 4s崩溃报告:

From a typical iPhone 4s crash report:

报告标题:

Hardware Model:      iPhone4,1
Process:         EL-GPS-01 [1021]
Path: /var/mobile/Applications/61288E15-74B5-45B9-99A9-E0B58C767816/EL-GPS-01.app/EL-GPS-01
Identifier:      EL-GPS-01
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2011-11-22 15:59:41.065 +0000
OS Version:      iPhone OS 5.0.1 (9A405)
Report Version:  104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000
Crashed Thread:  6

崩溃的线程:

Thread 6 name: Dispatch queue: com.apple.root.default-priority
Thread 6 Crashed:
0 ??? 0000000000 0 + 0
1 CoreGraphics 0x319a87c2 0x31967000 + 268226
2 CoreGraphics 0x3199a9e6 0x31967000 + 211430
3 MapKit 0x37ec3564 0x37e6f000 + 345444
4 MapKit 0x37ec3652 0x37e6f000 + 345682
5 MapKit 0x37ecc0a4 0x37e6f000 + 381092
6 QuartzCore 0x3341be18 0x33410000 + 48664
7 QuartzCore 0x334d77e0 0x33410000 + 817120
8 QuartzCore 0x3346af24 0x33410000 + 372516
9 libdispatch.dylib 0x3797e892 0x3797b000 + 14482
10 libsystem_c.dylib 0x360e31ca 0x360d9000 + 41418
11 libsystem_c.dylib 0x360e30a0 0x360d9000 + 41120

当我的iPhone连接到我的笔记本电脑时应用程序崩溃我在输出面板中得到以下信息:

When the application crashes whilst my iPhone is connected to my laptop I get the following in my output panel:

warning: check_safe_call: could not restore current frame
warning: Unable to restore previously selected frame.

调试器根本不给我任何东西,而且问题导航器显示一个崩溃的线程,堆栈中什么也没有。

The debugger gives me nothing at all, and the Issue navigator shows a crashed thread with nothing on the stack.

这里有一个非常简单的项目突出显示问题:

There is a very simple project highlighting the problem here:

https://github.com/1ndivisible/MKOverlayBug

git@github.com:1ndivisible/MKOverlayBug.git

我不知道如何处理这个问题。这里有什么信息我可以使用吗?似乎崩溃起源于框架深处。

I'm not sure how to approach this. Is there any information here that I can use? It seems the crash is originating deep in the framework.

推荐答案

这是一个已知的错误。 Apple已经承认了这一点。目前没有修复。您所能做的就是将图形复合到更少的注释中。我发现< = 3注释是安全的。

Its a known bug. Apple have acknowledged it. There is currently no fix. All you can do is compound your graphics into fewer annotations. I have found <=3 annotations is safe.

这篇关于调试CoreGraphics / MapKit中的崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆