-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Occasionally print "[[O" or "[[I" abnormally on the screen #3601
Comments
This does not seem to be a problem with tmux, it is being sent literally "[[O" by the terminal:
I'd say this is a bug in WSL. You could turn |
Thanks! |
I'd suggest to reopen here. |
I won't rule anything out, but how could a race in tmux cause the terminal to send I have included the nearest 1004 sequences as well from the log, you can tmux enabled it a few minutes earlier (this was at startup). I have also included the most recent previous input which was an SGR mouse sequence:
If you look at the sequence of focus in/out, it is clear this should have been
The application inside tmux has enabled and disabled focus, but minutes earlier - note it leaves it disabled:
@fengyichui could you please run |
@mintty, I have no multiple tmux panes opened when this happens, only 1 session, 1 window, 1 pane. @nicm, the strace and tmux log: tmux_strace_log.zip |
The I recaptured the strace data: tmux_strace_log_1.zip The strace log:
The tmux log:
|
I strace
|
I had interpreted the reported |
@mintty The strace log is
I don't have a good way to automatically reproduce this issue without third-party tools. The |
I doubt this is WSL-specific but it would certainly help to repeat the test without WSL, i.e. with plain cygwin, mintty, tmux. |
The tool link is: https://www.tinytask.net/. The |
Which shell do you run? What's the startup profiles of that shell? What does |
The video does not give as what is called a reproducible test case. How to configure and how to run the test tool is necessary to be known. |
Other missing information, although likely irrelevant: Which WSL distribution do you run? |
@mintty, the mintty log: mintty1342.log. The wrong characters is "[[O" |
Reproduce step:
|
So you run tmux from your login profile or how does it get involved? There is no "tmux" in the log. |
tmux will enable focus three times yes as it processes TERM then DA response then XDA response. It doesn't remember it already turned it on. |
The tmux involved from my I change the default shell to bash and remove my ~/.bashrc. Tmux only includes |
In that log, focus reporting is enabled once, and the stray sequence appears while it is enabled. |
If it was a problem with libevent then strace would not show the incorrect data since it gets it before tmux even reads it. I do not know the architecture of WSL, what is in between mintty and tmux here? Can you reproduce this if instead of running tmux locally you ssh from mintty to a Linux host and run (the same version of) tmux there? |
I use ssh from mintty to my remote linux server (local is WSL, remote is real linux, tmux run on remote server), the issue is exist. And I try Cygwin in local, the issue is still exist. |
I could reproduce the issue with a process stack of (no WSL or ssh involved). This is not strictly significant as it occurs very rarely, roughly estimated once in 150 focus cycles. |
I could not reproduce it (so far) with dash instead of bash, either |
Hmm, it seems to occur only if tty traffic is piped through the ncurses library... |
ncurses doesn't do anything with that -- but some terminal descriptions may use mode 1004. I'd check what infocmp tells me. |
I've narrowed down the issue. It does occur without tmux involved, so I think the issue here can be closed. |
I closed this issue and tracked this issue at: mintty/wsltty#335. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Recently I have been using the master version and occasionally print "[[O" or "[[I" abnormally on the screen.
I used version 3.1 before and didn't find this issue
The logs: tmux_log.zip
There may be an error reading of the key on line 720311 of tmux-server-19578.log
The text was updated successfully, but these errors were encountered: