2014-01-20 50 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

相關問題