Skip to content

Terminal skips layout when restoring from tmux #71078

Closed

Description

I've had this issue for a while, just never created a ticket for it...

Very often, yet not always, when I reload my workbench, the terminal fails to relayout my tmux setup. I need to resize the terminal using the sash. Hiding and showing the terminal doesn't help. It's as if a layout call is missed somewhere.

Peek 2019-03-25 14-58

Activity

  1. added
    terminal
    on Mar 25, 2019
  2. added
    bug
    help wanted
    on Mar 31, 2019
  3. added this to the Backlog milestone on Mar 31, 2019
  4. Daniel-McCarthy commented on Apr 19, 2019

    @Daniel-McCarthy
    Contributor

    I have peeked at this a bit and started by setting up tmux with two panels as mentioned in the original post. I was able to reproduce this issue as well, however my experience was that when this occurred I was able to consistently make this occur repeatedly by closing the terminal with the X, then going to Terminal > New Terminal, where as reloading allowed it to display properly.

    Each time I reproduced this issue successfully I also got this error:

    ERR ioctl(2) failed.: Error: ioctl(2) failed. 
    
    at UnixTerminal.resize (/home/user/Documents/vscode/node_modules/node-pty/lib/unixTerminal.js:216:13)
    
    at TerminalProcess.resize (file:///home/user/Documents/vscode/out/vs/workbench/contrib/terminal/node/terminalProcess.js:152:30) 
    
    at TerminalProcessManager.setDimensions (file:///home/user/Documents/vscode/out/vs/workbench/contrib/terminal/browser/terminalProcessManager.js:186:31) 
    
    at _processManager.ptyProcessReady.then (file:///home/user/Documents/vscode/out/vs/workbench/contrib/terminal/browser/terminalInstance.js:1076:86)
    

    In case this helps in finding the issue, I have shared this here as I am not yet sure how to resolve it.

  5. Tyriar commented on May 1, 2019

    @Tyriar
    Contributor

    Upstream issue: microsoft/node-pty#220

  6. added
    upstream
    on May 1, 2019
  7. Tyriar commented on May 10, 2019

    @Tyriar
    Contributor

    The ioctl exception will give more detail on how it failed when #73597 is merged.

  8. Tyriar commented on May 13, 2019

    @Tyriar
    Contributor

    I looked into this and could repro without the ioctl errors. It really seems like an issue in tmux because the pty is initialized to the correct size, then another resize call is triggered with the same correct size, but tmux still renders wrong. Also strangely telling tmux to relayout fixes it (ctrl+b, r) which indicates to me the issue is in tmux.

  9. removed
    bug
    help wanted
    on May 13, 2019
  10. locked and limited conversation to collaborators on Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

terminalupstream

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions