2014-01-20 22 views
3

我正在使用我的一个应用程序Time Out的新版本,它使用登录项助手进行计划。我的一些Alpha测试人员报告了内存泄漏和CPU使用率过高......但我无法重现。“UI更新被应用程序强制禁用”

特别是,他们提到性能不佳,以及大量的控制台日志记录,如下所示。什么可能导致这个?

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) 
+0

你知道了吗?我也有同样的问题。 – sam

回答

1

我相信这个错误可能是由于-drawRect:或绘图机器的其他部分太长造成的。这很可能是一个症状,而不是根本问题 - 根本问题是你的绘画超慢。

如果可以,请获取其数据文件。如果不是,请尽可能以最简单的方式进行内置时序的特殊构建。就像,只需在各个点上插入NSLog(),说明它们在哪里,并让用户在应用程序缓慢运行后通过电子邮件向您发送控制台日志。

+0

感谢Wil。我不会在受影响的应用程序中进行任何自定义绘图;唯一的UI是NSStatusItem菜单。而禁用它并没有解决它。它似乎也不是数据问题。所以我正在探索控制台日志记录,应用示例等。尽管如此,还没有运气。 – Dejal

相关问题