gpt4 book ai didi

ios - iPhone 任务切换器图像为黑色

转载 作者:行者123 更新时间:2023-11-29 02:38:32 25 4
gpt4 key购买 nike

我继承了一个代码库,只是注意到当我关闭应用程序(点击主页按钮)然后尝试使用任务切换器(双击主页按钮)切换到该应用程序时,我的应用程序出现在任务切换器中全黑的图像,而不是我正在查看的最后一页的预期屏幕截图。

其他人也遇到过这种情况吗?有什么想法可能导致它吗?正如我所说,我继承了这个代码库,所以我对可能导致这种情况的原因感到茫然。

Matt弄清楚下面接受的答案中发生了什么,但我想我应该在此处添加一些日志,以防其他人遇到此情况:

// Logs showing a correct shutdown
Sep 26 16:48:14 iPod-touch iap2d[2096] <Warning>: process HTTPLeakTester is now running in the background
Sep 26 16:48:15 iPod-touch iap2d[2096] <Warning>: process HTTPLeakTester is now suspending

// Logs Showing my killed app's shutdown
Sep 26 16:47:19 iPod-touch iap2d[2096] <Warning>: process ***** is now running in the background
Sep 26 16:47:19 iPod-touch SpringBoard[42] <Warning>: BSXPCMessage received error for message: Connection interrupted
Sep 26 16:47:19 iPod-touch SpringBoard[42] <Warning>: Application 'UIKitApplication:*****[0x5d54]' exited voluntarily.
Sep 26 16:47:19 iPod-touch assertiond[56] <Error>: assertion failed: 12A365: assertiond + 62335 [032107D4-DB2B-36DD-AC98-6060D8C62F73]: 0x3
Sep 26 16:47:19 iPod-touch assertiond[56] <Warning>: pid_suspend failed for <BKNewProcess: 0x16614640; *****; pid: 2386>: Unknown error: -1, Unknown error: -1
Sep 26 16:47:19 iPod-touch Unknown[56] <Error>:
Sep 26 16:47:19 iPod-touch assertiond[56] <Warning>: Could not set priority of <BKNewProcess: 0x16614640; *****; pid: 2386> to 2, priority: No such process
Sep 26 16:47:19 iPod-touch assertiond[56] <Warning>: Could not set priority of <BKNewProcess: 0x16614640; *****; pid: 2386> to 4096, priority: No such process
Sep 26 16:47:19 iPod-touch assertiond[56] <Error>: assertion failed: 12A365: assertiond + 62335 [032107D4-DB2B-36DD-AC98-6060D8C62F73]: 0x3
Sep 26 16:47:19 iPod-touch UserEventAgent[17] <Warning>: id=***** pid=2386, state=0
Sep 26 16:47:19 iPod-touch iap2d[2096] <Warning>: process ***** is now switching to other state
Sep 26 16:47:19 iPod-touch iap2d[2096] <Warning>: process ***** is now terminated

最佳答案

我猜测该应用程序内存管理不善(或者可能在后台时试图做其他错误的事情,例如长时间使用大量 CPU)。毕竟,你继承了它,所以你不知道,这不是你的错。结果是,当我们进入后台时,看门狗进程发现该应用程序表现不佳并立即将其杀死。

如果您使用应用程序切换器进入后台,切换到黑色快照并启动,然后应用程序是否从头启动,您可以确认这一点。这证明它在后台被终止了。

如果这个猜测是正确的,那么当应用成为更好的公民时,问题应该就会消失。

关于ios - iPhone 任务切换器图像为黑色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26065080/

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