https://bugs.kde.org/show_bug.cgi?id=489840

            Bug ID: 489840
           Summary: kglobalacceld 100% CPU in Xvnc session
    Classification: Frameworks and Libraries
           Product: frameworks-kglobalaccel
           Version: 6.1.0
          Platform: Gentoo Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdelibs-b...@kde.org
          Reporter: kde.b...@headbank.co.uk
  Target Milestone: ---

Created attachment 171431
  --> https://bugs.kde.org/attachment.cgi?id=171431&action=edit
TigerVNC Xvnc session log

SUMMARY
When a plasma-x11 session is launched in TigerVNC's Xvnc on current Gentoo
(default OpenRC-based Plasma profile), kglobalacceld does not initialise
correctly: the shortcuts it should manage do not work, and as soon as the
session receives any keyboard input via the VNC client, it immediately goes to
100% CPU.

If manually killed and relaunched, the CPU surge is not repeated but keyboard
input is completely disabled - not just the shortcuts, it's not even possible
to e.g. type text in KWrite. After this there are also other input dysfunctions
seen, possibly indicating spurious modifier-key down states: e.g. Scrolling
down with the wheel of a mouse on any window reduces its opacity; dragging on a
scrollbar moves the whole window.

A version of this bug existed on the same host under KDE5, with the difference
that killing and relaunching the then-named kglobalaccel5 *did* allow it to
function normally thereafter (and there was none of the brokenness described
above).

STEPS TO REPRODUCE
1.  emerge net-misc/tigervnc kde-plasma/plasma-desktop:6
2. Configure and start tigervnc initscript for existing user of plasma-x11
desktop
3. Connect to Plasma VNC session from TigerVNC vncviewer on another machine
4. Press any key

OBSERVED RESULT
kglobalacceld process goes to 100% and global shortcuts are unavailable.

EXPECTED RESULT
Global shortcuts can be used as configured and CPU does not melt.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.1-gentoo (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-7600U CPU @ 2.80GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Manufacturer: LENOVO
Product Name: 20HMS17U03
System Version: ThinkPad X270

ADDITIONAL INFORMATION
I described the KDE5 occurrence of this bug in the existing and very old Bug
#306352 , however I think myself and others were wrong to glom onto that older
issue with a grab-bag of very differing symptoms, contexts and apparent
triggers. I'm hopeful that this single very specific scenario can be examined
in isolation to get purchase on what the cause might be.

Attached is a VNC session log in which I

- Started the tigervnc initscript from a console VT with plasmax11 session
configured for my user
- connected via tigervnc-client from another machine
- Pressed CTRL key to trigger the CPU surge
- Issued "killall -USR1 kglobalacceld" via a desktop shortcut (only way I can
do so when the bug triggers)
- Opened yakuake via its tray icon
- Opened Kwrite and dolphin from iconbar to test shortcut function
- Issued "/usr/libexec/kglobalacceld" in yakuake
- Attempted global shortcuts e.g. Alt-Tab with the opened apps (nope)
- Attempted typing in another tab in yakuake (nope)
- Killed kglobalacceld again by closing the tab in yakuake
- Shutdown the machine

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to