Hi, I've seen this problem discussed before on various mailinglists and forums, but never any real solutions.
It seems to happen right after a video player, such as totem or mplayer, has crashed. They might crash for different reasons, but the problem afterwards is always the same. Mplayer will f.ex give you the following error message: X11 error: BadAccess (attempt to access private resource denied) or if I try to start gvim: (gvim:86376): Gdk-WARNING **: shmget failed: error 12 (Cannot allocate memory) or totem: The program 'totem' received an X Window System error. This probably reflects a bug in the program. The error was 'BadShmSeg (invalid shared segment parameter)'. (Details: serial 31 error_code 166 request_code 147 minor_code 2) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) The only common thing with all these applications is gtk, though different versions: ldd `which mplayer`|grep tk libgtk12.so.2 => /usr/X11R6/lib/libgtk12.so.2 (0x289f2000) ldd `which gvim` | grep tk libgtk-x11-2.0.so.0 => /usr/X11R6/lib/libgtk-x11-2.0.so.0 (0x28197000) ldd `which totem` | grep tk libgtk-x11-2.0.so.0 => /usr/X11R6/lib/libgtk-x11-2.0.so.0 (0x28486000) Seems to me that after a program such mplayer or totem crashes something is left behind which blocks future programs from accessing certain resources. I'm not a programmer, so that is my very limited analysis so far. OS: FreeBSD 5.4-STABLE (built Nov 16 2005) Running XFree86 4.5.0 with Gnome 2.12.1 and nvidia-driver-1.0.7676_1 All gnome/gtk/glib-libs are up-to-date. -- Morten A. Middelthon "I have been Foolish and Deluded, and I am a Bear of No Brain at All." -- Pooh
pgptVVZpfvMRC.pgp
Description: PGP signature