用的MKMapView EXC_BAD_ACCESS崩溃 [英] MKMapView crashing with EXC_BAD_ACCESS

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

问题描述

我有code以下线,激活断点

  [图形页面addAnnotations:grabinstance.itemArray];

这崩溃随机。 grabinstance.itemArray总是完全填充,并在当时是从来没有发生变化,由于该位code的只能被称为一次数组已满。这种特殊的这个时间被确认为数组中的323项。

NSZombieEnabled没有找到所有要么什么。

回溯低于和线1154以上就行了。

 #0 0x0126a372在_insert()
#1 0x0126a312在_splitNode()
#2 0x0126a3b7在_insert()
在#3 0x011db253 - [MKAnnotationContainerView addAnnotation:()
#4 0x011dfc2e中 - [MKAnnotationContainerView addAnnotations:]()
#5 0x011b0b30中 - [的MKMapView addAnnotations:]()
#6 0x00009257在 - [BigViewController plotItems](自= 0x614de90,_cmd = 0x16464f)在/用户/ ZZZZ /文件/ iPhone项目/ BigProject /班/ BigViewController.m:1154
#7 0x005336c1在_nsnote_callback()
#8 __CFXNotificationPost_old 0x01c18f99()
#9 0x01b9833a在_CFXNotificationPostNotification()
#10 0x00529266在 - [NSNotificationCenter postNotificationName:对象:用户信息:()
#11 0x00024071在 - [ItemGrabber parserDidEndDocument:(自我= 0x617b540,_cmd = 0x689aa3,解析器= 0xf6b4ab0)在/用户/ ZZZZ /文件/ iPhone项目/ BigProject /班/ ItemGrabber.m:267


解决方案

据报道,苹果公司和错误被确认

I have the following line of code which activates the breakpoint

[mapView addAnnotations:grabinstance.itemArray];

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 doesn't find anything at all either.

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 reported to Apple and as been acknowledged

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

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