Can't start programs after resume from suspend/hibernate

Bug #52200 reported by Sebastian Breier
6
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

Ubuntu 6.06.

Sometimes after resuming my laptop from suspend/hibernate, I can't start any new programs, like gaim, xchat-gnome or something. I can't even open the "log out/shut down/suspend/hibernate" window. On the other hand, I can open new Firefox windows if Firefox was already running. I have to Ctrl-Alt-Backspace out of xorg to get it to work again.

I believe this has something to do with unplugging the AC while the laptop is suspended/hibernated, but I haven't figured out when exactly it happens... sometimes after I resume the laptop and type in my password to the screensaver, the laptop immediately goes to screensaver again after showing the desktop for a second; I guess that might be the reaction to the AC unplugging.

So far I haven't found a workaround, and I don't know what component is responsible for this stuff (/etc/acpi or gnome-power-manager or something else?), so I'm putting it here.

I'll try not to plug/unplug the AC while in suspend/hibernate for a time, to get more info on this.

Revision history for this message
Sebastian Breier (tomcat42) wrote :

One other thing I just rememberd: The application do actually start (show up in ps -ef), but don't show a window at all. They also don't give any errors in console.

Revision history for this message
Ondřej Nový (onovy) wrote :

Thanks for your bug report. I think this could be date/time related. Fo example if you change your time too much forward, screensaver is automaticly activated, or dpmi, etc. Can you try to hibernate your computer with terminal opened and try to run any application "by hand"? Try to run 'date' too, if is your date/time correct (same as before hibernate).

Revision history for this message
Sebastian Breier (tomcat42) wrote :

Thanks for replying. :)

Yes, I've seen the behavior you describe, setting the time then having the screensaver automatically activate... however, I haven't seen any timing problems so far. Or maybe I'm just too slow because getting the time/date immediately after resuming isn't that easy.

As I already said, running applications by hand doesn't make any difference... the apps start normally, no errors or special messages, they just don't show their window. But I did just notice that python apps run just fine even if gnome apps don't start... I'll check if there's any difference between console, X11 and gnome apps the next time it happens.

Revision history for this message
Ondřej Nový (onovy) wrote :

Ok. Please try disable NTP time synchronizing, or just disconnect your pc from internet. Then try to hibernate your computer, maybe your problem with screenlocking disappear.

Can you 'strace' any application that can be runned after hibernating?
https://wiki.ubuntu.com/Strace

Revision history for this message
Ondřej Nový (onovy) wrote :

can't sorry

Revision history for this message
Sebastian Breier (tomcat42) wrote :

It just happened again (it only happens sometimes, so it's difficult to test)...

I was able to
- start console apps (less, man, python, ps, grep, ...)
- open new gnome-console windows & tabs

I wasn't able to
- start X apps (xterm)
- start gnome apps (gedit, gnometris, ...)

I made straces of gedit and xterm which both seem to hang at the same place.

Revision history for this message
Sebastian Breier (tomcat42) wrote : strace of gedit

Strace output of gedit starting when the bug occured.

Revision history for this message
Sebastian Breier (tomcat42) wrote : strace of xterm

strace output of xterm starting when the bug occured.

Revision history for this message
Sebastian Breier (tomcat42) wrote :

I also disabled NTP now, to see if that changes anything the next time I get the bug.

Revision history for this message
Ondřej Nový (onovy) wrote :

ok, good. it's trying to open ICE-unix socket, and read from them. ICE socket is created by ICElib, which is part of GNOME. So it's problem with gnome, and un-hibernating of them. Can you examine your log files in /var/log/ and try to find something interesting (of course after un-hibernate)?
run please this after hibernate in terminal 'ls -l /tmp/.ICE-unix' and paste output. i think if you run something not-GNOME it will start (try xclock :).

Changed in gnome-desktop:
status: Unconfirmed → Needs Info
Revision history for this message
Ondřej Nový (onovy) wrote :

oh, sorry ice is not part of gnome, it's x-session-manager work. so try to do that ls, you will probably find 1 file with some number name. Try to look for process with that pid ('ps axf | grep 123').

Revision history for this message
Sebastian Breier (tomcat42) wrote :

Disabling NTP didn't help - I got the bug again.

ls gave me this:
tomcat@merau:~$ ls -l /tmp/.ICE-unix/
total 0
srwxrwxrwx 1 tomcat tomcat 0 2006-07-12 08:40 4812

And ps:
tomcat@merau:~$ ps -ef | grep 4812
tomcat 4812 4256 0 08:40 ? 00:00:01 x-session-manager
tomcat 4854 4812 0 08:40 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session x-session-manager
tomcat 9062 9019 1 10:54 pts/2 00:00:00 grep 4812

Revision history for this message
Sebastian Breier (tomcat42) wrote : syslog from before and after suspend/resume

syslog from before and after suspend/resume

Revision history for this message
Sebastian Breier (tomcat42) wrote :

I couldn't find anything interesting in my logs, so I uploaded a part of syslog that might show something...

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

'gnome-desktop' is just a small library, that has nothing to do with this problem, subscribed 'ubuntu-laptop' to the bug.

Revision history for this message
Kurt J. Bosch (kujub-deactivatedaccount) wrote : Confirm on Desktop-Machine

I have exactly the same Problem (from time to time) on a (old) Desktop-Machine here.

I have the 'nvidia'-driver installed. Could this be a problem ?

Last time I tried some apps with strace like above, looked around in the dir-tree and made some comments in a text file. (konsole and kate, which I use with GNOME, were already open) and - surpise - the windows of the apps I launched aproximately 10 Minutes ago appeared suddenly. After this all worked normal again. Maybe some timeout and retry occured somewere ?

This is what I get (when running normal) :

ls -l /tmp/.ICE-unix
insgesamt 0
srwxrwxrwx 1 kurt kurt 0 2006-08-08 12:45 4836
srwx------ 1 kurt kurt 0 2006-08-08 12:46 dcop5266-1155033980
0 kurt@Microstar:~$
ps axf | grep 4836
 4836 ? Ss 0:03 \_ /usr/bin/gnome-session
 7577 pts/1 S+ 0:00 \_ grep 4836

... no x-session-manager but gnome-session, which I think should be normal.

Revision history for this message
Sebastian Breier (tomcat42) wrote :

>I have the 'nvidia'-driver installed. Could this be a problem ?

I doubt it. My laptop has an Intel 855GM integrated graphics card - no nvidia driver here.

Thank You for your other info though... I hope it helps. :-)

Revision history for this message
dirk (dirk-kuijsten) wrote :

I can confirm it here on my systems: both my desktop and laptop suffer this problem after a hiberate to disk/suspend to ram plus resume cycle (both dapper). On my systems this does not happen on a regular basis: about 1 in 4 resumes have this problem. But I cannot determine what causes the problem.
The programs 'hang' on the ICE-unix file, as seen with stracing gcalctool.

See also this bug, which seems to be the same bug: https://launchpad.net/distros/ubuntu/+bug/56140. Only the solution of using DISPLAY=:0 does not work for me.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Ubuntu because there has been no activity for 60 days.]

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

Other bug subscribers

Remote bug watches

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