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

            Bug ID: 529071
           Summary: plasmashell hangs on shutdown for ~40s until systemd
                    SIGKILLs it (requesting unexisting screen geometry +
                    timeout)
    Classification: Plasma
           Product: plasmashell
      Version First master
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Keyboard Indicator widget
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: 1.0

DESCRIPTION
When shutting down the system, plasma-plasmashell.service consistently hangs
during stop, taking ~40 seconds until systemd times out and kills it with
SIGKILL.
This bug has been happening  since  6.8.2, waited till 6.8.3 still not fixed.

STEPS TO REPRODUCE
1. Shut down the system with `shutdown now`
2. Systemd hangs on PID , waiting for it till timeout then kills it
3. Next boot, check journalctl -b -1 logs.

OBSERVED RESULT
❯ journalctl --user -b -1 -u plasma-plasmashell.service -n 50
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 0
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 0
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 0
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 0
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 0
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: Player ready changed: false ->
plasmoid status changed: 6
Nov 18 06:48:35 wael-amigo plasmashell[965]:
qrc:/qt/qml/plasma/applet/org/kde/plasma/systemtray/main.qml:292:9: QML
AppletPopup: Exposed with no visual parent. Window positioning broken.
Nov 18 06:48:35 wael-amigo plasmashell[965]:
qrc:/qt/qml/plasma/applet/org/kde/plasma/systemtray/main.qml:292:9: QML
AppletPopup: Exposed with no visual parent. Window positioning broken.
Nov 18 06:48:35 wael-amigo plasmashell[965]: PipeWire remote error:  -32
connection error
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 0
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 0
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 0
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 0
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
available rect 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: requesting unexisting screen
geometry 1
Nov 18 06:48:35 wael-amigo plasmashell[965]: context kaput
Nov 18 06:48:35 wael-amigo plasmashell[965]: No object for name
"alsa_output.pci-0000_09_00.4.analog-stereo" returning nullptr
Nov 18 06:48:35 wael-amigo plasmashell[965]: No object for name
"alsa_output.pci-0000_09_00.4.analog-stereo" returning nullptr
Nov 18 06:48:35 wael-amigo plasmashell[965]: No object for name
"alsa_input.pci-0000_09_00.4.analog-stereo" returning nullptr
Nov 18 06:48:36 wael-amigo plasmashell[965]: Connection::sendnow not connected
Nov 18 06:48:36 wael-amigo plasmashell[965]: An error occurred during write.
The worker terminates now.
Nov 18 06:48:36 wael-amigo plasmashell[965]: Connection::sendnow not connected
Nov 18 06:48:36 wael-amigo plasmashell[965]: An error occurred during write.
The worker terminates now.
Nov 18 06:48:36 wael-amigo plasmashell[965]: Connection::sendnow not connected
Nov 18 06:49:15 wael-amigo systemd[886]: plasma-plasmashell.service: State
'stop-sigterm' timed out. Killing.
Nov 18 06:49:15 wael-amigo systemd[886]: plasma-plasmashell.service: Killing
process 965 (plasmashell) with signal SIGKILL.
Nov 18 06:49:15 wael-amigo systemd[886]: plasma-plasmashell.service: Main
process exited, code=killed, status=9/KILL
Nov 18 06:49:15 wael-amigo systemd[886]: plasma-plasmashell.service: Failed
with result 'timeout'.
Nov 18 06:49:15 wael-amigo systemd[886]: Stopped KDE Plasma Workspace.
Nov 18 06:49:15 wael-amigo systemd[886]: plasma-plasmashell.service: Consumed
3min 12.245s CPU time over 12h 43min 12.957s wall clock time, 697.4M memory
peak.


❯ journalctl -b -1 -n 300 -o short-unix | awk '{
    t = $1 + 0;
    if (prev > 0 && (t - prev) > 2) {
      printf "\n>>> HANG OF %.1f SECONDS HERE <<<\n%s\n%s\n\n", (t - prev),
prev_line, $0
    }
    prev = t; prev_line = $0
  }'

>>> HANG OF 39.6 SECONDS HERE <<<
1794980916.023613 wael-amigo plasmashell[965]: Connection::sendnow not
connected
1794980955.660919 wael-amigo systemd[886]: plasma-plasmashell.service: State
'stop-sigterm' timed out. Killing.

EXPECTED RESULT
Pc shutdowns instantly. 

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.8.3
KDE Frameworks Version: 6.32.0
Qt Version: 6.12.0
Kernel Version: 7.3.4-arch1-2 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 32 GiB of RAM (31.2 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 3080


ADDITIONAL INFORMATION
This bug has been happening  since  6.8.2, waited till 6.8.3 still not fixed.

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

Reply via email to