question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Terminal font rendering bug in Firefox and Chrome.

See original GitHub issue

OS/Web Information

  • Web Browser: Firefox, Google Chrome, Microsoft Edge
  • Local OS: Linux, Windows 10
  • Remote OS: Amazon Linux 2
  • Remote Architecture: x86_64
  • code-server --version: 3.11.1 c680aae973d83583e4a73dc0c422f44021f0140e

Steps to Reproduce

  1. open code-server tab in Firefox
  2. open terminal
  3. type _______

Expected

The underscore characters are visible.

Actual

The underscore characters are not visible, leaving what appears to be blank spaces. In Chrome based browsers, adjusting the terminal’s line spacing to 1.1 makes the underscores visible, but this does not work in Firefox.

Logs

Console stdout/stderr:

[2021-08-30T20:58:55.509Z] info    - Not serving HTTPS
[2021-08-30T21:02:15.733Z] debug forking vs code...
[2021-08-30T21:02:16.096Z] debug setting up vs code...
[2021-08-30T21:02:16.099Z] debug vscode got message from code-server {"type":"init"}
[2021-08-30T21:02:18.976Z] debug vscode got message from code-server {"type":"socket"}
[2021-08-30T21:02:18.979Z] debug protocol Initiating handshake... {"token":"aae87521-0bbb-4f11-9aac-5b37061ad123"}
[2021-08-30T21:02:19.040Z] debug protocol Handshake completed {"token":"aae87521-0bbb-4f11-9aac-5b37061ad123"}
[2021-08-30T21:02:19.041Z] debug management Connecting... {"token":"aae87521-0bbb-4f11-9aac-5b37061ad123"}
[2021-08-30T21:02:19.042Z] debug vscode 1 active management connection(s)
[2021-08-30T21:02:20.647Z] debug vscode got message from code-server {"type":"socket"}
[2021-08-30T21:02:20.647Z] debug protocol Initiating handshake... {"token":"1e6492e6-71b6-4fda-bf1e-5a1e11924ca3"}
[2021-08-30T21:02:20.884Z] debug got latest version {"latest":"3.11.1"}
[2021-08-30T21:02:20.884Z] debug comparing versions {"current":"3.11.1","latest":"3.11.1"}
[2021-08-30T21:02:20.919Z] debug protocol Handshake completed {"token":"1e6492e6-71b6-4fda-bf1e-5a1e11924ca3"}
[2021-08-30T21:02:20.920Z] debug exthost Connecting... {"token":"1e6492e6-71b6-4fda-bf1e-5a1e11924ca3"}
[2021-08-30T21:02:20.921Z] debug exthost Getting NLS configuration... {"token":"1e6492e6-71b6-4fda-bf1e-5a1e11924ca3"}
[2021-08-30T21:02:20.921Z] debug vscode 1 active exthost connection(s)
[2021-08-30T21:02:20.921Z] debug exthost Spawning extension host... {"token":"1e6492e6-71b6-4fda-bf1e-5a1e11924ca3"}
[2021-08-30T21:02:20.925Z] debug exthost Waiting for handshake... {"token":"1e6492e6-71b6-4fda-bf1e-5a1e11924ca3"}
[2021-08-30T21:02:21.328Z] debug exthost Handshake completed {"token":"1e6492e6-71b6-4fda-bf1e-5a1e11924ca3"}
[2021-08-30T21:02:21.328Z] debug exthost Sending socket {"token":"1e6492e6-71b6-4fda-bf1e-5a1e11924ca3"}
terminate called after throwing an instance of 'Napi::Error'
  what():  Inotify limit reached
IPC "File Watcher (nsfw)" crashed with exit code null and signal SIGABRT
  ERR [File Watcher (nsfw)] terminated unexpectedly and is restarted again...
  ERR [File Watcher (nsfw)] terminated unexpectedly and is restarted again...
terminate called after throwing an instance of 'Napi::Error'
  what():  Inotify limit reached
IPC "File Watcher (nsfw)" crashed with exit code null and signal SIGABRT
  ERR [File Watcher (nsfw)] terminated unexpectedly and is restarted again...
  ERR [File Watcher (nsfw)] terminated unexpectedly and is restarted again...
terminate called after throwing an instance of 'Napi::Error'
  what():  Inotify limit reached
IPC "File Watcher (nsfw)" crashed with exit code null and signal SIGABRT
  ERR [File Watcher (nsfw)] terminated unexpectedly and is restarted again...
  ERR [File Watcher (nsfw)] terminated unexpectedly and is restarted again...
terminate called after throwing an instance of 'Napi::Error'
  what():  Inotify limit reached
IPC "File Watcher (nsfw)" crashed with exit code null and signal SIGABRT
  ERR [File Watcher (nsfw)] terminated unexpectedly and is restarted again...
  ERR [File Watcher (nsfw)] terminated unexpectedly and is restarted again...
terminate called after throwing an instance of 'Napi::Error'
  what():  Inotify limit reached
IPC "File Watcher (nsfw)" crashed with exit code null and signal SIGABRT
  ERR [File Watcher (nsfw)] terminated unexpectedly and is restarted again...
  ERR [File Watcher (nsfw)] terminated unexpectedly and is restarted again...
terminate called after throwing an instance of 'Napi::Error'
  what():  Inotify limit reached
IPC "File Watcher (nsfw)" crashed with exit code null and signal SIGABRT
  ERR [File Watcher (nsfw)] terminated unexpectedly and is restarted again...
  ERR [File Watcher (nsfw)] terminated unexpectedly and is restarted again...
terminate called after throwing an instance of 'Napi::Error'
  what():  Inotify limit reached
IPC "File Watcher (nsfw)" crashed with exit code null and signal SIGABRT
  ERR [File Watcher (nsfw)] failed to start after retrying for some time, giving up. Please report this as a bug report!
  ERR [File Watcher (nsfw)] failed to start after retrying for some time, giving up. Please report this as a bug report!
^C[2021-08-30T21:02:59.332Z] debug child:72071 disposing {"code":"SIGINT"}

Screenshot

Screenshot 2021-08-30 135602

The “command not found” error was produced by typing several underscores and hitting enter.

Notes

This issue can be reproduced in VS Code: No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
senyaicommented, Sep 1, 2021

Got it! "terminal.integrated.gpuAcceleration": "off" fixes the issue: image

0reactions
jsjoeiocommented, Sep 1, 2021

Hooray! I’m going to close this. Thanks for posting the solution too!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Terminal font rendering bug in Firefox and Chrome. #4073
In Chrome based browsers, adjusting the terminal's line spacing to 1.1 makes the underscores visible, but this does not work in Firefox. Logs....
Read more >
Bad font rendering in both Chrome & Firefox : r/openSUSE
The problem I have is with font rendering in both Firefox and Chrome. The problem is particularly bad in Google Docs:.
Read more >
Font appears messed up only on Mozilla, only on one PC
In my experience, local font files typically cause this problem. I've experienced it in both Firefox and Chrome. While browser extensions can ...
Read more >
Wrong rendering of Webfonts when loading tabs in background
Seeing the same thing since updating to Chrome 32.0.1700.77 on OS X 10.9.1. Any website that has webfonts will exhibit this problem.
Read more >
Chrome and firefox are rendering incorrectly OPEN SANS ...
Also check if ClearType is affecting the text in your browser. Try enabling and disabling it and see if you see a difference....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found