{"action":"created","issue":{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/160","labels_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/160/comments","events_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/160/events","html_url":"https://github.com/OfflineIMAP/offlineimap/issues/160","id":55083293,"number":160,"title":"blinkenlights display is broken","user":{"login":"michaelsbradleyjr","id":194260,"avatar_url":"https://avatars.githubusercontent.com/u/194260?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelsbradleyjr","html_url":"https://github.com/michaelsbradleyjr","followers_url":"https://api.github.com/users/michaelsbradleyjr/followers","following_url":"https://api.github.com/users/michaelsbradleyjr/following{/other_user}","gists_url":"https://api.github.com/users/michaelsbradleyjr/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelsbradleyjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelsbradleyjr/subscriptions","organizations_url":"https://api.github.com/users/michaelsbradleyjr/orgs","repos_url":"https://api.github.com/users/michaelsbradleyjr/repos","events_url":"https://api.github.com/users/michaelsbradleyjr/events{/privacy}","received_events_url":"https://api.github.com/users/michaelsbradleyjr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/labels/need%20contributor!","name":"need contributor!","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-01-21T21:57:44Z","updated_at":"2016-01-04T09:40:20Z","closed_at":null,"body":"I upgraded to the latest release candidate recently, and it's working well.\r\n\r\nOne thing I was hoping was that the `blinkenlights` ui would have been \"fixed\" since the previous stable release; however, I'm still experiencing the same problems with it as before. The buggy symptoms are as follows:\r\n\r\nEither right away or after a minute or so, the output of `blinkenlights` becomes \"garbled\" and eventually results in a crash of the python process. Also, the garbled output may trigger the print dialog of my OS (which is pretty weird). After I've killed it or it has crashed, I have to issue a `reset` in the terminal to get things back to normal.\r\n\r\nThe platforms on which I've experienced problems are Mac OS 10.9, 10.10 (and their point releases); python 2.7.6 - 2.7.9 (installed w/ homebrew); and iTerm2 or Terminal.app (with either `TERM=xterm` or `TERM=xterm-256color`).\r\n\r\nFor now, I can just use `basic` or `ttyui`, as I've been doing over the past year.  Looking at the commit history for `ui/Curses.py`, I'm wondering if the code has simply bitrotted and/or if its maintainer is not testing it on multiple platforms. "},"comment":{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/comments/168623711","html_url":"https://github.com/OfflineIMAP/offlineimap/issues/160#issuecomment-168623711","issue_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/160","id":168623711,"user":{"login":"gaudenz","id":1215597,"avatar_url":"https://avatars.githubusercontent.com/u/1215597?v=3","gravatar_id":"","url":"https://api.github.com/users/gaudenz","html_url":"https://github.com/gaudenz","followers_url":"https://api.github.com/users/gaudenz/followers","following_url":"https://api.github.com/users/gaudenz/following{/other_user}","gists_url":"https://api.github.com/users/gaudenz/gists{/gist_id}","starred_url":"https://api.github.com/users/gaudenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaudenz/subscriptions","organizations_url":"https://api.github.com/users/gaudenz/orgs","repos_url":"https://api.github.com/users/gaudenz/repos","events_url":"https://api.github.com/users/gaudenz/events{/privacy}","received_events_url":"https://api.github.com/users/gaudenz/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T09:40:20Z","updated_at":"2016-01-04T09:40:20Z","body":"I'm also seeing this with the version that recently reached Debian testing. I did a git bisect on this, but the result is not really clear. There are several commits where I'm not sure if the bug is already present or if it's just another error or UI glitch. I used \"git bisect skip\" on them. The remaining commits are all done by @spaetz . Here is the complete git bisect log for anyone who want's to have a look:\r\ngit bisect start\r\n# bad: [72850e3c232ccb671686ac7ea5790bfc89202382] fix Changelog\r\ngit bisect bad 72850e3c232ccb671686ac7ea5790bfc89202382\r\n# bad: [ca1ce256ecb1d56f00c7342b121b6079b536ef0f] v6.5.7\r\ngit bisect bad ca1ce256ecb1d56f00c7342b121b6079b536ef0f\r\n# bad: [69838b81a5998bbdf473bde372f54b15220a7637] Release 6.4.4\r\ngit bisect bad 69838b81a5998bbdf473bde372f54b15220a7637\r\n# good: [3b096952364b572fa117261c2369472b0d41e44d] v6.3.3\r\ngit bisect good 3b096952364b572fa117261c2369472b0d41e44d\r\n# good: [a6480d4959d2747680e75b2351dac8f1aca85fe1] Fix string formatting\r\ngit bisect good a6480d4959d2747680e75b2351dac8f1aca85fe1\r\n# good: [fd6261a50f039c21895d4fa9780d00bd0db19474] Create new folders on srcrepo if needed\r\ngit bisect good fd6261a50f039c21895d4fa9780d00bd0db19474\r\n# skip: [cbec8bb5b20eb8051aaea2b20f81de9158dab975] Rework UI system to make use of the logging module\r\ngit bisect skip cbec8bb5b20eb8051aaea2b20f81de9158dab975\r\n# good: [8970a1500b6b85c7f0c3a9e2c112e63261d2d120] UIBase: Fix and cleanup register/unregisterthread\r\ngit bisect good 8970a1500b6b85c7f0c3a9e2c112e63261d2d120\r\n# skip: [4eeb88dd8fff60f11321192cf5ca264e8ddcb3e9] Append, don't truncate, log file\r\ngit bisect skip 4eeb88dd8fff60f11321192cf5ca264e8ddcb3e9\r\n# skip: [8dbf62cfdba9924e5e82b041e118f6fe059637da] Add a TODO comment\r\ngit bisect skip 8dbf62cfdba9924e5e82b041e118f6fe059637da\r\n# bad: [50e78a8d41ea01c1f077438d9c2d6cf7367575b5] Release v6.4.2\r\ngit bisect bad 50e78a8d41ea01c1f077438d9c2d6cf7367575b5\r\n# skip: [33b4a16dac98e303322d2a0e56404e865c762d28] Fix mbox.select(foldername) readonly parameter comparison\r\ngit bisect skip 33b4a16dac98e303322d2a0e56404e865c762d28\r\n# good: [3885acf87dd4e14ad28ca63c4818114a1dc95e15] Implement server diagnostics\r\ngit bisect good 3885acf87dd4e14ad28ca63c4818114a1dc95e15\r\n# skip: [ccfa747ce65583c2352e6546885a9a47ff59e5cb] Use lock with 'with' statement\r\ngit bisect skip ccfa747ce65583c2352e6546885a9a47ff59e5cb\r\n# skip: [7c45e05428e6e6a9437c2f3dc6597e19e864b111] Fix getExitStackTrace call\r\ngit bisect skip 7c45e05428e6e6a9437c2f3dc6597e19e864b111\r\n# good: [0ba9634205c005fba3915a76b2857dcb836afc9e] Fix string formatting when port is not given.\r\ngit bisect good 0ba9634205c005fba3915a76b2857dcb836afc9e\r\n# skip: [d981d66305d3e8342e74cf5a130339aab1eb5396] Add changelog entry for reworked UI backends\r\ngit bisect skip d981d66305d3e8342e74cf5a130339aab1eb5396\r\n# bad: [9a654968fc6d73d3bc45b8191e5bae28ce51ac47] Don't append trailing slash to maildir foldernames\r\ngit bisect bad 9a654968fc6d73d3bc45b8191e5bae28ce51ac47\r\n# skip: [d54859a9318baf6d6eb000a82793d3beff20f547] Don't setDaemon explicitly, it's done inherently\r\ngit bisect skip d54859a9318baf6d6eb000a82793d3beff20f547\r\n# skip: [bfbd37802525279fbfbd540a6e06eafa60b90921] Add FAQ item on \"Mailbox already exists\" error\r\ngit bisect skip bfbd37802525279fbfbd540a6e06eafa60b90921\r\n# good: [76b0d7cf25ac3049529b3afda906b1207bd708db] imapserver: Make noop() more resitent against dropped connections.\r\ngit bisect good 76b0d7cf25ac3049529b3afda906b1207bd708db\r\n# skip: [52ca66f055f5f65a5533b5ede616f140d90b4b51] Reduce log verbosity while scanning Maildir\r\ngit bisect skip 52ca66f055f5f65a5533b5ede616f140d90b4b51\r\n# bad: [20f2edfcecfbb14e27a1a9445751ccb0c451eb45] Sanity check to notify us when we call IMAPRepository.getsep() too early\r\ngit bisect bad 20f2edfcecfbb14e27a1a9445751ccb0c451eb45\r\n# skip: [74d580bc6892f0a22bbbc573c2418b8fbf839933] Exit \"infinite\" monitorloop when SyncRunner thread exits\r\ngit bisect skip 74d580bc6892f0a22bbbc573c2418b8fbf839933\r\n# bad: [a93c80292d0474420654eb9cfa873ce20a6fbdc8] Curses UI: Simplify text buffer handling\r\ngit bisect bad a93c80292d0474420654eb9cfa873ce20a6fbdc8\r\n# skip: [656405616d77b75264a23a86e725884bfeb68632] Drop connection if it might be bad on APPEND\r\ngit bisect skip 656405616d77b75264a23a86e725884bfeb68632\r\n# bad: [ab184d84e23a2280d6c501159759027180e07683] Reduce parameter list to account.syncfolder call\r\ngit bisect bad ab184d84e23a2280d6c501159759027180e07683\r\n# skip: [006f19aba90640d931f475635a8a69694d498e72] Make releaseconnection a NOOP when conn is None\r\ngit bisect skip 006f19aba90640d931f475635a8a69694d498e72\r\n# good: [d4a11c62eaeff9726e7989d5fa2c589449957dce] Fix typos in documentary comments in exemplary config file\r\ngit bisect good d4a11c62eaeff9726e7989d5fa2c589449957dce\r\n# skip: [54117e702d78e549df82c0233a3a23a248a78349] Bump bundled imaplib2 to 2.29\r\ngit bisect skip 54117e702d78e549df82c0233a3a23a248a78349\r\n# bad: [70125d58e67de1fff83a3e59d9498668153a2d55] Curses UI: make resize behave better\r\ngit bisect bad 70125d58e67de1fff83a3e59d9498668153a2d55\r\n# skip: [8195d1410f94de4956047f8dc004c0acc68ee386] Prettify Blinkenlights.sleep()\r\ngit bisect skip 8195d1410f94de4956047f8dc004c0acc68ee386\r\n# skip: [d992c66156ccd15eac3d9b92a0a49a375e36b40d] Rework the whole unused get/setExitCause machinery\r\ngit bisect skip d992c66156ccd15eac3d9b92a0a49a375e36b40d\r\n# skip: [212e50eb4b53055e247feb29d34e8a007610c5cc] Fix sleeping in the Blinkenlights UI\r\ngit bisect skip 212e50eb4b53055e247feb29d34e8a007610c5cc\r\n# skip: [f6f8fc852809798823793d9800577321765e3be4] Simplify the keepalive code a bit\r\ngit bisect skip f6f8fc852809798823793d9800577321765e3be4\r\n# only skipped commits left to test\r\n# possible first bad commit: [70125d58e67de1fff83a3e59d9498668153a2d55] Curses UI: make resize behave better\r\n# possible first bad commit: [bfbd37802525279fbfbd540a6e06eafa60b90921] Add FAQ item on \"Mailbox already exists\" error\r\n# possible first bad commit: [212e50eb4b53055e247feb29d34e8a007610c5cc] Fix sleeping in the Blinkenlights UI\r\n# possible first bad commit: [8dbf62cfdba9924e5e82b041e118f6fe059637da] Add a TODO comment\r\n# possible first bad commit: [74d580bc6892f0a22bbbc573c2418b8fbf839933] Exit \"infinite\" monitorloop when SyncRunner thread exits\r\n# possible first bad commit: [52ca66f055f5f65a5533b5ede616f140d90b4b51] Reduce log verbosity while scanning Maildir\r\n# possible first bad commit: [ccfa747ce65583c2352e6546885a9a47ff59e5cb] Use lock with 'with' statement\r\n# possible first bad commit: [d54859a9318baf6d6eb000a82793d3beff20f547] Don't setDaemon explicitly, it's done inherently\r\n# possible first bad commit: [4eeb88dd8fff60f11321192cf5ca264e8ddcb3e9] Append, don't truncate, log file\r\n# possible first bad commit: [54117e702d78e549df82c0233a3a23a248a78349] Bump bundled imaplib2 to 2.29\r\n# possible first bad commit: [656405616d77b75264a23a86e725884bfeb68632] Drop connection if it might be bad on APPEND\r\n# possible first bad commit: [006f19aba90640d931f475635a8a69694d498e72] Make releaseconnection a NOOP when conn is None\r\n# possible first bad commit: [33b4a16dac98e303322d2a0e56404e865c762d28] Fix mbox.select(foldername) readonly parameter comparison\r\n# possible first bad commit: [d981d66305d3e8342e74cf5a130339aab1eb5396] Add changelog entry for reworked UI backends\r\n# possible first bad commit: [7c45e05428e6e6a9437c2f3dc6597e19e864b111] Fix getExitStackTrace call\r\n# possible first bad commit: [d992c66156ccd15eac3d9b92a0a49a375e36b40d] Rework the whole unused get/setExitCause machinery\r\n# possible first bad commit: [8195d1410f94de4956047f8dc004c0acc68ee386] Prettify Blinkenlights.sleep()\r\n# possible first bad commit: [f6f8fc852809798823793d9800577321765e3be4] Simplify the keepalive code a bit\r\n# possible first bad commit: [cbec8bb5b20eb8051aaea2b20f81de9158dab975] Rework UI system to make use of the logging module\r\n"}}