MKMapView 因 EXC_BAD_ACCESS 崩溃 [英] MKMapView crashing with EXC_BAD_ACCESS

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

问题描述

我有以下代码行来激活断点

I have the following line of code which activates the breakpoint

[mapView addAnnotations:grabinstance.itemArray];

这会随机崩溃.Grabinstance.itemArray 总是完全填充并且在当时永远不会改变,因为只有在数组已满时才会调用这段代码.这一次被确认为数组中的 323 项.

This crashing randomly. grabinstance.itemArray is fully populated always and is never changing at the time due to this bit of code only being called once the array is full. This particular time this was confirmed as 323 items in the array.

NSZombieEnabled 也根本找不到任何东西.

NSZombieEnabled doesn't find anything at all either.

回溯在下方,第 1154 行是上方.

The backtrace is below and line 1154 is the line above.

#0  0x0126a372 in _insert ()
#1  0x0126a312 in _splitNode ()
#2  0x0126a3b7 in _insert ()
#3  0x011db253 in -[MKAnnotationContainerView addAnnotation:] ()
#4  0x011dfc2e in -[MKAnnotationContainerView addAnnotations:] ()
#5  0x011b0b30 in -[MKMapView addAnnotations:] ()
#6  0x00009257 in -[BigViewController plotItems] (self=0x614de90, _cmd=0x16464f) at /Users/zzzz/Documents/iPhone Projects/BigProject/Classes/BigViewController.m:1154
#7  0x005336c1 in _nsnote_callback ()
#8  0x01c18f99 in __CFXNotificationPost_old ()
#9  0x01b9833a in _CFXNotificationPostNotification ()
#10 0x00529266 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#11 0x00024071 in -[ItemGrabber parserDidEndDocument:] (self=0x617b540, _cmd=0x689aa3, parser=0xf6b4ab0) at /Users/zzzz/Documents/iPhone Projects/BigProject/Classes/ItemGrabber.m:267

推荐答案

Bug 报告给 Apple 并已确认

Bug reported to Apple and as been acknowledged

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

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