wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.28k stars 781 forks source link

Screen corruption #3148

Closed ilAYAli closed 1 year ago

ilAYAli commented 1 year ago

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

Windows

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

No response

WezTerm version

wezterm 20230221-203743-e6ffeaf2

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

The problem appears when I am doing development in neovim on windows with multiple related plugins. The Terminal suddenly becomes completely corrupted. This does not happen after a specific time or combination of keypresses; it can be cursor movement, search, ...

corrupt_term

This does not happen in other terminals Alacritty, ConEmu or Putty and does not seem to happen in Wezterm if I disable all my plugins. I suspect that it can be related to a plugin that asynchronously changes the UI like Treesitter for syntax highlightning or an LSP callback that trigger.

To Reproduce

I wish that I had some concrete, reproducible steps that I can list here, but I don't, so take this for what it's worth. It happens consistently in both in the latest stable and nightly

Configuration

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

return { color_scheme = "Nebula (base16)", font_size = 8, keys = { -- paste from the clipboard { key = 'V', mods = 'CTRL', action = act.PasteFrom 'Clipboard' },

-- paste from the primary selection
{ key = 'V', mods = 'CTRL', action = act.PasteFrom 'PrimarySelection' },

-- THIS IS JUST HERE TO SEE IF I WAS ABLE TO FIX THE CORRUPTION. IT DID NOT HELP: { key = 'K', mods = 'CTRL|SHIFT', action = act.Multiple { act.ClearScrollback 'ScrollbackAndViewport', act.SendKey { key = 'L', mods = 'CTRL' }, }, }, }, }

Expected Behavior

No response

Logs

CTRL-SHIFT-L does not work when the screen corruption happens, but the following is written to the logfile(s).

09:10:37.543 WARN window::os::windows::wgl > failed to created extended OpenGL context (CreateContextAttribsARB failed, GetLastError=8341 2095), fall back to basic

No other information is written to any of the files located in ~\local\share\wezterm

Anything else?

No response

wez commented 1 year ago

This is an issue with your graphics drivers. Try using the WebGPU front end: https://wezfurlong.org/wezterm/config/lua/config/front_end.html#webgpu

ilAYAli commented 1 year ago

+1 I have not experienced the problem since changing the front end.

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.