ammgws / wshowkeys

GNU General Public License v3.0
70 stars 12 forks source link

Crash on timeout #4

Open RichardJActon opened 1 year ago

RichardJActon commented 1 year ago

wshowkeys initially works fine but when you pause typing and the text times out it crashes generating this error message:

zwlr_layer_surface_v1@12: error 1: the layer surface has a width of 0 but its anchor doesn't include the left and the right screen edge wl_display_dispatch: Protocol error

If you set a higher value of -t it does not crash until it times out

I'm running it on: Fedora Linux 36 (KDE Plasma 5.25.5) Kernel 5.19.15-201.fc36.x86_64

ErynGalen commented 1 year ago

I have the same issue here, I'd be interested if anyone knew what is causing this. (on Archlinux, latest commit)

lisuke commented 1 year ago
❯ wshowkeys
zwlr_layer_surface_v1@11: error 2: layer_surface has never been configured
wl_display_dispatch: Protocol error

OS: Arch Linux KERNEL: 6.2.10-arch1-1 DE: Hyprland

DreamMaoMao commented 10 months ago

i have the same question , it can't use -t to set timeout, when timeout toggle, it will crash. OS: Arch Linux x86_64 Kernel: 6.5.7-arch1-1 DE: Hyprland

image

when i set -t 30 ,It won't crash for 30 seconds, but if you don't enter anything beyond 30 seconds, it will crash, so the problem is the crash caused by the timeout policy

khaneliman commented 5 months ago

I am running into the same issue as the other commenters, which are all using Hyprland. I see a different error on the OP though which is using plasma. Curious if it just has anything to do with the outdated protocol definition?


zwlr_layer_surface_v1@12: error 2: layer_surface has never been configured
wl_display_dispatch: Protocol error
nktnet1 commented 2 months ago

Similar issues, but no logs for when it stopped working.

Run with the command:

wshowkeys -a bottom

which has the same error message as #9 initially (although potentially unrelated):

$ wshowkeys -a bottom
libinput error: event8  - PIXA3848:00 093A:3848 Touchpad: kernel bug: clickpad advertising right button. See https://wayland.freedesktop.org/libinput/doc/1.26.1/clickpad-with-right-button.html for details

Also, the link https://wayland.freedesktop.org/libinput/doc/1.26.1/clickpad-with-right-button.html results in a 404.


For anyone looking for an alternative, there is:

it's not exactly the same interface/usage as wshowkeys or "screenkey" on xorg (it's controlled with a GUI), but a working alternative nonetheless.

JasonGantner commented 1 month ago

Can you check the exit status and messages that are produced with JasonGantner#3 and JasonGantner#4 please?

I can't reproduce the exact same error on sway but this should at least rule out a few options