Understanding zombie trace in Instruments

会有一股神秘感。 提交于 2019-12-12 01:45:29

问题


I am kind of new at ios development and my app crashes because of EXEC_BAD_ACCESS. To detect problem i enabled Zombies and trace Allocations by using Instruments in xCode 4.5 After it detects Zombie Messaged i am having trouble to find which part of code crashes.

Here is the instruments screen shot:

Thanks for any help.

回答1:


I also have the problem at the beginning of learning Instruments, then I figured out the I have to open the 'Extended detail' Pane to see it.(There might other easy way to enable this, but I did not find yet)




回答2:


It could be interesting to see your code? you might be running some tasks which are causing memory leaks or bad access, e.g; calling some UI related task in background thread. recently in IOS6 had issue with showing alerts with calling [alert show];, if you have the similar scenario then you could replace this show method something like this.

[alert performSelectorOnMainThread:@selector(show) withObject:nil waitUntilDone:YES];

if this is not the issue then you might show your code and someone could help you better that way.



来源:https://stackoverflow.com/questions/14636028/understanding-zombie-trace-in-instruments

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!