malloc_history无法检查进程xxxxxx,因为该进程在iOS中不存在 [英] malloc_history cannot examine process xxxxxx because the process does not exist in iOS
问题描述
我将以下环境变量添加到我的项目中,并将其值设置为YES。
NSDebugEnabled
NSZombieEnabled
MallocStackLogging
MallocStackLoggingNoCompact
我按照
我还没有测试这个。
p>我发现自己,malloc_history无法跟踪设备的内存日志,而成功跟踪模拟器内存日志。尝试在模拟器上模拟问题,然后使用malloc_history工具。 (至少我发现它是唯一的方法)
I added the below environment variables to my Project and set their values to YES.
NSDebugEnabled NSZombieEnabled MallocStackLogging MallocStackLoggingNoCompact
I followed the Procedures in http://www.cocoadev.com/index.pl?DebuggingAutorelease
I was able to find the Problem based on the Log generated. My doubt is when I tried to find the stack trace to find where the object was allocated, I got the below information:
malloc_history cannot examine process 6963 because the process does not exist.
Am I missing anything here?
Below is the Log Created:
UPDATE:
I found the below link to be a good source of information on this:
strange GDB error unable to trace
I am yet to test this.
I've found for myself, that malloc_history is unable to track memory log of the device while successfully tracking the simulators memory log. Try to simulate the problem on simulator and then use the malloc_history tool. (at least I've found it as the only way yet)
这篇关于malloc_history无法检查进程xxxxxx,因为该进程在iOS中不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!