gpt4 book ai didi

iphone - 程序收到信号: SIGKILL mean when profiling an app running on device and using the xcode profiler to detect leaks是什么意思

转载 作者:行者123 更新时间:2023-12-03 20:01:57 24 4
gpt4 key购买 nike

在分析设备上运行的应用程序并使用 xcode 分析器检测泄漏时,程序收到的信号:SIGKILL 意味着什么?

我的应用程序在 UIImage 实例上调用 drawInRect 的线路上中断了

调用堆栈顶部是 CGGStateCreateCopy

最佳答案

SIGKILL是 POSIX 系统中常见的信号,例如在您的 iphone 操作系统中,它向您的应用程序发出信号。 SIGKILL 无法以编程方式捕获。通常要终止进程需要在命令行中输入此内容,请记住,您可以对登录 shell 后拥有的进程执行此操作:

ps -elf | grep myprocess    

Then to kill 'myprocess' by using the numeric process id based on the PID column from the previous output sample

kill -1 9149

根据“myprocess”以及操作系统处理此问题的方式,您将收到类似的输出,如下所示:

myprocess: received SIGKILL.process terminated

根据发生的情况,当您的探查器运行代码时,它很可能会以某种方式终止您的应用程序,无论是有意还是无意,根据您的问题判断:

我的应用程序在 UIImage 实例上调用 drawInRect 的线路上中断调用堆栈的顶部是 CGGStateCreateCopy

很可能 drawInRect提供的参数无效...您需要检查用于该函数的参数并验证它。这可能就是操作系统杀死你的应用程序的原因......

希望这有帮助,此致,汤姆。

关于iphone - 程序收到信号: SIGKILL mean when profiling an app running on device and using the xcode profiler to detect leaks是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2170040/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com