Repository navigation
Description
Pre-flight checklist
- I searched existing issues and this is not a duplicate.
- I am on the latest release (0.8.16).
- Logi Options+ is not involved (Linux).
Which part of OpenLogi?
Agent (openlogi-overlay, the Actions Ring helper)
OpenLogi version
0.8.16 (AUR package openlogi 0.8.16-2)
Operating system
Linux
OS version & architecture
CachyOS (rolling), x86_64, kernel 7.3.0-2-cachyos, KDE Plasma 6.8.1 / KWin 6.8.1 (Wayland), NVIDIA RTX 3080 (nvidia-open)
Two monitors, both using fractional scaling and HDR:
- DP-2: 2560x1440 logical geometry at scale 1.5
- DP-1: portrait, 1253x2227 logical geometry at scale 1.15
Device model
MX Master 4 (046d:b042)
How is the device connected?
Bluetooth (direct, no receiver)
Affected area(s)
- Other: Actions Ring overlay
What happened?
The Actions Ring never appears. A few seconds after openlogi-overlay starts, KWin sends it a fatal protocol error:
ERROR wayland_backend: wp_viewport#35: error 0: invalid destination size
After that the overlay process does not exit. It busy-loops and logs this line hundreds of thousands of times per second:
ERROR wayland_backend::sys::client_impl: Protocol error 0 on object wp_viewport@35
Effects:
openlogi-overlayuses about 95% of a CPU core andsystemd-journaldabout 45%.- journald rate-limits it with lines like
Suppressed 9003056 messages from user@1000.serviceevery 30 seconds. - My journal hit its 1G cap and rotated away all older logs within a few hours.
- The agent's overlay supervisor never restarts the helper, because the process stays alive.
The failure is consistent. Killing the helper makes the agent spawn a new one, which hits the same error within seconds. It happened after a reboot as well.
invalid destination size is the wp_viewport.set_destination bad_value error, sent when the width or height is zero or negative (other than the -1, -1 unset value). My guess is that the overlay window's size rounds to zero or goes negative with fractional scaling or a portrait monitor.
At login, the first helper instance instead died with Broken pipe and exited with status 0. The agent restarted it, and the second instance hit the viewport error:
INFO openlogi_agent::overlay: helper started, pid 10191
ERROR wayland_backend::sys::client_impl: Io error: Broken pipe (os error 32)
Error trying to flush the wayland display: Broken pipe (os error 32)
INFO openlogi_agent::overlay: helper exited exit status: 0 after 3.4s
INFO openlogi_agent::overlay: waiting 4.0s before the next attempt
INFO openlogi_agent::overlay: helper started, pid 15244
INFO gpui_linux::linux::wayland::window: Server-side decorations requested, but the Wayland server does not support them. Falling back to client-side decorations.
INFO gpui_linux::linux::wayland::window: Server-side decorations requested, but the Wayland server does not support them. Falling back to client-side decorations.
ERROR wayland_backend: wp_viewport#35: error 0: invalid destination size
ERROR wayland_backend::sys::client_impl: Protocol error 0 on object wp_viewport@35
(repeated millions of times)
Expected:
- The overlay sets a valid viewport destination, so the Actions Ring works.
- If the Wayland connection hits a fatal error, the helper exits, so the supervisor can restart it, and it doesn't log in a hot loop.
Steps to reproduce
- KDE Plasma 6.8.1 Wayland, two monitors with fractional scaling (1.5 and 1.15, one in portrait).
- Start
openlogi-agentwith the Actions Ring enabled. - Within a few seconds,
openlogi-overlaylogswp_viewport#35: error 0: invalid destination sizeand starts spinning. - Press the haptic panel bound to
ShowActionsRing. Nothing appears.
openlogi list output
(inventory read from the running agent)
Logitech MX Master 4 (—, vid=046d pid=b042)
└─ slot 255 ● MX Master 4 (mouse, wpid=?, battery=90% full (discharging))
model_ids=[b042,0000,0000] ext=00 serial=<redacted> unit_id=<redacted> transports=btle
Activity
zugazagoitia commentedon Oct 23, 2026
I can reproduce the same issue, following the same steps, basic installation using the script and just opening and plugging in my MX Master 4, using the bolt receiver:
System:
OS: CachyOS x86_64
Kernel: Linux 7.2.10-1-cachyos
Display (SAME019): 5120x1440 @ 1.25x in 49", 60 Hz [External, HDR]
Desktop Environment: KDE Plasma 6.8.0
Window Manager: KWin (Wayland)
Update: Strange enough, after killing the openlogi-overlay process, the ring shows up and disappears
4ni1ak commentedon Oct 23, 2026
Thanks for the thorough report, your guess about fractional scaling was right. Both halves come from dependencies, not from OpenLogi's own code.
invalid destination size. Since #1906 the Actions Ring opens one layer-shell surface per output, anchored to all four edges with size 0×0. That's the layer-shell way to say "fill the output", and it's valid. GPUI's Wayland backend (gpui-pre-linux0.3.4,wayland/window.rs,set_size_and_scale) then gets the compositor's preferred fractional scale (1.5 / 1.15 / 1.25) before the first layer configure. Since the scale differs from its initial 1.0, it callswp_viewport.set_destination(0, 0)with the still-zero size. That's abad_value, so KWin kills the connection. At scale 1.0 the function returns early, which is why only fractional setups hit it. The fix is a guard so the destination is only set for a non-zero size. The real one follows a moment later from the configure.The busy-loop. GPUI itself exits its event loop on an error. But
calloop-wayland-source0.4.1 only propagatesWaylandError::Ioand dropsWaylandError::Protocol, andwayland-clientturns the failed dispatch intoOk(0). So after the fatal error the dead socket stays readable, every iteration fails and logsProtocol error 0 on object wp_viewport@35, and the process never exits. That's also why the supervisor never restarts it. Your first instance'sBroken pipeis an I/O error, which does propagate, so that one exited cleanly. Upstream fixed this on 2026-10-18 ("Stop ignoring non-IO errors", Smithay/calloop-wayland-source c52f3fe), but it isn't released yet.So the fix belongs in GPUI (the viewport guard) and in a newer
calloop-wayland-source(the loop). On the OpenLogi side the options are to pin both to patched revisions, or to fall back to the pre-0.8.15 maximized window on fractional-scale Wayland outputs until they ship. That's a call for @AprilNEA.Until then, only a 100% (1.0) scale on every output avoids it. Any other scale, 2.0 included, differs from the initial 1.0 and triggers the same path.
AprilNEA commentedon Oct 23, 2026
I checked @4ni1ak's analysis against the dependency sources, and it holds.
Bounds::default()(0×0) and all four anchors (layer_shell_ringinplacement.rs). Ingpui-pre-linux0.3.4 a window starts at scale 1.0.PreferredScalecallsset_size_and_scalewhile the size is still 0×0, so GPUI sendsset_destination(0, 0). Zed's currentmainhas the same unguarded call, so a GPUI version bump alone will not fix it.calloop-wayland-source0.4.1 does pass a protocol error through when dispatch returns it. It drops the error on the socket read and on flush, which keep onlyIoerrors.wayland-client0.31.14 ignores the backend error insidedispatch_pendingand returnsOk(0). So the error never reaches GPUI and the loop spins. Upstream commit c52f3fe fixes the read and flush paths. It is not released yet; the latest version on crates.io is 0.4.1.OpenLogi cannot avoid the 0×0 size from its own side. GPUI passes the window size straight to the layer surface's
set_size, so a non-zero placeholder would stop the surface from filling the output. The maintainer will decide how to carry the fix.Until then, the workaround stands: set every output to 100% scale.
AnbuBlackOpsTech commentedon Oct 26, 2026
I'm seeing the same thing on 0.8.18 with an integer scale, so it isn't limited to fractional scaling. I can also confirm that the
width > 0 && height > 0guard you described fixes it.Setup: CachyOS, KDE Plasma / KWin 6.8.1 (Wayland), RTX 4090 + Ryzen 7800X3D iGPU, MX Master 4 over Bluetooth LE. Two monitors: DP-2 2560x1440 @ 1.0, HDMI-A-2 1920x1080 @ 2.0.
Symptom: the Actions Ring took several seconds to appear, or didn't appear at all. Each press killed the overlay (
error in client communicationfrom KWin, thenBroken pipe), and the agent restarted it with 2s/4s/8s backoff. My helper exited instead of busy-looping, so I hit the I/O-error path rather than the spin.WAYLAND_DEBUG=clientshowed the ring surface on the 2x output getting a viewport destination before its first configure:Rendering on the iGPU (
ZED_DEVICE_ID) didn't change anything, so it isn't specific to NVIDIA or explicit sync.Fix I tested: I guarded the call in
gpui-pre-linux0.3.4 and applied it with[patch.crates-io]on top of v0.8.18:With this in place the ring appears instantly on both monitors. KWin no longer disconnects the overlay and the helper doesn't restart. The correct destination is set a moment later when the first configure arrives, as you expected.
AprilNEA commentedon Oct 26, 2026
Thanks for testing the guard on 0.8.18. That confirms the fix.
gpui-pre-linux0.3.10, released today, still callsset_destinationwithout the guard. A version bump alone does not fix it.How OpenLogi carries the patch is still open (
needs: decision). Until it ships, 100% scale on every output avoids the error.groobybugs commentedon Oct 26, 2026
I also hit this issue with OpenLogi 0.8.17.
System
Steps to reproduce
Observed:
openlogi-overlayrepeatedly loggedProtocol error 0 on object wp_viewport@36. The overlay used about 77% CPU,systemd-journaldabout 100%, andrsyslogdabout 168% (100% = one CPU core). The fans stayed active, and syslog grew from roughly 12 GiB to 13.3 GiB during diagnosis. A rotated syslog file was already approximately 711 GiB.After setting the display to 100% and restarting the agent and overlay, the viewport errors stopped and CPU usage dropped to almost zero during the 32-second check.
AprilNEA commentedon Oct 26, 2026
Thanks, this is the same bug. A 125% scale takes the path described above, and 100% avoids it.
Once the overlay is quiet, you can delete the rotated syslog file that the flood produced. The fix itself is waiting on how OpenLogi carries the GPUI patch (
needs: decision), so keep 100% until a release notes the fix.8 remaining items
AprilNEA commentedon Nov 6, 2026
Thanks for testing the guard on MangoWC. That makes three compositor families where the same guard fixes it: KWin, Hyprland and wlroots.
gpui-pre-linux(0.3.11) all still make the unguarded call.I've added wlroots to the title.
[-][Bug]: Linux Wayland (KDE, Hyprland): openlogi-overlay gets wp_viewport "invalid destination size" / "Size was <= 0" at startup, then busy-loops (Actions Ring never shows, ~100% CPU, journal flood)[/-][+][Bug]: Linux Wayland (KDE, Hyprland, wlroots): openlogi-overlay gets a fatal wp_viewport error at startup on non-1.0 scales, then busy-loops (Actions Ring never shows, ~100% CPU, journal flood)[/+]rhuhxx commentedon Nov 6, 2026
Confirming this on KDE Plasma (Wayland) as well, with a clean reproduction and a workaround.
Environment
openlogi listshows battery/DPI; default binding "Show Actions Ring" on the Haptic Sense Panel intact)Symptoms
openlogi-overlayspins at ~68% CPU permanently.Reproduction
Workaround confirmed
Setting display scaling to 100% and restarting the agent (
systemctl --user restart openlogi-agent.service) makes the problem disappear completely: the overlay goes idle and the Actions Ring opens on panel press. Reappears when a fractional scale is set again.This matches the issue analysis: the overlay computes an invalid wp_viewport size under a non-1.0 scale factor, KWin answers with protocol error 0 (bad_value), and the overlay then loops on the broken surface instead of recovering.
Happy to test a patch or provide further logs (WAYLAND_DEBUG traces etc.) if useful.
AprilNEA commentedon Nov 6, 2026
Thanks, this is the same bug. No further logs are needed: the cause is known, and the same guard fixed it for three reporters on KWin, Hyprland and wlroots. Keep 100% scale until a release notes the fix.
fix(overlay): exit on a Wayland protocol error instead of spinning
fix(overlay): skip the zero-size viewport destination at a fractional…
Run the LG ultrawide at scale 1 while OpenLogi's ring crashes on frac…
test(overlay): cover the zero-size viewport destination guard
revert(logitech): keep OpenLogi out of Hyprism
jhonaRiver commentedon Nov 20, 2026
Same bug on niri 26.04 (Ubuntu 26.04, Intel + RTX 4070 hybrid, eDP-1 at 1.5 + HDMI at 1.0). It's also what I reported in #2585, so that one can be closed as a duplicate.
I carried the
width > 0 && height > 0guard as a vendoredgpui-pre-linux0.3.4 +[patch.crates-io]on top of v0.9.0, in case it's useful as a stopgap while you decide how to ship it:jhonaRiver@c26f7e1e (branch
jr/wayland-viewport-guard)Tested on niri at 1.5×, both outputs, forcing each GPU: the ring opens on both monitors with 0 protocol errors (unpatched: ~450k/s). It's been running as my agent since then without issues.
fix(overlay): exit on a Wayland protocol error instead of spinning
fix(overlay): skip the zero-size viewport destination at a fractional…
test(overlay): cover the zero-size viewport destination guard
Wolfeg commentedon Nov 30, 2026
Hitting the same issue on COSMIC (Wayland) with OpenLogi 0.9.0, except both displays are at 100% scale — so the
scale = 1workaround doesn't apply here.Setup:
XDG_SESSION_TYPE=wayland)Scale: 100%(one normal, onerotate90)Once the overlay window opens, the main thread of
openlogi-overlaypins a CPU core at ~100% and floodsjournaldcontinuously with:Would love to see #2070 (or the upstream GPUI fix) land soon, since there's no scaling workaround on COSMIC.
carpweb commentedon Nov 30, 2026
Same here. OpenLogi flooding my syslog till drive is at 100%...
2026-11-30T20:03:35.290016+01:00 XPS openlogi-desktop[15211]: #033[2m2026-11-30T19:03:35.279208Z#033[0m #033[31mERROR#033[0m #033[2mwayland_backend::sys::client_impl#033[0m#033[2m:#033[0m Protocol error 0 on object wp_viewport@36