wez / wezterm

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

WezTerm freezes after keyboard repeat #5942

Open jonathanslenders opened 1 month ago

jonathanslenders commented 1 month ago

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

macOS

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

No response

WezTerm version

20240811-112922-0ac1e948

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

When holding down any key for a few seconds until it repeats, after releasing the key, the terminal becomes completely unresponsive for further key presses, except for control-key combinations. Resizing and mouse support remains functional, only typing is blocked.

I didn't had the issue until I upgraded today, I can't recall the previous version I had installed. It does not happen with any other terminal emulator.

To Reproduce

Hold down any key, like 'a' until it repeats. Release the key. Typing no longer works.

Configuration

wezterm.lua is empty.

Expected Behavior

No response

Logs

Debug Overlay wezterm version: 20240811-112922-0ac1e948 aarch64-apple-darwin Window Environment: macOS 14.6.1 (23G93) Lua Version: Lua 5.4 OpenGL: Apple M1 Pro 4.1 Metal - 88.1 Enter lua statements or expressions and hit Enter. Press ESC or CTRL-D to exit

Anything else?

When it happens, typing in other tab pages or the debug overlay is not possible. Opening the debug overlay using ctrl-shift-l works fine. Typing in a new window is also no issue.

aaronmcadam commented 1 month ago

I'm seeing this too. I hoped increasing the key repeat rate or reducing the delay until repeat would help, but it didn't.

CleanShot 2024-08-15 at 21 01 39@2x

aaronmcadam commented 4 weeks ago

The following things have triggered the issue for me:

dteoh commented 3 weeks ago

I am also experiencing this issue. At first I thought it was something to do with Neovim (all keyboard input just dies once I go into a nvim-tree buffer), but now I see that just holding down one key in the shell also causes input to die. I can get input working again by using IME to switch to another language and back.