Bug 358019 - [Session Management] Some application wont exit properly
Summary: [Session Management] Some application wont exit properly
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.5.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
: 358344 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-01-15 12:59 UTC by clivejo
Modified: 2016-06-24 01:07 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description clivejo 2016-01-15 12:59:19 UTC
Some applications (especially Kate) will not exit properly in plasma 5.5.3, but they work fine in earlier versions of plasma.  This means that when rebooted the desktop restores the non-terminated applications and my desktop is currently launching four kate windows on every boot.

KSysGuard shows five Kate processes running, but nothing in the taskbar.

Reproducible: Always

Steps to Reproduce:
1.  Start a few Kate windows
2.  Close the Kate windows
3.  Reboot


Actual Results:  
Multiple instances of Kate are running automatically on my desktop after a reboot

Expected Results:  
Kate show have exited properly and killed all any processes
Comment 1 nicols 2016-01-15 13:35:25 UTC
I can confirm this!

After closing Kate windows, processes still exists (i can see them via ps aux command).
After reboot, those windows are automatically restored.
Comment 2 clivejo 2016-01-15 14:37:04 UTC
I have installed kate 15.12.0 and this seems to solve the problem.
Comment 3 Martin Klapetek 2016-01-27 02:18:43 UTC
*** Bug 358344 has been marked as a duplicate of this bug. ***
Comment 4 Martin Klapetek 2016-01-27 02:18:58 UTC
Can anyone else confirm that Kate is fixed with 15.12 please?
Comment 5 Martin Klapetek 2016-01-27 02:19:32 UTC
Wrong status, sorry.
Comment 6 Andreas Hartmetz 2016-02-04 01:55:24 UTC
Probably another symptom of broken session management in Qt. While debugging that I've also seen that Kate's session management is a bit special - it probably works when it works, but when it fails it fails differently from most other applications.
Comment 7 Andreas Hartmetz 2016-02-04 01:56:18 UTC
"It works when it works" = It works in Kate when it works in Qt
Comment 8 Wolfgang Bauer 2016-02-19 12:11:39 UTC
(In reply to Andreas Hartmetz from comment #6)
> Probably another symptom of broken session management in Qt.

Well, this particular bug report rather sounds like the issue you fixed with 
https://quickgit.kde.org/?p=kate.git&a=commit&h=51861c31423e111ed64a1728cf7a55cecd5833a4 IMHO.

The reporter did state that it seems to be fixed in 15.12.0... (comment#2)
Comment 9 Andreas Hartmetz 2016-06-24 01:03:53 UTC
Assuming it's fixed, please reopen if it's not fixed in a recent version.
Comment 10 Andreas Hartmetz 2016-06-24 01:07:16 UTC
Note: "some processes" is not precise enough, I take this to be about Kate. There is still a known (to me at least) problem with shutdown because indeed "some processes" don't terminate voluntarily and systemd (unlike other init systems) waits for them for a full two minutes.