{"action":"opened","issue":{"url":"https://api.github.com/repos/editxt/editxt/issues/8","labels_url":"https://api.github.com/repos/editxt/editxt/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/editxt/editxt/issues/8/comments","events_url":"https://api.github.com/repos/editxt/editxt/issues/8/events","html_url":"https://github.com/editxt/editxt/issues/8","id":53238888,"number":8,"title":"Document tree pane UI stops updating","user":{"login":"joxl","id":1731363,"avatar_url":"https://avatars.githubusercontent.com/u/1731363?v=3","gravatar_id":"","url":"https://api.github.com/users/joxl","html_url":"https://github.com/joxl","followers_url":"https://api.github.com/users/joxl/followers","following_url":"https://api.github.com/users/joxl/following{/other_user}","gists_url":"https://api.github.com/users/joxl/gists{/gist_id}","starred_url":"https://api.github.com/users/joxl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joxl/subscriptions","organizations_url":"https://api.github.com/users/joxl/orgs","repos_url":"https://api.github.com/users/joxl/repos","events_url":"https://api.github.com/users/joxl/events{/privacy}","received_events_url":"https://api.github.com/users/joxl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-02T06:06:04Z","updated_at":"2015-01-02T06:06:04Z","closed_at":null,"body":"I did produce the behavior described below without using the `doc` command (in the EditXT command bar). However, the steps below are the only way I've been able to consistently reproduce it (as of now).\r\n\r\nEditXT Version 1.7.4 (201501011535.e561f02)\r\nOS X Version 10.10.1 (14B25)\r\n\r\n- Launch `Console.app` and view `system.log`\r\n- Quit (if open) and launch `EditXT.app` (important)\r\n- Navigate to another document (besides current one) via mouse in the document tree pane\r\n- Invoke command bar, type `doc`, press `[Enter]`\r\n\r\n**OBSERVE:**\r\n- Previously visited document is highlighted in the document tree pane and loads in the editor view (this is expected).\r\n- Console.app shows following messages in system log:\r\n```\r\nJan  1 23:40:10 <computername>.local EditXT[66586]: *** Assertion failure in -[ContentSizedTextView lockFocus], /SourceCache/AppKit/AppKit-1343.16/AppKit.subproj/NSView.m:7573\r\nJan  1 23:40:10 <computername>.local EditXT[66586]: 2015-01-01 23:40:10.724 EditXT[66586:13545647] *** Assertion failure in -[ContentSizedTextView lockFocus], /SourceCache/AppKit/AppKit-1343.16/AppKit.subproj/NSView.m:7573\r\nJan  1 23:40:10 <computername>.local SecurityAgent[66611]: Failed to initialize IconCache named: com.apple.iconservices with error: Error Domain=NSCocoaErrorDomain Code=4097 \"Couldn’t communicate with a helper application.\" (connection to service named com.apple.iconservices) UserInfo=0x7fcc4048c640 {NSDebugDescription=connection to service named com.apple.iconservices}\r\nJan  1 23:40:10 <computername>.local SecurityAgent[66611]: Error returned from iconservicesagent: Error Domain=NSCocoaErrorDomain Code=4097 \"Couldn’t communicate with a helper application.\" (connection to service named com.apple.iconservices) UserInfo=0x7fcc405829a0 {NSDebugDescription=connection to service named com.apple.iconservices}\r\nJan  1 23:40:11 <computername>.local WindowServer[147]: disable_update_timeout: UI updates were forcibly disabled by application \"EditXT\" for over 1.00 seconds. Server has re-enabled them.\r\n```\r\n\r\n**EXPECTED:**\r\n- No EditXT errors in system log.\r\n\r\n*Continuing...*\r\n- Invoke command bar, type `doc  next`, press `[Enter]` *(markdown is munging that `doc` command, notice it should be `doc<SPACE><SPACE>next`*\r\n\r\n**OBSERVE:**\r\n- Editor view loads `next` document (this is expected).\r\n- Document tree pane UI does not change (i.e. `next` document is **not** highlighted).\r\n- Console.app shows following message in system log:\r\n```\r\nJan  1 23:40:25 <computername>.local WindowServer[147]: disable_update_likely_unbalanced: UI updates still disabled by application \"EditXT\" after 15.00 seconds (server forcibly re-enabled them after 1.00 seconds). Likely an unbalanced disableUpdate call.\r\n```\r\n- Password prompt requests admin privileges for `atos`:\r\n![atos-error](https://cloud.githubusercontent.com/assets/1731363/5594478/48c0737c-921b-11e4-8867-8cfb0fa1ca3a.png)\r\n\r\n**EXPECTED:**\r\n- Document tree pane UI to update and highlight `next` document.\r\n- No EditXT errors in system log. (*Worth mentioning: the above `WindowServer` log message may not have been caused by the `doc  next` command.  Notice it mentions `after 15.00 seconds`, which suggests it was simply emmitted about 15 seconds after to the previous `WindowServer` log message.)*\r\n- No privilege escalation prompt.\r\n\r\n*Continuing...*\r\n- Click `Cancel` to `atos` password prompt.\r\n\r\n**OBSERVE:**\r\n- Console.app shows following messages in system log:\r\n```\r\nJan  1 23:41:19 <computername>.local EditXT[66586]: atos[66609]: unable to get permission to examine process.\r\nJan  1 23:41:19 <computername>.local SecurityAgent[66611]: Error returned from iconservicesagent: Error Domain=NSCocoaErrorDomain Code=4097 \"Couldn’t communicate with a helper application.\" (connection to service named com.apple.iconservices) UserInfo=0x7fcc40624420 {NSDebugDescription=connection to service named com.apple.iconservices}\r\n```\r\n- New password prompt requests admin privileges for `Developer Tools Access`:\r\n![dta-error](https://cloud.githubusercontent.com/assets/1731363/5594480/52a4e4f4-921b-11e4-9310-f22dbfdbc49f.png)\r\n\r\n**EXPECTED:**\r\n- No EditXT errors in system log.\r\n- No privilege escalation prompt.\r\n\r\n*Continuing...*\r\n- Click `Cancel` to `Developer Tools Access` password prompt.\r\n\r\n**OBSERVE:**\r\n- Console.app shows following messages in system log:\r\n```\r\nJan  1 23:42:06 <computername>.local EditXT[66586]: atos[66609]: atos cannot examine process 66586 (EditXT) for unknown reasons, even though it appears to exist; try running with `sudo`.\r\nJan  1 23:42:06 <computername>.local EditXT[66586]: ERROR editxt - ObjC exception NSInternalInconsistencyException (reason: -[ContentSizedTextView(0x10a32c0b0) lockFocus] failed with window=0x107a91640, windowNumber=5718, [self isHiddenOrHasHiddenAncestor]=1) discarded\r\n\tStack trace (most recent call last):\r\nJan  1 23:42:06 <computername>.local EditXT[66586]: 2015-01-01 23:42:06.472 EditXT[66586:13545647] ERROR editxt - ObjC exception NSInternalInconsistencyException (reason: -[ContentSizedTextView(0x10a32c0b0) lockFocus] failed with window=0x107a91640, windowNumber=5718, [self isHiddenOrHasHiddenAncestor]=1) discarded\r\nJan  1 23:42:06 <computername>.local EditXT[66586]: Stack trace (most recent call last):\r\nJan  1 23:42:06 <computername>.local EditXT[66586]: -[ContentSizedTextView(0x10a32c0b0) lockFocus] failed with window=0x107a91640, windowNumber=5718, [self isHiddenOrHasHiddenAncestor]=1\r\nJan  1 23:42:06 <computername>.local EditXT[66586]: 2015-01-01 23:42:06.485 EditXT[66586:13545647] -[ContentSizedTextView(0x10a32c0b0) lockFocus] failed with window=0x107a91640, windowNumber=5718, [self isHiddenOrHasHiddenAncestor]=1\r\nJan  1 23:42:06 <computername>.local EditXT[66586]: (\r\n\t\t0   CoreFoundation                      0x00007fff93d4364c __exceptionPreprocess + 172\r\n\t\t1   libobjc.A.dylib                     0x00007fff91aaa6de objc_exception_throw + 43\r\n\t\t2   CoreFoundation                      0x00007fff93d431e9 -[NSException raise] + 9\r\n\r\n<SNIP (see comment below for full log output)>\r\n```\r\n\r\n**EXPECTED:**\r\n- No EditXT errors in system log.\r\n\r\n*Continuing...*\r\n- Switch to new document(s) with mouse via document tree pane.\r\n\r\n**OBSERVE:**\r\n- Editor view loads the clicked document (this is expected).\r\n- Document tree pane UI does not change (i.e. clicked document is **not** highlighted).\r\n\r\n**EXPECTED:**\r\n- Document tree pane UI to update and highlight the clicked document.\r\n\r\n----\r\n**Final Note:** all system log messages shown above were the *only* messages emitted during this exercise."}}