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 2560

Summary: [Regression] Desktop locking does not hide desktop contents
Product: TDE Reporter: Kristopher <gamrat.kristopher>
Component: tdebaseAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: major CC: bugwatch, deloptes, gamrat.kristopher, michele.calgaro, slavek.banko, wofgdkncxojef
Priority: P5    
Version: R14.0.1 [Trinity]   
Hardware: Other   
OS: Linux   
See Also: http://bugs.pearsoncomputing.net/show_bug.cgi?id=925
Compiler Version: TDE Version String:
Application Version: Application Name:
Bug Depends on:    
Bug Blocks: 2696    
Attachments: Screensaver Settings
gdb full backtrace from when screen is locked
gdb full backtract (again)
Screenshot of the bug

Description Kristopher 2015-12-18 20:35:43 CST
NOTE: This bug report belongs to R14.0.2, however that appears to have not been added to the Version list in Bugzilla.

Desktop locking is supposed to hide the contents of my desktop, including the panel, desktop icons, and windows. As of a few days ago, everything remains on screen, however it appears to "freeze", i.e. progress dialogs, windows with moving iconds, etc. appear to lock up as if the dekstop is completely frozen, and they resume their "animations" as soon as I type my password to unlock the desktop.

I have not changed any settings since before upgrading to R14.0.2.
Comment 1 Michele Calgaro 2015-12-19 00:58:52 CST
Kris,
can you post a list (or screenshot) of yuor settgins? it may help trying to reproduce the problem.
Also can you check if the kdesktop_lock process is blocked or not when this happens?
Comment 2 Kristopher 2015-12-19 09:12:48 CST
(In reply to Michele Calgaro from comment #1)
> Kris,
> can you post a list (or screenshot) of yuor settgins? it may help trying to
> reproduce the problem.
> Also can you check if the kdesktop_lock process is blocked or not when this
> happens?

Which settings would you need? At quick glance, I can't find anything specific to desktop locking in Control Center other than the screen saver settings, and I haven't messed with that since R14.0.0 (basically, two point-versions ago).

How would I tell if kdesktop_lock is blocking? Checking top from a VT, it ranges between 0.5% and 1.5% CPU usage, which seems odd to me since the computer should be completely idle when locked (barring a few applications like my chat clients that occaisionally need to do stuff).
Comment 3 Michele Calgaro 2015-12-19 09:22:22 CST
>Which settings would you need? At quick glance, I can't find anything specific 
>to desktop locking in Control Center other than the screen saver settings, and 
>I haven't messed with that since R14.0.0 (basically, two point-versions ago).
I was not saying the problem was caused by the settings.
From TDE control panel -> appearance & settings ->screensaver. This may help reproducing the problem, perhaps.

> How would I tell if kdesktop_lock is blocking?
From CLI, try 
ps aux |grep kdesktop
and post the result here. This will give some indication. I remember in the past we had issues we kdesktop_lock.
Comment 4 Kristopher 2015-12-19 09:48:16 CST
Created attachment 2594 [details]
Screensaver Settings
Comment 5 Kristopher 2015-12-19 09:51:11 CST
(In reply to Michele Calgaro from comment #3)
> >Which settings would you need? At quick glance, I can't find anything specific 
> >to desktop locking in Control Center other than the screen saver settings, and 
> >I haven't messed with that since R14.0.0 (basically, two point-versions ago).
> I was not saying the problem was caused by the settings.
> From TDE control panel -> appearance & settings ->screensaver. This may help
> reproducing the problem, perhaps.

Attached. Although this bug happens even when I manually lock my desktop, i.e. by going through TMenu -> Lock Session instead of waiting for the screensaver.

> > How would I tell if kdesktop_lock is blocking?
> From CLI, try 
> ps aux |grep kdesktop
> and post the result here. This will give some indication. I remember in the
> past we had issues we kdesktop_lock.

With username intentionally censored:

<username>     15201  0.3  2.3  53424 24376 ?        S    10:45   0:00 /opt/trinity/bin/kdesktop_lock --internal 3580
<username>     15279  0.0  0.1   4792  1972 tty1     S+   10:50   0:00 grep kdesktop_lock
Comment 6 Kristopher 2015-12-19 10:45:48 CST
I left my computer without locking it, and came back to find that the auto-locking properly hid desktop contents. However, the screensaver was not active as it should be.

I will try to see whether or not the auto-hiding always works when I let my computer auto-lock itself.
Comment 7 Michele Calgaro 2015-12-19 11:00:43 CST
> <username>     15201  0.3  2.3  53424 24376 ?        S    10:45   0:00 
> /opt/trinity/bin/kdesktop_lock --internal 3580
Uhm... everything looks as it should be.
Does it happen all the times or occasionally? And what about after a computer reboot? Just trying to collect as many info as possible because it looks like it may be a difficult one to track down.
Can you also attach gdb to the kdesktop_lock process when you screen is frozen and post a backtrace?

> I will try to see whether or not the auto-hiding always works when I let my 
> computer auto-lock itself.
Good. That may be a clue :-)
Comment 8 Kristopher 2015-12-19 11:53:21 CST
(In reply to Michele Calgaro from comment #7)
> > <username>     15201  0.3  2.3  53424 24376 ?        S    10:45   0:00 
> > /opt/trinity/bin/kdesktop_lock --internal 3580
> Uhm... everything looks as it should be.
> Does it happen all the times or occasionally? And what about after a
> computer reboot? Just trying to collect as many info as possible because it
> looks like it may be a difficult one to track down.
> Can you also attach gdb to the kdesktop_lock process when you screen is
> frozen and post a backtrace?

It seems to alternate between working every time, and not work every time -- as in, sometimes it hides the desktop every time I lock, sometimes it happens as described in my original report. There seems to be no rhyme or reason to when it decides to work, and when it doesn't.

Rebooting seems to have no effect.

> > I will try to see whether or not the auto-hiding always works when I let my 
> > computer auto-lock itself.
> Good. That may be a clue :-)

Still need to test this more thoroughly.
Comment 9 Kristopher 2015-12-19 11:53:59 CST
Created attachment 2596 [details]
gdb full backtrace from when screen is locked
Comment 10 Michele Calgaro 2015-12-19 13:21:51 CST
Kris, thanks for all the feedback.

> Created attachment 2596 [details]
> gdb full backtrace from when screen is locked
This bt was taken when the screen was lock (manually/automatically?) and everything was correctly hidden? 

It would also be useful if you could post a gdb backtrace in the other case, when the screen remains visible. Comparing the two backtrace may reveal a different path of function calls for example ;-) Thanks again
Comment 11 Kristopher 2015-12-20 01:14:49 CST
Created attachment 2598 [details]
gdb full backtract (again)

