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

            Bug ID: 497687
           Summary: kwin_x11 hangs or crashes on shutdown/reboot
    Classification: Plasma
           Product: kwin
           Version: 6.2.4
          Platform: Debian testing
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: platform-x11-standalone
          Assignee: kwin-bugs-n...@kde.org
          Reporter: miroslavr...@gmail.com
  Target Milestone: ---

Created attachment 176769
  --> https://bugs.kde.org/attachment.cgi?id=176769&action=edit
Hang callstack

SUMMARY
kwin_x11 frequently hangs on shutdown/reboot causing a delay and this message
to appear: "User job plasma-kwin_x11.service/stop running (XYs / 1min 29s)"

It appears to not terminate after being sent SIGTERM and has to be SIGKILL-ed
later. The hang callstack is attached. The thread "vsync event monitor" seems
to be stuck deallocating a thread-local GLX resource. The main thread is also
waiting for something, probably related to the vsync thread.

If kwin doesn't hang, it crashes immediately with SIGSEGV. Unfortunately, I was
not able to get the crash callstack as systemd-coredump does not seem to work
during shutdown and nothing shows up in coredumpctl.

STEPS TO REPRODUCE
1. Shutdown or restart.

OBSERVED RESULT
Shutdown gets delayed due to kwin hanging.

EXPECTED RESULT
No delays.

SOFTWARE/OS VERSIONS
OS: Debian Testing
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Kernel Version: 6.11.10-amd64 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 31,3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3070/PCIe/SSE2
Graphics Drivers: Proprietary nvidia-driver 565.77

Setting KWIN_X11_FORCE_SOFTWARE_VSYNC=1 fixes both the hang and the crash. I
think this prevents the existence of the vsync thread.

This issue seems to be similar to https://bugs.kde.org/show_bug.cgi?id=453928
in terms of symptoms but could have a different root cause.

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

Reply via email to