gpt4 book ai didi

macos - "UI updates were forcibly disabled by application"

转载 作者:行者123 更新时间:2023-12-03 16:21:23 26 4
gpt4 key购买 nike

我正在开发我的应用程序之一的新版本,Time Out,它使用登录项帮助程序进行安排。我的几个 alpha 测试人员报告内存泄漏和 CPU 使用率过高...但我也无法重现。

特别是,他们提到了性能低下以及大量控制台日志记录,如下所示。可能是什么原因造成的?

1/18/14 3:06:21.754 PM WindowServer[139]: disable_update_timeout: UI updates were forcibly disabled by application "com.dejal.timeout.scheduler" for over 1.00 seconds. Server has re-enabled them.
1/18/14 3:06:21.986 PM WindowServer[139]: common_reenable_update: UI updates were finally reenabled by application "com.dejal.timeout.scheduler" after 1.23 seconds (server forcibly re-enabled them after 1.00 seconds)
1/18/14 3:26:54.418 PM WindowServer[139]: disable_update_timeout: UI updates were forcibly disabled by application "com.dejal.timeout.scheduler" for over 1.00 seconds. Server has re-enabled them.
1/18/14 3:26:55.122 PM WindowServer[139]: common_reenable_update: UI updates were finally reenabled by application "com.dejal.timeout.scheduler" after 1.72 seconds (server forcibly re-enabled them after 1.01 seconds)
1/18/14 3:31:21.083 PM WindowServer[139]: disable_update_timeout: UI updates were forcibly disabled by application "com.dejal.timeout.scheduler" for over 1.00 seconds. Server has re-enabled them.
1/18/14 3:31:21.197 PM WindowServer[139]: common_reenable_update: UI updates were finally reenabled by application "com.dejal.timeout.scheduler" after 1.12 seconds (server forcibly re-enabled them after 1.00 seconds)

最佳答案

我相信这个错误可能是由于 -drawRect: 或绘图机器的其他部分花费太长时间而引起的。这很可能是一个症状,而不是根本问题——根本问题是你的绘图速度太慢。

如果可以的话,获取他们的数据文件。如果没有,请以最简单的方式制作一个特殊的构建,并内置计时。就像,只需在不同的位置插入 NSLog() 来说明它们的位置,然后让用户在应用程序运行缓慢后通过电子邮件向您发送控制台日志。

关于macos - "UI updates were forcibly disabled by application",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21246237/

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