https://bugs.kde.org/show_bug.cgi?id=528961
Bug ID: 528961
Summary: plasma-keyboard re-creates the input-panel surface
continuously while typing; keystrokes are delayed or
lost; runtime-disable kills keyboard input in every
app
Classification: Plasma
Product: Plasma Keyboard
Version First unspecified
Reported In:
Platform: Debian stable
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Environment:
- Debian 13 (trixie), KDE Plasma Wayland, KWin 6.3.6
- org.kde.plasma.keyboard nightly flatpak (remote plasma-keyboard-nightly,
branch master); reproduced on commits a9881c75 (2026-11-10) and 915cd768
(2026-11-13); runtime org.kde.Platform 6.11
- Client where the loss is most visible: BlueBubbles 2.1.6 (Flutter, native
Wayland client, text-input-v3); other Wayland apps also lose keys during bursts
- QEMU/KVM guest, PCIe-passed-through Intel UHD 770, physical keyboard, Wayland
session
Steps to reproduce:
1. Enable org.kde.plasma.keyboard as the KWin input method on KWin 6.3.6.
2. Type continuously in a Wayland text client.
3. Run `journalctl -t kwin_wayland_wrapper -f` and watch the text field.
Observed behavior:
- KWin logs `kwin_virtualkeyboard: Replacing input panel ... with ...` at 7–10
events/minute while typing, with bursts of 7 in 6 seconds during a held
Backspace. On a light-use day I see ~20 events total; on an active typing day
896+ by early afternoon (433 in one hour alone).
- While the churn runs, each typed character takes 3–5+ seconds to appear and
some input never arrives at all (held Backspace 20×, nothing deleted). The
client itself is idle at the time (all threads parked in poll/epoll, 0% CPU,
D-Bus round trip 1–2 ms), so the loss happens upstream of the application.
- The IM has also crashed on this system: SIGABRT on 2026-10-26 and 2026-11-11,
SIGSEGV on 2026-11-15 and 2026-11-16 (the last during session teardown).
Startup logs contain 35× `qmlRegisterType requires absolute URLs.`
Test 1 — nightly update: a9881c75 → 915cd768 (three days of upstream changes):
churn unchanged (~16 events/100 s while typing) and typing lag unchanged.
Test 2 — runtime disable: `gdbus call --session --dest org.kde.KWin
--object-path /VirtualKeyboard --method org.freedesktop.DBus.Properties.Set
org.kde.kwin.VirtualKeyboard enabled '<false>'` while the IM is running:
keyboard input dies in EVERY application until re-enabled with `'<true>'`.
Physical-keyboard input therefore passes through the IM grab path, and the
churn is that grab/panel lifecycle flapping; the grab also appears to survive
IM teardown.
Test 3 — session without the IM: delete the kwinrc `[Wayland] InputMethod` key,
set `VirtualKeyboardEnabled=false`, then log out and back in: zero "Replacing
input panel" events and typing is immediate in every application. The
press-and-hold accent popup is lost — the feature that motivated enabling the
IM.
Interpretation:
`InputMethod::setPanel()` (kwin src/inputmethod.cpp) destroys and replaces the
panel window each time the IM registers a new input-panel surface.
plasma-keyboard appears to re-register its panel surface on normal
show/hide/enable cycles instead of reusing one surface, and physical keys are
lost across those transitions.
Related reports: bug 511844 (physical keyboard blocked after virtual keyboard
used — reported on Plasma 6.5.2, so this failure mode predates 6.7), 513936
(OSK activates for no reason), 514382 (hidden keyboard steals input), 519186
(keys infinitely repeat), 520678 (hide button does nothing on focus loss),
516722 (nightly flatpak crashes), 524916 (busy-loop at ~135% CPU on closed
Wayland connection).
Expected result:
The input-panel surface should persist across normal visibility changes (no
churn); keystrokes should never be delayed or dropped by IM lifecycle
transitions; disabling the virtual keyboard should restore direct
physical-keyboard routing immediately.
Additional data available on request: full journal excerpts with timestamps, a
WAYLAND_DEBUG=1 trace of the IM (get_input_panel_surface and grab events
correlated with the KWin replacements), a screen recording of lost keystrokes,
and a reproduction matrix across Flutter, Qt and terminal clients.
--
You are receiving this mail because:
You are watching all bug changes.