I wasn't really paying attention last time to whether or not the desktop was being hidden. This time, it was *not* being hidden for this backtrace.
Comment 12 Michele Calgaro 2015-12-20 05:49:08 CST
Thanks. I may come back with more requests when I look into this problem. It is something important, so we definitely have to look into it for r14.0.3.
Comment 13 Kristopher 2015-12-23 12:55:17 CST
Created attachment 2601 [details]
Screenshot of the bug

The taskbar buttons are intentionally censored through KolourPaint. Nothing else is modified.
Comment 14 Slávek Banko 2016-01-25 15:56:29 CST
Such a situation generally occurs to me on TDE 3.5.13.x.

Now I tested on my old notebook (Jessie, 32bit, TDE R14.0.3~pre). I tested the lock by shortcut and also by menu item. And in both cases in order initially display the background image and then the screen was locked.

Note: I do not use the SAK.
Comment 15 Kristopher 2016-01-25 20:42:58 CST
(In reply to Slávek Banko from comment #14)
<snip>
> Note: I do not use the SAK.

Hmm, that makes me wander if SAK may affect it. I'll enable SAK to test it.
Comment 16 Slávek Banko 2016-01-26 11:13:00 CST
(In reply to Kristopher from comment #15)
> (In reply to Slávek Banko from comment #14)
> <snip>
> > Note: I do not use the SAK.
> 
> Hmm, that makes me wander if SAK may affect it. I'll enable SAK to test it.

Caution - I have SAK disabled, you have SAK enabled.

However, now I conducted a test on a second test machine with Jessie (64bit). I enable SAK, but again, locking works in all possible ways: Ctrl+Alt+L, item from T-Menu, item from desktop context menu, Ctrl+Alt+Del + button Lock Session.
Comment 17 Michele Calgaro 2016-01-28 07:44:49 CST
I also rememebr problems like this before R14.0.0 and Tim and I worked on this for a while. Since R14.0 I have not incurred into this problem and I have not even being able to reproduce it.
I wonder if the key could be that in some special circumstances the combination of "delay saver start after lock" and "Use SAK" causes the screen to get locked but the saver not to be started.
Kris, if you are still experiencing the problem, could you try to run for a few days without the "delay saver start after lock" set and see if there is any difference? Same applies for "Use SAK".
Comment 18 Michele Calgaro 2016-09-24 08:58:15 CDT
Kris, what is the status of this issue? Still happening on your system?
Comment 19 Kristopher 2016-09-24 11:24:44 CDT
(In reply to Michele Calgaro from comment #18)
> Kris, what is the status of this issue? Still happening on your system?

As far as I can tell, it still happens on Debian, but is *partially* fixed on CentOS (I see a flurry of notifications from kdbusnotification flicker on then off too quick to read, most likely from my chat program changing my online status).
Comment 20 Michele Calgaro 2016-09-24 23:13:58 CDT
Thanks Kris.
Are you using R14.0.3 or Slavek's preliminary R14.0.4 packages?
There has been some work done in between, so it is important to know.
Comment 21 Kristopher 2016-09-25 21:42:56 CDT
(In reply to Michele Calgaro from comment #20)
> Thanks Kris.
> Are you using R14.0.3 or Slavek's preliminary R14.0.4 packages?
> There has been some work done in between, so it is important to know.

I am using 14.0.3. I did not know there were preliminary builds available.
Comment 22 Michele Calgaro 2016-09-26 08:12:40 CDT
> I am using 14.0.3. I did not know there were preliminary builds available.
Preliminary stable builds is basically a preliminary of next maintenance release (in this case R!4.0.4) maintained by Slavek on his own server. It contains all bug fixes that will be release in R14.0.4, but only available for Debian/Ubuntu distros. See here: https://wiki.trinitydesktop.org/Preliminary_Stable_Builds

Regarding this bug, there are two choices:
1) if you have a chance to test using the preliminary stable builds and you are willing to do so, please go ahead and let us know your feedback
2) otherwise I will move this bug to the R14.0.5 request list and you will be able to test again after R14.0.4 is officially released (which should be reasonable soon).

Is that ok for you?
Comment 23 Kristopher 2016-09-26 12:49:52 CDT
(In reply to Michele Calgaro from comment #22)
> > I am using 14.0.3. I did not know there were preliminary builds available.
> Preliminary stable builds is basically a preliminary of next maintenance
> release (in this case R!4.0.4) maintained by Slavek on his own server. It
> contains all bug fixes that will be release in R14.0.4, but only available
> for Debian/Ubuntu distros. See here:
> https://wiki.trinitydesktop.org/Preliminary_Stable_Builds
> 
> Regarding this bug, there are two choices:
> 1) if you have a chance to test using the preliminary stable builds and you
> are willing to do so, please go ahead and let us know your feedback
> 2) otherwise I will move this bug to the R14.0.5 request list and you will
> be able to test again after R14.0.4 is officially released (which should be
> reasonable soon).
> 
> Is that ok for you?

Unless the builds are provided for EL6-based distros (e.g. CentOS 6 et al.) or build instructions/scripts provided for LFS/CLFS, I have to go with option number 2.
Comment 24 Michele Calgaro 2016-09-27 08:42:56 CDT
Then no choice, we have to go for option 2 since preliminary stable builds are only available for Debian/Ubuntu.
Bug moved to R14.0.5 bug list.

Kris, please test again after R14.0.4 is released and let us know whether the problem has been fixed or not.
Comment 25 deloptes 2016-12-22 01:20:43 CST
FYI: I have configured the lock screen (screensaver) to hide content in my office profile since 14.0.3 on debian jessie and I never experienced a problem like the one described here.
Comment 26 Kristopher 2016-12-22 14:35:15 CST
I am unable to test this thoroughly due to SAK not working on CentOS (which is what I'm using right now). I commented about this on bug 925.

With "Hide active windows from screen saver" enabled in the screen saver options, everything is properly hidden from the lock screen. With that option disabled, my whole desktop and all active windows are shown behind the lock screen, HOWEVER this was never the case in the past -- this option would allow my windows & desktop to be shown in certain screen savers, but *NOT* behind the lock screen, so I still consider this broken.

As for whether or not this bug is valid with SAK enabled, I have to wait until SAK is fixed before testing.

If I ever get the chance to run TDE on Debian again, I'll test there too.
Comment 27 wofgdkncxojef 2017-08-12 02:24:27 CDT
you mean the random screensaver option can show the desktop?
It has an option not to use screensavers that manipulate the screen.

maybe "hide active windows" option should adjust this option.
Comment 28 Michele Calgaro 2018-05-01 05:30:05 CDT
Hi Kris,
I am planning to look at this bug again soon. 
Can you update us on whether this is still happening after the update to R14.0.4? That was one pending point we were waiting for in the past (see comment 24)
Comment 29 Kristopher 2018-05-01 17:15:04 CDT
(In reply to Michele Calgaro from comment #28)
> Hi Kris,
> I am planning to look at this bug again soon. 
> Can you update us on whether this is still happening after the update to
> R14.0.4? That was one pending point we were waiting for in the past (see
> comment 24)

I have not seen the problem occur in awhile, though I don't remember whether it was before or after upgrading to R14.0.4 that it stopped happening. Considering how sporadic it was before, I don't rule out the possibility of it happening again, though it's probably safe to close it for now unless you still want to look into it.
Comment 30 Michele Calgaro 2018-05-06 04:16:14 CDT
Ok, the work done between R14.0.3 and R14.0.4 was probably the key to fix the problem.
Since you have not seen this problem anymore and you also agree, let's close the bug for the time being.
Should you run into this problem again, please reopen the bug :-)