Skip to content
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

Terminal: your 131072x1 screen size is bogus. expect trouble #35798

Closed
ghost opened this issue Oct 7, 2017 · 21 comments
Closed

Terminal: your 131072x1 screen size is bogus. expect trouble #35798

ghost opened this issue Oct 7, 2017 · 21 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities terminal General terminal issues that don't fall under another label verified Verification succeeded
Milestone

Comments

@ghost
Copy link

ghost commented Oct 7, 2017

  • VSCode Version: Code 1.17.0 (be377c0, 2017-10-04T23:33:45.303Z)
  • OS Version: Linux x64 4.13.4-200.fc26.x86_64

when I open the integrated terminal, I see this message:
your 131072x1 screen size is bogus. expect trouble

22196280_1736826593284383_8653127284161334460_n

the image shows also bug #35794 with font isn't fitting in line.

@vscodebot vscodebot bot added the new release label Oct 7, 2017
@vscodebot vscodebot bot added the terminal General terminal issues that don't fall under another label label Oct 7, 2017
@ghost ghost changed the title terminal: your 131072x1 screen size is bogus. expect trouble Terminal: your 131072x1 screen size is bogus. expect trouble Oct 7, 2017
@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug linux Issues with VS Code on Linux labels Oct 7, 2017
@Tyriar
Copy link
Member

Tyriar commented Oct 7, 2017

I saw this happen on Fedora. Not sure what would be causing it but it seems harmless.

@Tyriar Tyriar added this to the Backlog milestone Oct 7, 2017
@andreiucm
Copy link

I have similar issue in ubutnu 16.04
#35773 (comment)

@mmclark
Copy link

mmclark commented Oct 8, 2017

I see it on my Fedora 26 installation as well. Beyond the error message, the font rendering seems off. Notice how the tops of the letters are clipped:

screenshot from 2017-10-08 09-00-32

@rbakaou
Copy link

rbakaou commented Oct 9, 2017

Got same letters clipped since Version 1.17.0. I'm on fedora 26 too.

@wbogocki
Copy link

wbogocki commented Oct 9, 2017

Same here, also on Fedora 26 on VMware with disabled GPU acceleration.

I set the font to Droid Sans Mono as a temporary workaround. It still gets clipped, this time at the bottom and only barely so it's a lot better.

@ivan-brko
Copy link

Got the same issue, Fedora 26 with Version 1.17.0.

@hpossn
Copy link

hpossn commented Oct 9, 2017

Fedora 25, same issue

@rohel01
Copy link

rohel01 commented Oct 9, 2017

  • VSCode Version: Code 1.17.0 be377c0, 2017-10-04T23:33:45.303Z
  • OS Version: Linux x64 4.13.4-200.fc26.x86_64
  • Extensions: Extension|Author truncated |Version -|-|- better-toml|bun|0.3.1 python|don|0.7.0 plantuml|jeb|2.3.0 cpptools|ms-|0.13.1 vscode-code-outline|pat|0.0.11 rust|rus|0.3.1 vscode-lldb|vad|0.6.2

Same issue, Fedora 26

@vstoykov
Copy link

I have the same issue. Found this on the StackExchange https://unix.stackexchange.com/questions/259529/your-screen-size-is-bogus-expect-trouble

This message comes from (perhaps other places) procps, which does a quick check to determine the screen width for ps command's notion of width.

procps makes this check in set_screen_size, e.g., if the screen size is too small to print anything useful:

 if((screen_cols<9) || (screen_rows<2))
   fprintf(stderr,"Your %dx%d screen size is bogus. Expect trouble.\n",
     screen_cols, screen_rows
   );

You might see the same code (via cut/paste) in other programs, but this is the most likely one.

As to why the problem occurred: when starting a terminal emulator, it can be multiple processes which communicate, sharing the information about the pseudo-terminal connection. Sometimes, the information is not shared rapidly enough, causing (usually) minor errors in the terminal settings.

@mprahl
Copy link

mprahl commented Oct 10, 2017

I'm having the same problem on Fedora 26.

@Tyriar
Copy link
Member

Tyriar commented Oct 10, 2017

Nice find @vstoykov, looks like the terminal is set at 1 row initially which is causing the error.

@Tyriar Tyriar added the help wanted Issues identified as good community contribution opportunities label Oct 10, 2017
@jstaf
Copy link

jstaf commented Oct 11, 2017

Some additional info - this happens only when you had the integrated terminal open the last time you closed VSCode. The display corruption (with the top of each line getting moved to the bottom of the line) appears to be new to the latest update.

@Tyriar
Copy link
Member

Tyriar commented Oct 13, 2017

I see layouts are occurring on start up with the rows at 1
screen shot 2017-10-13 at 1 54 09 pm

@sherl0cks
Copy link

FYI this is duplicate of #35644 which was fixed in https://github.com/Microsoft/vscode/milestone/55?closed=1

@vstoykov
Copy link

@sherl0cks the issue that you mansions is not the issue that is discussed here.

@sagebind
Copy link

I see the same kind of issue when using Fish shell. If the terminal is already open when the window loads, I see this in the terminal:

screen shot 2017-10-18 at 11 19 25 am

This doesn't happen if the terminal is initially closed, and then you toggle it manually after the window loads. It seems that the terminal size is set to be very small initially while the window is loading.

I reasonable fix I think would be to not actually spawn any integrated terminal processes until the window finishes loading (and the size can actually be known).

@Barugon
Copy link

Barugon commented Oct 18, 2017

Same issue on Fedora 26.

@ezralalonde
Copy link

ezralalonde commented Oct 18, 2017

I am also seeing this.

  • Fedora 26 (Workstation Edition)
    4.13.5-200.fc26.x86_64
  • Code 1.17.1
    1e9d365.

If I launch after having exited with the terminal open, I see the following message:

your 131072x1 screen size is bogus. expect trouble
your 131072x1 screen size is bogus. expect trouble

It appears to be start fine if I launch after exiting with the terminal closed, or if I exit the terminal (with CTRL+D or exit) and then re-open it.

Thanks to jstaf for mentioning the workaround above, it helped me. And thanks to the entire vscode team for making such a wonderful product. I have tried many editors, and Code's the only one which has been able to take any mindshare from vim. I'm a very happy user. Thank you!

@FelikZ
Copy link

FelikZ commented Oct 23, 2017

same 1.17.2

@Tyriar
Copy link
Member

Tyriar commented Oct 25, 2017

I think this is also causing this on Windows:

image

@Tyriar Tyriar removed the linux Issues with VS Code on Linux label Oct 25, 2017
@guildeol
Copy link

guildeol commented Oct 26, 2017

Hi!
The clipping issue seems to occur if the fonts for vscode and the terminal are different. After I changed vscode to use the same font as my terminal, the clipping was gone (though the 'screen size is bogus' persists).

image

@Tyriar Tyriar closed this as completed in 17991f9 Oct 28, 2017
@mjbvz mjbvz added the verified Verification succeeded label Nov 3, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities terminal General terminal issues that don't fall under another label verified Verification succeeded
Projects
None yet
Development

No branches or pull requests