By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 1419 - [Regression] 'dcop kdesktop KScreensaverIface quit' does not kill process
Summary: [Regression] 'dcop kdesktop KScreensaverIface quit' does not kill process
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: tdebase (show other bugs)
Version: R14.0.0 [Trinity]
Hardware: Other Other
: P5 normal
Assignee: Timothy Pearson
URL:
Depends on:
Blocks:
 
Reported: 2013-03-18 10:08 CDT by Darrell
Modified: 2013-06-29 18:05 CDT (History)
3 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version: GIT R14
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darrell 2013-03-18 10:08:05 CDT
GIT R14: Running 'dcop kdesktop KScreensaverIface quit' stops the screen saver from displaying but does not kill the associated process. This results in multiple instances of the screen saver runnning. The command works correctly in 3.5.13.
Comment 1 Timothy Pearson 2013-06-22 16:40:31 CDT
Is this still an issue with the latest GIT sources?

The quit call is supposed to quit the screensaver, however with R14 it is normal to have *one* kdesktop_lock process active at all times.  This is a change from 3.5.13.x and below, and was made to mitigate instances where it is impossible to lock a heavily loaded machine due to insufficient resources available to load a new process.  There was a time (until recently) where more than one kdesktop_lock process could exist, however that bug should have been resolved some time ago.

In short, if you see more than one kdesktop_lock process then please let me know how to reproduce that problem, otherwise if you only see one kdesktop_lock process per user after repeated DCOP quit calls then this bug report should be closed.
Comment 2 Timothy Pearson 2013-06-26 17:47:47 CDT
Closing RESOLVED WORKSFORME as I do not see more than one kdesktop_lock process per user at any time.  Please reopen this report if more than one kdesktop_lock process is noticed per user.
Comment 3 Darrell 2013-06-27 16:34:39 CDT
The lock mechanism is not related to this report. :-)

Try the following:

The banner screen saver best illustrates the problem. Before logging in, manually configure the user's kdesktoprc [ScreenSaver]:

Saver=KBanner.desktop
Timeout=10

* Login to start the Trinity desktop.
* Toggle to a different console (Ctrl-Alt-F6).
* Log in (root or user).
* Verify no Trinity screen saver is yet running: ps ax | grep kss

* Wait about 10 seconds.
* Verify only one Trinity screen saver process is running: ps ax | grep kss

* From the console, terminate the kss process: DISPLAY=:0.0 dcop kdesktop KScreensaverIface quit
* Verify the Trinity screen saver is still running: ps ax | grep kss

* Wait about 10 seconds.
* Verify two Trinity screen saver processes are running: ps ax | grep kss

* Terminate the kss process: DISPLAY=:0.0 dcop kdesktop KScreensaverIface quit

* Wait about 10 seconds.
* Verify three Trinity screen saver processes are running: ps ax | grep kss

* Toggle to the Trinity desktop (Ctrl-Alt-F7). Verify three screen saver banners.

I use the dcop command in some wrapper scripts in my HTPC. I discovered this bug a several months ago after updating my HTPC from 3.5.10 to R14 (I built the HTPC a few years ago, hence having 3.5.10 installed). After updating to R14, I noticed the screen saver was running when that had never happened previously. Eventually I narrowed the problem to the dcop command in my script wrappers. I then tested the dcop command in a 3.5.13.0 VM. The dcop command works fine in 3.5.13.

There has been a lot of work with the lock mechanism. Possibly something in that work affects the dcop command?
Comment 4 Darrell 2013-06-27 16:44:29 CDT
I forgot to add, after toggling back to Trinity and verifying three banners, stop the screen saver in a normal manner with a keyboard press or mouse movement.

Verify two kss processes are still running.
Comment 5 Timothy Pearson 2013-06-29 13:20:37 CDT
Thank you for the detailed explanation.  This should be fixed in GIT hash db67e0b.

Thanks for reporting!
Comment 6 Darrell 2013-06-29 18:05:45 CDT
Looks good here. Thanks!