#983675 wev: Emits "invalid version" error at startup and consumes 100% CPU

Package:
wev
Source:
wev
Description:
tool for debugging events on a Wayland window
Submitter:
Ben Harris
Date:
2021-02-28 10:48:04 UTC
Severity:
important
#983675#5
Date:
2021-02-28 10:44:59 UTC
From:
To:
Dear Maintainer,

When run with no arguments, "wev" emits an error message and then
hangs.  "top" shows its CPU usage as 100.0% and on my laptop the fan
starts up suggesting a lot of CPU usage.  The precise error message
depends on which Wayland compositor wev running under.

Under GNOME Shell (gnome-shell 3.38.3-2):

wl_registry@2: error 0: invalid version for global wl_seat (17): have 5, wanted 6

Under Weston (weston 9.0.0-2):

wl_registry@2: error 0: invalid version for global xdg_wm_base (18): have 1, wanted 2

I think that, even if wev can't run under a particular compositor, it
should not consume 100% of a CPU thread while doing so.  I have tagged
this bug as "important" because it seems that this makes wev useless
under two major Wayland compositors.