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

Visual Artifacts appear when using Wezterm #6111

Open
keanesc opened this issue Sep 9, 2024 · 11 comments
Open

Visual Artifacts appear when using Wezterm #6111

keanesc opened this issue Sep 9, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@keanesc
Copy link

keanesc commented Sep 9, 2024

What Operating System(s) are you seeing this problem on?

Windows

Which Wayland compositor or X11 Window manager(s) are you using?

Windows 11 GlazeWM

WezTerm version

WezTerm-windows-20240812-215703-30345b36

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

While typing artifacts appear at random occasions.

Wezterm.Visual.Artifacts.2024-09-09.mp4

Tried the nightly build (.zip) but saw no difference.

To Reproduce

It's occurred since installation. Tried both the setup.exe as well as the .zip

Configuration

Issue occurs with no config as well

-- Pull in the wezterm API
local wezterm = require 'wezterm'

-- This will hold the configuration.
local config = wezterm.config_builder()

-- This is where you actually apply your config choices

-- Colour Scheme
config.force_reverse_video_cursor = true
local function get_appearance()
  if wezterm.gui then
    return wezterm.gui.get_appearance()
  end
  return 'Dark'
end

local function scheme_for_appearance(appearance)
  if appearance:find 'Dark' then
    return 'tokyonight_night'
  else
    return 'tokyonight_day'
  end
end

config.color_scheme = scheme_for_appearance(get_appearance())

config.window_background_opacity = 0.7
config.win32_system_backdrop = 'Acrylic'

-- Font
config.font = wezterm.font_with_fallback {
  -- { family = 'Iosevka Term', weight = 'Medium' },
  'Cascadia Code',
  'JetBrainsMono NF',
}

config.font_size = 13
config.line_height = 1.2

-- Keychars
config.use_dead_keys = false

-- UI
config.use_fancy_tab_bar = false
config.tab_bar_at_bottom = true
config.hide_tab_bar_if_only_one_tab = true
config.enable_scroll_bar = false
config.window_padding = {
    left = 0,
    right = 0,
    top = 0,
    bottom = 0,
}
config.scrollback_lines = 7000
config.window_decorations = "RESIZE"

-- Shell
--- Set Pwsh as the default on Windows
config.default_prog = { 'pwsh.exe', '-NoLogo' }

config.launch_menu = {
    -- {
    --     label = 'PowerShell',
    --     args = { 'powershell.exe', '-NoLogo' },
    -- },
    {
        label = 'Pwsh',
        args = { 'pwsh.exe', '-NoLogo' },
    }, {
        label = 'Command Prompt',
        args = { 'cmd.exe', '-NoLogo' },
    },
    -- {
    --     label = 'Ubuntu',
    --     args = { 'wsl.exe -d Ubuntu-22.04', '-NoLogo' },
    -- },
}


-- Command Palette
config.command_palette_font_size = 13
config.command_palette_bg_color = "#394b70"
config.command_palette_fg_color = "#828bb8"
config.ui_key_cap_rendering = "WindowsSymbols"

-- config.enable_kitty_graphics=true

-- and finally, return the configuration to wezterm
return config

Expected Behavior

No response

Logs

11:19:22.370 INFO wezterm_gui::termwindow > clicking http://www.slf4j.org/codes.html#StaticLoggerBinder

Anything else?

No response

@keanesc keanesc added the bug Something isn't working label Sep 9, 2024
@wez
Copy link
Owner

wez commented Sep 15, 2024

If you try commenting out one or the other (or both) of these lines, does it get better?

config.window_background_opacity = 0.7
config.win32_system_backdrop = 'Acrylic'

@keanesc
Copy link
Author

keanesc commented Sep 15, 2024

Yes commenting either line seems to fix it.
It is only when both are uncommented and the terminal is restarted that the artifacts reappear.

@wez
Copy link
Owner

wez commented Sep 15, 2024

Sounds like an issue with your graphics drivers, as those options don't change the way that wezterm directly works, they just set flags for your OS compositor.

@keanesc
Copy link
Author

keanesc commented Sep 25, 2024

Sure, I'll try updating my graphics drivers and see if that resolves the issue. If it doesn't, do you have any other suggestions for things I could check?

@rafaeloledo
Copy link

@keanesc

Using Ryzen 5600G

Before driver update

WhatsApp.Video.2024-10-22.at.00.06.23.mp4

After

WhastApp.Video.2024-10-22.at.00.10.15.mp4

@miversen33
Copy link

miversen33 commented Oct 25, 2024

I am experiencing the same issues. I do not have config.win32_system_backdrop = 'Acrylic' in my config, just opacity.

https://github.com/miversen33/miversen-dotfiles/blob/4b76297f072e18bfca4a64cf57b584d4bf73a420/terminals/wezterm/wezterm.lua

Not sure whats going on but resizing my window sometimes makes it go away.
Edit:

In my case, the issue is not consistent, it sometimes comes and sometimes goes.

@tankorsmash
Copy link

tankorsmash commented Oct 28, 2024

I'm on Windows 10 using Nvidia's 32.0.15.6094 driver (released in August 2024), and I'm having artifacts on screen when Wezterm is maximized but not in the foreground.

I can't reproduce it on command, but stops when I make Wezterm windowed. I do not have opacity enabled, but I do have the Acrylic backdrop enabled. I'll disable the Acrylic backdrop, and see if it helps at all.

edit: seems to have stopped the blurriness in other apps, thanks!

@rafaeloledo
Copy link

rafaeloledo commented Oct 31, 2024

@tankorsmash

I don't know if it's the same issue that we're talking. But i've "discovered" that mine is with Alt-Tab feature.

Maybe it's caused by the applications box that pops up. I wonder if it's causing this blinking.

Recorded with obs using Alt-Tab:

Notice that the recording even collapse and get black screen

2024-10-31.01-01-21.mp4

Recorded with smartphone:

Using Alt-Tab until 00:13, then using Alt-Esc.

20241031_010317.mp4

Recorded with obs using Alt-Esc which doesn't pops the windows boxes:

2024-10-31.01-04-29.mp4

Overall i think it's a "how Windows handles fullscreen apps" problem, game developers quite often mention this. Any thoughts @wez ?

@tankorsmash
Copy link

Doesn't quite look like the effects I'm seeing locally, but I don't have them anymore since removing that flag. Must be an issue lower level though!

@rafaeloledo
Copy link

@tankorsmash acrylic is not working good for me either

for now i gived up using it on fullscreen xD

@GottZ
Copy link

GottZ commented Jan 9, 2025

image
ez reproducible on windows 10 without any acrylic effects.
Simply start wezterm and resize it. voila, you see the artifacts.

local wezterm = require 'wezterm'
local act = wezterm.action

local config = wezterm.config_builder()

config.font = wezterm.font('Pragmasevka Nerd Font')
--config.color_scheme = 'rose-pine'
config.color_scheme = 'zenwritten_dark'
--config.color_scheme = 'ayu'
config.ssh_backend = "Ssh2"

config.keys = {
  --{ key = "Insert", mods = "SHIFT", action = act.PasteFrom("PrimarySelection") }
  { key = "Insert", mods = "SHIFT", action = act.PasteFrom("Clipboard") }
}

return config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants