Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos &引用;UI更新被应用程序强制禁用;_Macos_Cocoa - Fatal编程技术网

Macos &引用;UI更新被应用程序强制禁用;

Macos &引用;UI更新被应用程序强制禁用;,macos,cocoa,Macos,Cocoa,我正在开发我的一个应用程序的新版本,Timeout,它使用一个登录项助手来安排时间。我的几个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,它使用一个登录项助手来安排时间。我的几个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(),然后让用户在应用程序运行缓慢后通过电子邮件向您发送控制台日志。

谢谢。我没有在受影响的应用程序中进行任何自定义绘图;唯一的UI是NSStatusItem菜单。但这并不能解决问题。这似乎也不是一个数据问题。所以,我正在探索控制台日志记录、应用程序示例等。不过,到目前为止运气不好。你发现了吗?我也有同样的问题。