Summary: | plasmashell does not disown child processes, making restarting plasmashell kill applications too | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Martin <spleefer90> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | guido.iodice, kde, nate |
Priority: | NOR | ||
Version: | master | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Martin
2023-08-23 22:32:02 UTC
Actually no need for CTRL+C, running plasmashell --replace again does the job too. Are you using a system with the systemd boot process disabled? Do you mean using the systemd startup thing - https://blog.davidedmundson.co.uk/blog/plasma-and-the-systemd-startup/ ? This shows up as disabled on my system: systemctl --user status plasma-plasmashell.service I had a feeling. This was one of the issues that the systemd-based startup process was specifically developed to solve. :) I would recommend re-enabling it. I never manually disabled it, but this is a system from... 2021-06-27, and I presume it wasn't a forced switch for older systems? Actually no, despite not being enabled, it does run on startup, I just got confused because it was killed 4 days ago, but my uptime is indeed 4 days. % uptime -p up 4 days, 6 hours, 6 minutes % systemctl --user status plasma-plasmashell.service ○ plasma-plasmashell.service - KDE Plasma Workspace Loaded: loaded (/usr/lib/systemd/user/plasma-plasmashell.service; disabled; preset: enabled) Active: inactive (dead) since Thu 2023-08-24 23:49:35 CEST; 4 days ago Duration: 5h 36min 54.633s Process: 6451 ExecStart=/usr/bin/plasmashell --no-respawn (code=exited, status=0/SUCCESS) Main PID: 6451 (code=exited, status=0/SUCCESS) CPU: 11min 25.152s ... Aug 24 23:49:35 Luxuria plasmashell[6451]: zwp_linux_dmabuf_v1@29 still attached Aug 24 23:49:35 Luxuria systemd[5311]: plasma-plasmashell.service: Consumed 11min 25.152s CPU time. Ok, so you are using the systemd-enabled boot. But it sounds like you're also manually running the plasmashell process such that you can Ctrl+C it? Can you maybe expand on your use cases and what/how/why you're manually running and restarting plasmashell? I have panel freezes (most likely due to a specific widget, still testing that) that require me to restart plasmashell. Got it. So if you restart plasmashell using `systemctl restart --user plasma-plasmashell.service` instead of `plasmashell --replace`, does the problem still happen? Yep, still crashes chromium, it's still parented under plasmashell before and after the restart(on relaunch) with systemctl. Hmm, that's not what I was expecting. Are you 100% sure that plasmashell was running under systemd though? In other words, can you do this: killall -9 plasmashell systemctl restart --user plasma-plasmashell.service [start Chromium] systemctl restart --user plasma-plasmashell.service And then does Chromium still get killed? If it does, can you expand on how you're launching Chromium? And also mention whether it only affects Chromium, or all apps launched using the same method? > does Chromium still get killed? Yes, it's not a 100% chance though, but it does happen most of the time. > mention whether it only affects Chromium, or all apps launched using the same method? Seems like all apps, got the same on Tauon Music Box, which is a Python music player > can you expand on how you're launching Chromium? That seems to be very relevant, I am launching it through a pinned icon on the panel. If I launch it through a terminal, it is not parented to plasmashell and thus does not suffer from the same issue. Thanks. Unfortunately I am rather confused and not sure how to proceed from here. :/ *** Bug 482734 has been marked as a duplicate of this bug. *** |