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

Code starts with a blurry window until the window is reloaded #161231

Closed
major-mayer opened this issue Sep 19, 2022 · 12 comments
Closed

Code starts with a blurry window until the window is reloaded #161231

major-mayer opened this issue Sep 19, 2022 · 12 comments
Assignees

Comments

@major-mayer
Copy link

Does this issue occur when all extensions are disabled?: Yes!

  • VS Code Version: 1.72.0-insider
  • OS Version: Manjaro Linux KDE Wayland - latest rolling release

Steps to Reproduce:

  1. Start Visual Studio Code (Insiders) using this command code-insiders --ozone-platform=wayland --disable-extensions
  2. See the blurry window
  3. Press F1 and execute Developer: Reload window (you can also open another folder to reproduce this)
  4. The window reloads and is sharp again

This occurs on my KDE Wayland installation with a 4K display attached and set to 125% fractional scaling.

Before reloading the window:
grafik

After reloading the window:
grafik

@major-mayer
Copy link
Author

Additional version info:
grafik

@major-mayer
Copy link
Author

Any ideas where this could come from? Is this reproducible for you @deepak1556 or is the error on my side?

@Pajn
Copy link

Pajn commented Oct 1, 2022

Is the error on my side?

Same for me. At least I now have a workaround for the blurry window so thanks for that!

@v-tibi
Copy link

v-tibi commented Oct 11, 2022

This happens to me on Ubuntu if the laptop screen has fractional scaling and I position the second screen above the primary laptop screen. Text is blurry with fractional scaling until I disable then re-enable second screen, or reload the window. Vs code starts fine with sharp text if I leave the second screen at the default position on the right side, which is not very convenient.

@Merlin04
Copy link

Reloading doesn't seem to fix the blurry window for me, even with those command line flags

@sedax90
Copy link

sedax90 commented Oct 19, 2022

It's the same of #72759

@major-mayer
Copy link
Author

Not really. This issue is way more specific.
The other issus origins from 2019 where fractional scaling and Wayland support in general was not available, which is not the case anymore (at least if you put the use the right flags).

@deepak1556
Copy link
Collaborator

Merging to #72759 since it already tracks the blurry window under fractional scaling.

@Pajn
Copy link

Pajn commented Dec 6, 2022

#72759 is not at all the same. It's due to how gnome treats X applications under fractional scaling and could be argued is not at all related to vscode, but even if it were, it's when running vscode under xwayland.

This issue is when running vscode under native wayland and is a bug in vscode itself with vscode rendering in a much smaller buffer than optimal. Probably due to some race condition in handling wayland events since reloading the window fixes it.

Both issues results in blurry windows yes, but due to different problems, in different applications, under different windowing systems.

@major-mayer
Copy link
Author

@deepak1556 I'm not really happy with this.
I mean fractional scaling works for me, but only when I reload the VS Code window.
The issue that you merged mine with deals about Wayland support in general.
First about providing the support for fractional scaling at all and now, as far as I see, mostly with the topic of enabling the command line flags by default.

@Pajn that's pretty much what I was about to write ;)

@deepak1556
Copy link
Collaborator

The other issue also has reports from users on native wayland, the reason for merging is to consolidate and test if a newer runtime addresses the issue. Please follow that issue for updates, there isn't much VSCode can do to address this issue than update to newer runtime version.

@yatahaze
Copy link

yatahaze commented Jan 4, 2023

I am experiencing blur on 1.74.2 without it fixing on reload. I downgraded to 1.73.0 and am able to get it to render sharp after the developer reload.

I have to start it like this though:

code --enable-features=UseOzonePlatform --ozone-platform=wayland --log debug --log debug
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'ozone-platform' is not in the list of known options, but still passed to Electron/Chromium.

It would be nice if it was sharp without a reload, but I'm happy I can even get it sharp on 1.73. Weird!

@github-actions github-actions bot locked and limited conversation to collaborators Jan 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants