Bug 445385 - Slow shutdown problems due to kwin
Summary: Slow shutdown problems due to kwin
Status: RESOLVED DUPLICATE of bug 445449
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 5.23.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-12 18:13 UTC by asvqmnmd
Modified: 2022-05-21 21:34 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
This error message shows up (412.65 KB, image/jpeg)
2021-11-13 08:20 UTC, asvqmnmd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description asvqmnmd 2021-11-12 18:13:49 UTC
SUMMARY
Whenever I try to shutdown my pc before the pc shuts down completely. My pc gets stuck on a message "Cleaning blocks /dev/sda3 132321/12142124 clean " and it takes 2 minutes for my pc to shutdown completely. I also asked people in the archlinux forums and they are having the same problem too - https://bbs.archlinux.org/viewtopic.php?pid=2002140#p2002140

STEPS TO REPRODUCE
1. Shutdown ur pc 
2. A message pops up "cleaning blocks 132321/12142124"
3. Takes 2 minutes for ur pc to shutdown

OBSERVED RESULT


EXPECTED RESULT
I expected the pc to shutdown normally like a normal linux distro would.
SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux (5.14.16-arch1-1)
(available in About System)
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Shutdown logs - 
Nov 09 11:11:51 rounak systemd[1]: session-2.scope: Stopping timed out. Killing.
Nov 09 11:11:51 rounak systemd[1]: session-2.scope: Killing process 1389 (kwin_x11) with signal SIGKILL.
Nov 09 11:11:51 rounak systemd[1]: session-2.scope: Killing process 1572 (CPMMListener) with signal SIGKILL.
Nov 09 11:11:51 rounak systemd[1]: session-2.scope: Killing process 2011 (QSGRenderThread) with signal SIGKILL.
Nov 09 11:11:51 rounak systemd[1]: session-2.scope: Failed with result 'timeout'.
Comment 1 Nate Graham 2021-11-12 23:04:17 UTC
What is sending that message? What tells you that it's KWin? Can you attach a screenshot?
Comment 2 asvqmnmd 2021-11-13 08:20:26 UTC
Created attachment 143507 [details]
This error message shows up
Comment 3 asvqmnmd 2021-11-13 08:27:13 UTC
(In reply to Nate Graham from comment #1)
> What is sending that message? 
In arch u have a command called as journalctl which gives u a log when u shutdown your pc and if anything goes wrong, one can always understand what went wrong by looking at the log. As the log says that systemd is not able to kill the kwin which means something is wrong with it. I tried with cinnamon , gnome and mate but I got no problems at all.
Comment 4 asvqmnmd 2021-11-13 08:31:15 UTC
This is my full shutdown log - 
http://ix.io/3ER4
Comment 5 asvqmnmd 2021-11-13 08:38:21 UTC
This is my shutdown log - http://ix.io/3Etu
Comment 6 asvqmnmd 2021-11-13 08:39:36 UTC
(In reply to asvqmnmd from comment #5)
> This is my shutdown log - http://ix.io/3Etu

this is the wrong shutdown log. 
This is the right one - http://ix.io/3Etu
Comment 7 asvqmnmd 2021-11-13 16:30:08 UTC
Here is a reddit post where people are having the same issue - https://www.reddit.com/r/kde/comments/qsxa0a/kde_slow_shutdown/
Comment 8 asvqmnmd 2021-11-14 17:33:37 UTC
https://bugs.kde.org/show_bug.cgi?id=445449
Comment 9 asvqmnmd 2021-11-15 08:20:39 UTC
I am using 
qt version - 5.15.2
KDE  Frameworks version - 5.88.0
KDE Plasma version - 5.23.3
And graphics platform - X11
Comment 10 Nate Graham 2021-11-16 14:07:28 UTC
Thanks for the info.
Comment 11 Aleix Pol 2021-11-23 23:18:09 UTC
Would you be able to test git master there? f377696bff39e35ae0f7ae6104d8732b3856744e could help address this issue.

Otherwise, could you try enabling systemd boot for Plasma and see if it addresses the problem for you?
https://invent.kde.org/plasma/plasma-workspace/-/wikis/Plasma-and-the-systemd-boot
Comment 12 asvqmnmd 2021-11-25 08:50:37 UTC
People having the same issue here I think it is a sddm issue or a kwin issue - https://bbs.archlinux.org/viewtopic.php?id=259577
Comment 13 fishears 2022-02-19 19:23:07 UTC
This is also happening on my newly installed Arch Wayland setup. I have found that pressing ctrl+alt+F1 during a slow shutdown causes the system to immediately continue shutting down normally. Has anyone else tested this behaviour and does it help with debugging?
Comment 14 Peter Shkenev 2022-03-01 18:15:49 UTC
I've experienced this problem on Arch Linux and Kubuntu 21.04 and 21.10. Earlier I had this bug with GNOME, but there was a period of time when Plasma didn't have this issue.
Comment 15 Nate Graham 2022-03-21 23:41:58 UTC

*** This bug has been marked as a duplicate of bug 445449 ***