wez / wezterm

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

Input delay with corresponding ERROR log `window::os::wayland::window > hide_cursor: Missing enter event serial` #5760

Open bonsairobo opened 4 days ago

bonsairobo commented 4 days ago

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

Linux Wayland

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

KDE Plasma

WezTerm version

20240624-065522-552bb1d6

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

I started using the Wezterm nightly RPM on Bazzite, and I'm noticing significant, inconsistent input delay when typing. Then I tried spawning wezterm from a separate Konsole shell and noticed the following error on every key stroke:

$ wezterm start
18:36:56.401  ERROR  window::os::wayland::window > hide_cursor: Missing enter event serial
...

This log message seems like it was added a month ago. I don't know what it means or if it might be related to the input delay I'm experiencing.

To Reproduce

  1. Install Bazzite (ghcr.io/ublue-os/bazzite-nvidia:stable version 40.20240624.0 (2024-06-24T17:14:39Z)
  2. Install Wezterm: rpm-ostree install https://github.com/wez/wezterm/releases/download/nightly/wezterm-nightly-fedora40.rpm
  3. Reboot
  4. Launch Wezterm and start typing

Configuration

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

-- This table will hold the configuration.
local config = {}

-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
  config = wezterm.config_builder()
end

config.font = wezterm.font 'JetBrainsMono Nerd Font'

config.color_scheme = 'catppuccin-mocha'

config.window_background_opacity = 0.95

config.hide_tab_bar_if_only_one_tab = true

return config

Expected Behavior

Responsive typing. This is what I'm used to from using Wezterm on NixOS.

Logs

wezterm version: 20240624-065522-552bb1d6 x86_64-unknown-linux-gnu Window Environment: Wayland Lua Version: Lua 5.4 OpenGL: NVIDIA GeForce GTX 1080/PCIe/SSE2 4.6.0 NVIDIA 550.90.07

Anything else?

No response