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

            Bug ID: 517292
           Summary: powerdevil crashes XWayland session on Wayland by
                    calling X11-only function
                    KX11Extras::compositingActive()
    Classification: Plasma
           Product: plasmashell
      Version First 6.6.2
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: Power management & brightness
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: 1.0

SUMMARY
powerdevil crashes XWayland session on Wayland by calling X11-only function
KX11Extras::compositingActive()

STEPS TO REPRODUCE
1. Start a KDE Plasma Wayland session without a display manager (launched from
console)
/usr/libexec/plasma-dbus-run-session-if-needed startplasma-wayland >
~/kde-sessionlog 2>&1

2. Wait a few seconds after the desktop appears

OBSERVED RESULT
Intially, previous applications are loaded and for a moment or two everything
is normal. 
The session freezes and becomes completely unresponsive. 
Check the session log and observe the following sequence:

```
org.kde.powerdevil: Handle button events action could not check for screen
configuration
dbus: Activating service name='org.kde.LogoutPrompt' requested by
org_kde_powerdevil
kf.windowsystem: static bool KX11Extras::compositingActive() may only be used
on X11
kwin_xwl: The X11 connection broke (error 1)
```
WORKAROUND
Confirm by renaming /usr/libexec/org_kde_powerdevil — session runs stably
without it

EXPECTED RESULT

To not freeze/hang. 

SOFTWARE/OS VERSIONS
Void linux (glibc, runit). 
Linux/KDE Plasma:  6.6.2
KDE Plasma Version: 6.6.2
KDE Frameworks Version: 6.23.0 
Qt Version: 6.10.2

ADDITIONAL INFORMATION
Kernel: 6.12.76_1 (64-bit)
Graphics Platform: Wayland
Processors 12 x AMD Ryzen 5 7640U w/ Radeon 760M Graphics
Memory: 60.6 GiB of usable RAM
GPU: AMD Phoenix1 (amdgpu driver)
Mesa version: 25.3.3
XWayland version: 24.1.9

Started after update to powerdevil 6.6.2 — worked before the update

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

Reply via email to