使用性能工具,分配在Iphone上调试EXEC_BAD_ACCESS [英] Debugging the EXEC_BAD_ACCESS on Iphone using Performance Tool, Allocations

查看:28
本文介绍了使用性能工具,分配在Iphone上调试EXEC_BAD_ACCESS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Zombie捕获了一个错误CFString基础库
呼叫者{NSPlaceholderMutableString int] Malloc

An error is caught, using Zombie CFString Foundation Library
caller {NSPlaceholderMutableString int] Malloc

CFString基础库
呼叫者{NSPlaceholderString initWithFormat:locale}僵尸

CFString Foundation Library
caller {NSPlaceholderString initWithFormat:locale} Zombie

好吧,它并没有降到我声明的位置.我不知道在哪里调用NSMutablestring以及它是哪个变量

well it didn't drop to where I declared. I have no idea where that NSMutablestring is called and which variable it is

推荐答案

  • 仪器提供了一个记录引用计数的选项-确保已启用.
  • 运行您的应用并重现问题.
  • 当仪器由于发送僵尸消息而暂停程序时,它将告诉您僵尸的地址.
  • 然后您在分配列表中找到该地址,并查看其创建位置以及所有引用计数操作.
  • 掌握问题根源后,大约需要2分钟才能发现问题,并且可以重现该问题.祝你好运.

    It takes about 2 minutes to spot an issue once you get the hang of it, and can reproduce the problem. Good luck.

    此外,0x8badf00d在下面建议了使用仪器进行的会话311高级内存分析"..我没有亲自看过,但是听起来这将是一个很棒的话题.

    Also, 0x8badf00d has recommended "session 311 Advanced Memory analysis with Instruments." below. I've not watched it personally, but it sounds like it would be a great session on the subject.

    这篇关于使用性能工具,分配在Iphone上调试EXEC_BAD_ACCESS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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