Xubuntu/XFCE logout fails/is delayed: session manager must be in idle state when requesting a shutdown

Bug #1013548 reported by Jonas T. on 2012-06-15
68
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Xfce4 Session
Unknown
Unknown
xfce4-session (Ubuntu)
Undecided
Unassigned

Bug Description

Often when I trying to logout from Xubuntu/XFCE (12.04) (using the GUI logout dialog) just nothing happens at first. If I then try to log out once more, I get an error message saying

"Failed to log out. Session manager must be in idle state when requesting a shutdown."

After waiting some 10 seconds or so, I will eventually be logged out. Since XFWM is not started on the next boot/login, I first thought the bug might me somewhere in XFWM, but actually it happens _as well_ when using KWin as window manager. Funnily enough, however, KWin is restarted on restart/re-login.

This bug is somehow described in #978333 (https://bugs.launchpad.net/ubuntu/+source/xfwm4/+bug/978333) as well, but there the authors focus on XFWM not restarting. In contrast, I'm more concerned with the logout being delayed quite some time.

Note: This behavior was already present in the previous release (11.10).

Jonas T. (jo-t) on 2012-06-15
description: updated
description: updated
Jonas T. (jo-t) wrote :

Update: when I uncheck "save session on logout" in XFCE's settings manager (and then on the logout dialog as well), logout just works fine and instantly. For me, this a valid workaround and the culprit seems to be somewhere inside that session save feature.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xfce4-session (Ubuntu):
status: New → Confirmed

From upstream bug:

"When logging out, and 2+ application issue interact requests during their save-yourself-s, and (at least?) one of them actually starts interacting, the session manager will not continue normally when the interaction completes. Instead, it will wait 1 minute, and then forcibly close the session. During this period, a second logout attempt will say that the session manager must be idle when requesting shutdown."

"I can reproduce probably this bug with:
- start empty xfce4-session
- start firefox
- start gedit and type something to have unsaved changes
- do a xfce4-logout ("/usr/bin/xfce4-session-logout --logout")
=> 60s timeout, then logout. incomplete session at startup (no gedit, no xfwm4 started by session manager)."

"Yes. Unfortunately, with 4.8, even a single xsmp interact request may break the session logout."

[ Note - I can always reproduce this test case under Ubuntu/XFCE. Run Firefox, run gedit, hit some keys, click logout, get "ICE I/O Error" & "Disconnected from session manager." After 60s xfwm4 is terminated.]

Sam Berry (ukberry) wrote :

This bug affects a colleague of mine. The restarting of xfwm4 aspect of the bug has been fixed in bug #978333 however the slow logout time described still affects his machine.

didier (didier-laroche) wrote :

I am affected by this bug but not the bug #978333.

I have just installed Ubuntu with a LAMP environment with VMWare player 6.0; when i tried to shutdown the machine i received this message. I have waited more than 5 minutes and i could not log out; i was still receiving the same message.
thanks

Mark (nanite) wrote :

I am seeing this kind of bug starting in Ubuntu 14.04. The logout does occur eventually but it takes > 10 s.

JC (jcau44) wrote :

This is happening in Debian Wheezy as well,installed XFCE-4 and from there in the session manager seems to be stuck in a loopnot allowing the user to log out or even restart or shutdown unless you do it from a Terminal as anything ask of the exit system is being twarted with the error "Session manager must be in an Idle state when requesting a shutdown".
unfortunately i'm a complete newbie so thats about all I can offer.
Over to the experts
cheers for all you guys do here, much gratitude and thanks.
jcinAuz

mikhail-777 (wpr-oxym) wrote :

It still happens on Xubuntu 14.04 LTS.
I am not sure that it is duplicate of https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/978333

mikhail-777 (wpr-oxym) wrote :

Looks like I found solution.

I created custom xsession in /usr/share/xsessions/

with Exec=xfce4-session

instead of Exec=startxfce4

.

Also maybe this work for somebody: http://www.linuxquestions.org/questions/linux-general-1/reboot-shutdown-button-of-xfce4-not-working-937263/ .

mikhail-777 (wpr-oxym) wrote :

No, it does not helps really.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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