Bug#575193: tmux dont refresh console
Thanks! Great to hear you tracked it down already! On Nov 29, 2010, at 1:05 AM, Taisuke Yamada wrote: I'm also hit by exactly the same issue. Tmux fails to refresh screen (both input and output does not show up) until I switch to another window and back. It seems calling choose-client seems to fix the issue. For further detail, I'll run tmux with -vvv and will report more detail. Sorry, I forgot to update this bug. The tmux author and I eventually isolated the problem. It seems to be limited to aggressive-resize windows being improperly set as hidden. Here is a patch which simply removes the hidden flag; it should be in the next upstream version. Index: resize.c === RCS file: /cvs/src/usr.bin/tmux/resize.c,v retrieving revision 1.5 diff -u -p -r1.5 resize.c --- resize.c 21 Jun 2010 01:27:46 - 1.5 +++ resize.c 14 Nov 2010 11:12:00 - @@ -113,11 +113,8 @@ recalculate_sizes(void) ssy = s-sy; } } - if (ssx == UINT_MAX || ssy == UINT_MAX) { - w-flags |= WINDOW_HIDDEN; + if (ssx == UINT_MAX || ssy == UINT_MAX) continue; - } - w-flags = ~WINDOW_HIDDEN; limit = options_get_number(w-options, force-width); if (limit != 0 ssx limit) Index: tmux.h === RCS file: /cvs/src/usr.bin/tmux/tmux.h,v retrieving revision 1.246 diff -u -p -r1.246 tmux.h --- tmux.h11 Nov 2010 20:51:30 - 1.246 +++ tmux.h14 Nov 2010 11:12:01 - @@ -843,9 +843,8 @@ struct window { int flags; #define WINDOW_BELL 0x1 -#define WINDOW_HIDDEN 0x2 -#define WINDOW_ACTIVITY 0x4 -#define WINDOW_REDRAW 0x8 +#define WINDOW_ACTIVITY 0x2 +#define WINDOW_REDRAW 0x4 struct options options; Index: tty.c === RCS file: /cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.92 diff -u -p -r1.92 tty.c --- tty.c 16 Oct 2010 08:31:55 - 1.92 +++ tty.c 14 Nov 2010 11:12:02 - @@ -547,7 +547,7 @@ tty_write(void (*cmdfn)( if (wp-window-flags WINDOW_REDRAW || wp-flags PANE_REDRAW) return; - if (wp-window-flags WINDOW_HIDDEN || !window_pane_visible(wp)) + if (!window_pane_visible(wp)) return; for (i = 0; i ARRAY_LENGTH(clients); i++) { signature.asc Description: OpenPGP digital signature
Bug#575193: tmux dont refresh console
I'm also hit by exactly the same issue. Tmux fails to refresh screen (both input and output does not show up) until I switch to another window and back. It seems calling choose-client seems to fix the issue. For further detail, I'll run tmux with -vvv and will report more detail. signature.asc Description: OpenPGP digital signature
Bug#575193: tmux dont refresh console
On Nov 29, 2010, at 1:05 AM, Taisuke Yamada wrote: I'm also hit by exactly the same issue. Tmux fails to refresh screen (both input and output does not show up) until I switch to another window and back. It seems calling choose-client seems to fix the issue. For further detail, I'll run tmux with -vvv and will report more detail. Sorry, I forgot to update this bug. The tmux author and I eventually isolated the problem. It seems to be limited to aggressive-resize windows being improperly set as hidden. Here is a patch which simply removes the hidden flag; it should be in the next upstream version. Index: resize.c === RCS file: /cvs/src/usr.bin/tmux/resize.c,v retrieving revision 1.5 diff -u -p -r1.5 resize.c --- resize.c21 Jun 2010 01:27:46 - 1.5 +++ resize.c14 Nov 2010 11:12:00 - @@ -113,11 +113,8 @@ recalculate_sizes(void) ssy = s-sy; } } - if (ssx == UINT_MAX || ssy == UINT_MAX) { - w-flags |= WINDOW_HIDDEN; + if (ssx == UINT_MAX || ssy == UINT_MAX) continue; - } - w-flags = ~WINDOW_HIDDEN; limit = options_get_number(w-options, force-width); if (limit != 0 ssx limit) Index: tmux.h === RCS file: /cvs/src/usr.bin/tmux/tmux.h,v retrieving revision 1.246 diff -u -p -r1.246 tmux.h --- tmux.h 11 Nov 2010 20:51:30 - 1.246 +++ tmux.h 14 Nov 2010 11:12:01 - @@ -843,9 +843,8 @@ struct window { int flags; #define WINDOW_BELL 0x1 -#define WINDOW_HIDDEN 0x2 -#define WINDOW_ACTIVITY 0x4 -#define WINDOW_REDRAW 0x8 +#define WINDOW_ACTIVITY 0x2 +#define WINDOW_REDRAW 0x4 struct options options; Index: tty.c === RCS file: /cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.92 diff -u -p -r1.92 tty.c --- tty.c 16 Oct 2010 08:31:55 - 1.92 +++ tty.c 14 Nov 2010 11:12:02 - @@ -547,7 +547,7 @@ tty_write(void (*cmdfn)( if (wp-window-flags WINDOW_REDRAW || wp-flags PANE_REDRAW) return; - if (wp-window-flags WINDOW_HIDDEN || !window_pane_visible(wp)) + if (!window_pane_visible(wp)) return; for (i = 0; i ARRAY_LENGTH(clients); i++) { -- Nicholas Riley njri...@illinois.edu -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#575193: tmux dont refresh console
Hello, On Mon, May 24, 2010 at 04:38:11PM +0200, Karl Ferdinand Ebert wrote: Am Montag 24 Mai 2010, 15:20:06 schrieben Sie: I have the same issue on an Debian 5.0 vserver installation, Im using tmux only over an SSH connection. could you see if tmux -vvv started the described behaviour occurs and post the corresponding logs (maybe empty) in reply? Yes, I've started tmux with -vvv parameter and will post an log extract when the error occurs next. (logs are allready 60Mb big :o) greetings Fabian pgpJNFtHHcjH0.pgp Description: PGP signature
Bug#575193: tmux dont refresh console
I have the same issue on an Debian 5.0 vserver installation, Im using tmux only over an SSH connection. The screen wont be refreshed, eg if I type something I dont see the result, till switch the tab and then switch back... The bug only appears from time to time, also when I dont restart tmux the buggy behaviour dissappears for some time... Thought first its because I had used the libc6 stable version instead of the testing ver, but upgrading to libc6 testing dont solve the problem.. Dont know the steps to reproduce it, maybe SSH connection losses have something todo with.. ii libc62.10.2-6 Embedded GNU C Library: Shared libraries ii tmux 1.2-4terminal multiplexer i libncurses5 5.7+20100313-2 shared libraries for terminal handling i libevent-1.4-2 1.4.13-stable-1 An asynchronous event notification library ii libevent11.3e-3 An asynchronous event notification library best regards Fabian pgphqT4twaSES.pgp Description: PGP signature
Bug#575193: tmux dont refresh console
Am Montag 24 Mai 2010, 15:20:06 schrieben Sie: I have the same issue on an Debian 5.0 vserver installation, Im using tmux only over an SSH connection. The screen wont be refreshed, eg if I type something I dont see the result, till switch the tab and then switch back... The bug only appears from time to time, also when I dont restart tmux the buggy behaviour dissappears for some time... Thought first its because I had used the libc6 stable version instead of the testing ver, but upgrading to libc6 testing dont solve the problem.. Dont know the steps to reproduce it, maybe SSH connection losses have something todo with.. ii libc62.10.2-6 Embedded GNU C Library: Shared libraries ii tmux 1.2-4 terminal multiplexer i libncurses5 5.7+20100313-2 shared libraries for terminal handling i libevent-1.4-2 1.4.13-stable-1 An asynchronous event notification library ii libevent11.3e-3 An asynchronous event notification library best regards Fabian Hi, could you see if tmux -vvv started the described behaviour occurs and post the corresponding logs (maybe empty) in reply? It sounds identically like #575193 but I certainly don't think libc is in any kind involved in each case. Thanks, Karl Ferdinand Ebert signature.asc Description: This is a digitally signed message part.