workrave hangs after unlocking with input blocked

Bug #20070 reported by Colan Schwartz
32
Affects Status Importance Assigned to Milestone
Workrave
Fix Released
Unknown
gnome-screensaver (Ubuntu)
Invalid
Medium
Unassigned
workrave (Debian)
Fix Released
Unknown
workrave (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

After the daily limit is reached, I click on "Lock" to lock the screen. The
next day, I unlock the screen. Workrave doesn't refresh, it just hangs, with
input still blocked. (There's a grey patch where the dialog box used to be.) I
have to kill it from outide X to regain access to the desktop.

This only seems to be a problem if I wait until the next day. If I try
unlocking immediately, the dialog box comes back and I can "Skip" or "Postpone".
 This behaviour seems normal.

After logging in the next day, shouldn't the dialog box go away, the input be
unblocked, and the timers reset?

Kernel: linux-image-2.6.10-5-k7 (i686)
OS: Ubuntu Linux 5.04 (Hoary Hedgehog)
Desktop: GNOME 2.10.0
Package: workrave 1.6.2-1ubuntu1

Revision history for this message
Nafallo Bjälevik (nafallo) wrote :

I can reproduce this with rest break. I locked and went to shower. When I came
back, I unlocked xscreensaver and workrave had hanged itself.

Revision history for this message
Darius Scerbavicius (scdarius) wrote :

It was time for a rest break, so I locked the screen, came back and workrave had
hanged. I had to switch to a virtual terminal and kill it. Happened twice today.

Ubuntu 5.10 (Breezy Badger)
workrave 1.6.2-1ubuntu4

Revision history for this message
Daniel Stone (daniels) wrote :

my guess is that it doesn't deal well with one or both of other keyboard grabs
or override-redirect windows, and sleeps with what appears to be an exponential
backoff while attempting to regain control. if I move quickly after the
screensaver kicks in, I only have to wait a second or two to regain control. a
few hours, and it's VT switching and killall time. (incidentally, this bug is
humongously frustrating when you've broken XKB and thus can't switch VTs at all.)

Revision history for this message
Matt Zimmerman (mdz) wrote :

workrave seems happier with gnome-screensaver than it was with xscreensaver; is anyone still seeing this problem?

Changed in workrave:
status: Unconfirmed → Needs Info
Revision history for this message
Matt Zimmerman (mdz) wrote :

To answer my own question, yes, this is still happening in current Dapper.

When I strace gnome-screensaver when it's in this state, it's in some sort of weird loop in gs_grab_move_mouse where it sleeps and retries again and again. I think this is in fact a gnome-screensaver problem; would someone contact upstream?

Changed in workrave:
status: Needs Info → Confirmed
Changed in gnome-screensaver:
assignee: mdz → nobody
Revision history for this message
Adriaan Peeters (apeeters) wrote :

It sounds as if both gnome-screensaver (or xscreensaver) and workrave are fighting for access to mouse movements,.

Revision history for this message
Olivier Cortès (olive) wrote :

Just to add a confirmation it happens here too (Dapper, current).

If gnome-screensaver locks during the rest break, unlocking it when i'm back blocks the unlock dialog (goes gray without any input possible).

"killall gnome-screensaver" from the VT shows me a (presumably) workrave gray fullscreen (no trace of "rest break text" of buttons).

I killall workrave from the VT, screen is back normal.

=> I have to killall *both* to get back to usable screen.

Revision history for this message
Adriaan Peeters (apeeters) wrote :

I can get a working screen by killing just workrave.

Revision history for this message
Adriaan Peeters (apeeters) wrote :

Olivier (or someone else) can you please confirm that killing just workrave does _not_ get you back to a usable screen?

Try the following:

- Start restbreak
- Click lock
- Move mouse to open password dialog. Enter correct password.

Revision history for this message
Adriaan Peeters (apeeters) wrote :

confirmed in workrave

Changed in workrave:
status: Unconfirmed → Confirmed
Revision history for this message
Adriaan Peeters (apeeters) wrote :

needs info for gnome-screensaver

Changed in gnome-screensaver:
status: Confirmed → Needs Info
Revision history for this message
Olivier Cortès (olive) wrote :

sorry for the delay. Doing exactly as you suggest (killing only workrave) gets me to a usable workspace... gnome-screensaver seems not be faulty here.
i've tried 2 times to be sure, killing *only* workrave solved the "hang" problem.

Revision history for this message
Adriaan Peeters (apeeters) wrote :

Does not seem to be caused by gnome-screensaver (it happened with xscreensaver as well). Workrave has to be fixed here.

Changed in gnome-screensaver:
status: Needs Info → Rejected
Changed in workrave:
status: Unknown → Confirmed
Changed in workrave:
status: Confirmed → Fix Released
Revision history for this message
Daniel Holbach (dholbach) wrote :

 workrave (1.8.4-1ubuntu1) feisty; urgency=low
 .
   * Merged with Debian, remaining Ubuntu changes:
     - debian/applied-patches/server-file-changes.patch:
       - change applet category and hardcode icon.
     - debian/rules, debian/control:
       - build-depends on intltool and do translation magic.
   * debian/control:
     - changed Maintainer field.
   * debian/applied-patches/update-POTFILES.in:
     - updated po/POTFILES.in to make intltool-update happy again.
 .
 workrave (1.8.4-1) unstable; urgency=low
 .
   * New upstream version
     - KDE applet space fixed (closes: #289382)
     - historystats reader fixed (closes: #390495)
   * Add dependency on libxtst-dev to enable XRecord extension (closes: #388669)

Changed in workrave:
status: Confirmed → Fix Released
Revision history for this message
stefab (bluefuture) wrote :

Please sync with the last debian version that close debian bugs: #441930, #416252.
This last version solve a bug about an use of a bogus check to detect which screensaver
locking command to use that i think cause a problem on unlocking when gnome-screen saver and xscreensaver are both installed..

stefab (bluefuture)
Changed in workrave:
assignee: nobody → motu
status: Fix Released → New
Revision history for this message
Daniel Holbach (dholbach) wrote :

As Debian has a newer upstream version and Ubuntu is in Upstream Version Freeze, this needs an exception from the release team.

If somebody wants to work on the Ubuntu/Debian merge, I'm happy to mentor and sponsor.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Unassigning from MOTU, workrave is in main.

Changed in workrave:
assignee: motu → nobody
Changed in workrave:
status: Unknown → Fix Released
Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :

Fixed: ubuntu has 1.8.5 now.

Changed in workrave:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.