Bug 291381 - Random black screenlocker
Summary: Random black screenlocker
Status: RESOLVED FIXED
Alias: None
Product: Active
Classification: Plasma
Component: General (show other bugs)
Version: PA 2
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: unscheduled
Assignee: active
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-12 16:21 UTC by Javier Llorente
Modified: 2013-02-05 19:04 UTC (History)
5 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 Javier Llorente 2012-01-12 16:21:34 UTC
Version:           unspecified
OS:                Linux

After some testing and leaving my Wetab running, I have discovered that sometimes the screenlocker is black. You can still unlocking it by moving an imaginary locker up.
This is similar to another screen locker issue; you get a rectangle with the locker on and the rest is transparent - you can see whatever is below; the peek area, a window, etc.
Tested on 2012-01-10-09-09-basyskom-plasma-active-devel-meego-usb-live.iso
Tested on.

Reproducible: Sometimes

Steps to Reproduce:
1. Use PA for some time
2. Leave it running
3. Observe the display


Expected Results:  
The screenlocker shouldn't turn black.
Comment 1 Javier Llorente 2012-01-12 16:24:04 UTC
Clarification: I left my Wetab running for some minutes and whenever it happened, it was on a subsequent boot (not on first boot).
Comment 2 Javier Llorente 2012-01-13 14:55:10 UTC
Sometimes the screenlocker is completely transparent. You can see the windows, the top bar, everything. At some point, the middle part of the screenlocker appears (with the locker) while the rest continues to be transparent.
Tested on 2012-01-13-11-27-basyskom-plasma-active-devel-meego-usb-live.iso
Comment 3 Javier Llorente 2012-01-24 09:35:49 UTC
I've been able to reproduce it on 2012-01-20-19-26-basyskom-plasma-active-devel-meego-usb-live.iso.
This is what ~/.xsession-errors says 

file:///usr/share/kde4/apps/kscreenlocker/lockscreen-active.qml:145:5: QML Image: Cannot anchor to a null item.
Comment 4 Lamarque V. Souza 2012-02-28 10:55:09 UTC
Has anyone been able to reproduce this problem? Some problems with kwin's opengl acceleration has been fixed in the last week, so this problem may have been fixed as well.
Comment 5 Marco Martin 2012-04-11 08:48:16 UTC
here didn't happen since a while, let's still keep an eye on it (i suspect different behavior between xrender/opengl and different behavior between meego/mer
Comment 6 Lamarque V. Souza 2012-04-11 09:24:13 UTC
Yesterday I saw the transparent problem happening sometimes in the lastest testing image (2012-04-10-10-37-basyskom-plasma-active-testing-meego-usb-live.iso) installed in VirtualBox. The interesting part is that compositing is now working with VirtualBox.
Comment 7 Thomas Lübking 2012-04-24 18:54:06 UTC
pot. either driver bug or utilization of MSAA and no glClearColor in the screensaver hack - see bug #263974

There's been some talk on screensavers, Martin actually wanted to move it to kwin, but there've been opposing statements. My personally favorite location would actually be kdm and invoke a kdm greeter as security layer.

See http://lists.kde.org/?t=131818348300001&r=1&w=2 for the k-c-d thread and -self promoting- http://lists.kde.org/?l=kde-core-devel&m=131853544901721&w=2 for ossis talk on kdm usage
Comment 8 Lamarque V. Souza 2012-04-24 19:28:31 UTC
(In reply to comment #7)
> pot. either driver bug or utilization of MSAA and no glClearColor in the
> screensaver hack - see bug #263974

Ok, I do not understand much about OpenGL programming. Where the hack you are talking about is located? In kwin or in the screensavers?
 
> There's been some talk on screensavers, Martin actually wanted to move it to
> kwin, but there've been opposing statements. My personally favorite location
> would actually be kdm and invoke a kdm greeter as security layer.
> 
> See http://lists.kde.org/?t=131818348300001&r=1&w=2 for the k-c-d thread and
> -self promoting-
> http://lists.kde.org/?l=kde-core-devel&m=131853544901721&w=2 for ossis talk
> on kdm usage

I followed some of those discussions. Well, it seems there are people interested in using light-dm instead of kdm, how that would affect moving screenlocker to kdm? What about this approach to move it to ksmserver? If the locker crashes the user is just logged off, there is less security risk, just the possible data loss is the problem :-) Specialy if you use one of those crazy optimizations filesystems use to make them look good in benchmarks.
Comment 9 Thomas Lübking 2012-04-24 19:45:07 UTC
(In reply to comment #8)

> Ok, I do not understand much about OpenGL programming. Where the hack you
> are talking about is located? In kwin or in the screensavers?
*ggg* xscreensaver "modules" (eg. glmatrix) are traditionally called "xscreensaver hacks" - sorry for confusion :-)

What basically happens (for that bug) is that the GL code in the screensaver *assumes* there's some black background (w/o actually causing it) what is no longer necessarily true for a composited desktop and esp. MSAA (multiscreen sampling for antialiasing)

> I followed some of those discussions. Well, it seems there are people
> interested in using light-dm instead of kdm, how that would affect moving
> screenlocker to kdm?

you could not (easily) invoke the greeter as actual lock layer (and fancy animations as optional, well... fancy animations)

> What about this approach to move it to ksmserver?
similar good protection against ctrl+alt+* but the (ksmserver) code is (i think) more complex (at least doing a lot of unrelated stuff) and doesn't actually handle logging in atm (think of other PAM stuff, eg. logging in by touching some image points etc.) - in terms of security the actual login handler seemed the far more natural location to me (but of course spellbinds you to that DM)
Comment 10 Martin Flöser 2012-04-24 19:59:50 UTC
> (In reply to comment #7)
>> pot. either driver bug or utilization of MSAA and no glClearColor in 
>> the
>> screensaver hack - see bug #263974
>
> Ok, I do not understand much about OpenGL programming. Where the hack 
> you are
> talking about is located? In kwin or in the screensavers?
The hack is no longer used in the screenlocker branch used in PA. Which 
reminds me: I should finish it for 4.9
Comment 11 Thomas Pfeiffer 2012-05-30 18:24:17 UTC
This issue had vanished on Meego a while ago, but it has returned on Mer.
Comment 12 Thomas Pfeiffer 2012-12-06 21:24:50 UTC
Can anybody still reproduce this problem? I haven't seen it in a while, so it's probably fixed in Mer by now.
Comment 13 Thomas Pfeiffer 2013-02-05 19:04:02 UTC
Since nobody has reportedly been able to reproduce the bug lately, I'll mark it as fixed.