problem with X11 apps, startx fails

If I try to start X11 (via xterm or any X app for that matter) startx fails and gets stuck in this loop of trying to restart itself, from the looks of it. The output from startx on the console looks like this and just repeats forever:

4/1/10 10:50:17 AM org.x.startx[306] font_cache: Scanning user font directories to generate X11 font caches
4/1/10 10:50:18 AM org.x.startx[306] font_cache: Updating FC cache
4/1/10 10:50:18 AM org.x.privileged_startx[315] font_cache: Scanning system font directories to generate X11 font caches
4/1/10 10:50:18 AM org.x.startx[306] xauth: creating new authority file /Users/mlitwin/.serverauth.306
4/1/10 10:50:18 AM org.x.startx[306] Xquartz: X11.app = /Applications/Utilities/X11.app/Contents/MacOS/X11
4/1/10 10:50:18 AM org.x.startx[306] Xquartz: Starting X server: /Applications/Utilities/X11.app/Contents/MacOS/X11 --listenonly
4/1/10 10:50:20 AM org.x.privileged_startx[315] font_cache: Updating FC cache
4/1/10 10:50:20 AM org.x.startx[306] waiting for X server to begin accepting connections
4/1/10 10:50:21 AM org.x.startx[306] font_cache: Done
4/1/10 10:50:21 AM org.x.startx[306] .
4/1/10 10:50:22 AM org.x.privileged_startx[315] font_cache: Done
4/1/10 10:50:22 AM org.x.startx[306] .
4/1/10 10:50:23 AM org.x.startx[306] .
4/1/10 10:50:24 AM org.x.startx[306] .
4/1/10 10:50:25 AM org.x.startx[306] .
4/1/10 10:50:26 AM org.x.startx[306] .
4/1/10 10:50:27 AM org.x.startx[306] .
4/1/10 10:50:28 AM org.x.startx[306] .
4/1/10 10:50:29 AM org.x.startx[306] .
4/1/10 10:50:30 AM org.x.startx[306] .
4/1/10 10:50:31 AM org.x.startx[306] .
4/1/10 10:50:32 AM org.x.startx[306] .
4/1/10 10:50:33 AM org.x.startx[306] .
4/1/10 10:50:34 AM org.x.startx[306] .
4/1/10 10:50:35 AM org.x.startx[306] .
4/1/10 10:50:36 AM org.x.startx[306] .
4/1/10 10:50:37 AM org.x.startx[306] .
4/1/10 10:50:38 AM org.x.startx[306] .
4/1/10 10:50:38 AM org.x.startx[306] Xquartz: bootstrap lookup(): Unknown service name
4/1/10 10:50:39 AM org.x.startx[306] giving up.
4/1/10 10:50:39 AM org.x.startx[306] /usr/X11/bin/xinit: Operation timed out (errno 60): unable to connect to X server
4/1/10 10:50:39 AM org.x.startx[306] waiting for X server to shut down
4/1/10 10:50:40 AM org.x.startx[306] .
4/1/10 10:50:41 AM org.x.startx[306] .
4/1/10 10:50:42 AM org.x.startx[306] .
4/1/10 10:50:43 AM org.x.startx[306] .
4/1/10 10:50:44 AM org.x.startx[306] .
4/1/10 10:50:45 AM org.x.startx[306] .
4/1/10 10:50:46 AM org.x.startx[306] .
4/1/10 10:50:47 AM org.x.startx[306] .
4/1/10 10:50:48 AM org.x.startx[306] .
4/1/10 10:50:49 AM org.x.startx[306] .
4/1/10 10:50:50 AM org.x.startx[306] /usr/X11/bin/xinit: X server slow to shut down, sending KILL signal.
4/1/10 10:50:50 AM org.x.startx[306] /usr/X11/bin/xinit: No such process (errno 3): Server error.
4/1/10 10:50:50 AM org.x.startx[513] font_cache: Scanning user font directories to generate X11 font caches
4/1/10 10:50:50 AM org.x.startx[513] font_cache: Updating FC cache
4/1/10 10:50:50 AM org.x.privileged_startx[315] font_cache: Scanning system font directories to generate X11 font caches
4/1/10 10:50:50 AM org.x.startx[513] xauth: creating new authority file /Users/mlitwin/.serverauth.513
4/1/10 10:50:50 AM org.x.startx[513] Xquartz: X11.app = /Applications/Utilities/X11.app/Contents/MacOS/X11
4/1/10 10:50:50 AM org.x.startx[513] Xquartz: Starting X server: /Applications/Utilities/X11.app/Contents/MacOS/X11 --listenonly
4/1/10 10:50:51 AM org.x.privileged_startx[315] font_cache: Updating FC cache
4/1/10 10:50:52 AM org.x.startx[513] font_cache: Done
4/1/10 10:50:52 AM org.x.startx[513] waiting for X server to begin accepting connections
4/1/10 10:50:53 AM org.x.privileged_startx[315] font_cache: Done
4/1/10 10:50:53 AM org.x.startx[513] .
4/1/10 10:50:54 AM org.x.startx[513] .
4/1/10 10:50:55 AM org.x.startx[513] .
4/1/10 10:50:56 AM org.x.startx[513] .
4/1/10 10:50:57 AM org.x.startx[513] .
4/1/10 10:50:58 AM org.x.startx[513] .
4/1/10 10:50:59 AM org.x.startx[513] .
4/1/10 10:51:00 AM org.x.startx[513] .
4/1/10 10:51:01 AM org.x.startx[513] .
4/1/10 10:51:02 AM org.x.startx[513] .
4/1/10 10:51:03 AM org.x.startx[513] .
4/1/10 10:51:04 AM org.x.startx[513] .
4/1/10 10:51:05 AM org.x.startx[513] .
4/1/10 10:51:06 AM org.x.startx[513] .
4/1/10 10:51:07 AM org.x.startx[513] .
4/1/10 10:51:08 AM org.x.startx[513] .
4/1/10 10:51:09 AM org.x.startx[513] .
4/1/10 10:51:10 AM org.x.startx[513] .
4/1/10 10:51:10 AM org.x.startx[513] Xquartz: bootstrap lookup(): Unknown service name
4/1/10 10:51:11 AM org.x.startx[513] giving up.
4/1/10 10:51:11 AM org.x.startx[513] /usr/X11/bin/xinit: Operation timed out (errno 60): unable to connect to X server
4/1/10 10:51:11 AM org.x.startx[513] waiting for X server to shut down
4/1/10 10:51:12 AM org.x.startx[513] .
4/1/10 10:51:13 AM org.x.startx[513] .
4/1/10 10:51:14 AM org.x.startx[513] .
4/1/10 10:51:15 AM org.x.startx[513] .
4/1/10 10:51:16 AM org.x.startx[513] .
4/1/10 10:51:17 AM org.x.startx[513] .
4/1/10 10:51:18 AM org.x.startx[513] .
4/1/10 10:51:19 AM org.x.startx[513] .
4/1/10 10:51:20 AM org.x.startx[513] .
4/1/10 10:51:21 AM org.x.startx[513] .
4/1/10 10:51:22 AM org.x.startx[513] /usr/X11/bin/xinit: X server slow to shut down, sending KILL signal.
4/1/10 10:51:22 AM org.x.startx[513] /usr/X11/bin/xinit: No such process (errno 3): Server error.
4/1/10 10:51:23 AM org.x.startx[685] font_cache: Scanning user font directories to generate X11 font caches
4/1/10 10:51:23 AM org.x.startx[685] font_cache: Updating FC cache
4/1/10 10:51:23 AM org.x.privileged_startx[315] font_cache: Scanning system font directories to generate X11 font caches
4/1/10 10:51:23 AM org.x.startx[685] xauth: creating new authority file /Users/mlitwin/.serverauth.685
4/1/10 10:51:23 AM org.x.startx[685] Xquartz: X11.app = /Applications/Utilities/X11.app/Contents/MacOS/X11
4/1/10 10:51:23 AM org.x.startx[685] Xquartz: Starting X server: /Applications/Utilities/X11.app/Contents/MacOS/X11 --listenonly
4/1/10 10:51:23 AM org.x.privileged_startx[315] font_cache: Updating FC cache
4/1/10 10:51:25 AM org.x.startx[685] font_cache: Done
4/1/10 10:51:25 AM org.x.startx[685] waiting for X server to begin accepting connections
4/1/10 10:51:25 AM org.x.privileged_startx[315] font_cache: Done
4/1/10 10:51:26 AM org.x.startx[685] .

MacBook Pro 15", 2 x 2.2G core duo, 4GB RAM, Mac OS X (10.6.3), also have PC, XPsp2 32, 2 x 2.7 athlon, 3+ GB RAM, SATA RAID

Posted on Apr 1, 2010 11:23 AM

Reply
1 reply

Apr 1, 2010 12:34 PM in response to hinder90

I suggest reinstalling X11. It's working here. This is the output I'm getting launching, getting an X11 window, and then quitting. I don't use it, but do check that it launches correctly. BTW, I suggest posting to the Unix forum under OS X Technologies, where X11 mavens congregate.
HTH

Apr 1 12:28:16 localhost [0x0-0xfe0fe].org.x.X11[2043]: X11.app: main(): argc=2
Apr 1 12:28:16 localhost [0x0-0xfe0fe].org.x.X11[2043]: argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11.bin
Apr 1 12:28:16 localhost [0x0-0xfe0fe].org.x.X11[2043]: argv[1] = -psn 01040638
Apr 1 12:28:16 localhost [0x0-0xfe0fe].org.x.X11[2043]: Waiting for startup parameters via Mach IPC.
Apr 1 12:28:16 localhost org.x.startx[2051]: font_cache: Scanning user font directories to generate X11 font caches
Apr 1 12:28:16 localhost org.x.startx[2051]: font_cache: Updating FC cache
Apr 1 12:28:16 localhost org.x.privileged_startx[2058]: font_cache: Scanning system font directories to generate X11 font caches
Apr 1 12:28:16 localhost defaults[2082]: \nThe domain/default pair of (org.x.X11, dpi) does not exist
Apr 1 12:28:16 localhost org.x.startx[2051]: xauth: creating new authority file /Users/username/.serverauth.2051
Apr 1 12:28:16 localhost org.x.privileged_startx[2058]: font_cache: Updating FC cache
Apr 1 12:28:16 localhost [0x0-0xfe0fe].org.x.X11[2043]: X11.app: Listening on socket for fd handoff: (4) /var/tmp/tmp.0.QVyRr0
Apr 1 12:28:16 localhost [0x0-0xfe0fe].org.x.X11[2043]: X11.app: Thread created for handoff. Returning success to tell caller to connect and push the fd.
Apr 1 12:28:16 localhost [0x0-0xfe0fe].org.x.X11[2043]: X11.app: do start_x11server(): argc=6
Apr 1 12:28:16 localhost [0x0-0xfe0fe].org.x.X11[2043]: argv[0] = /usr/X11/bin/X
Apr 1 12:28:16 localhost [0x0-0xfe0fe].org.x.X11[2043]: argv[1] = 😮
Apr 1 12:28:16 localhost [0x0-0xfe0fe].org.x.X11[2043]: argv[2] = -nolisten
Apr 1 12:28:16 localhost [0x0-0xfe0fe].org.x.X11[2043]: argv[3] = tcp
Apr 1 12:28:16 localhost [0x0-0xfe0fe].org.x.X11[2043]: argv[4] = -auth
Apr 1 12:28:16 localhost [0x0-0xfe0fe].org.x.X11[2043]: argv[5] = /Users/username/.serverauth.2051
Apr 1 12:28:16 localhost [0x0-0xfe0fe].org.x.X11[2043]: X11.app: Received new $DISPLAY fd: 6 ... sleeping to allow xinitrc to catchup.
Apr 1 12:28:16 localhost org.x.startx[2051]: Xquartz: Handoff connection established (try 1 of 5) on fd 6, "/var/tmp/tmp.0.QVyRr0". Sending message.
Apr 1 12:28:16 localhost org.x.startx[2051]: Xquartz: Message sent. Closing handoff fd.
Apr 1 12:28:17 localhost [0x0-0xfe0fe].org.x.X11[2043]: Xquartz starting:
Apr 1 12:28:17 localhost [0x0-0xfe0fe].org.x.X11[2043]: X.Org X Server 1.4.2-apple53
Apr 1 12:28:17 localhost [0x0-0xfe0fe].org.x.X11[2043]: Build Date: 20100211
Apr 1 12:28:17 localhost [0x0-0xfe0fe].org.x.X11[2043]: (EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
Apr 1 12:28:18: --- last message repeated 1 time ---
Apr 1 12:28:18 localhost org.x.privileged_startx[2058]: font_cache: Done
Apr 1 12:28:18 localhost org.x.startx[2051]: font_cache: Done
Apr 1 12:28:19 localhost [0x0-0xfe0fe].org.x.X11[2043]: X11.app Handing off fd to server thread via DarwinListenOnOpenFD(6)
Apr 1 12:28:19 localhost [0x0-0xfe0fe].org.x.X11[2043]: DarwinListenOnOpenFD: 6
Apr 1 12:28:19 localhost [0x0-0xfe0fe].org.x.X11[2043]: Calling ListenOnOpenFD() for new fd: 6
Apr 1 12:28:19 localhost [0x0-0xfe0fe].org.x.X11[2043]: X11.app: Launching /usr/X11/bin/xterm:
Apr 1 12:28:19 localhost [0x0-0xfe0fe].org.x.X11[2043]: argv[0] = /bin/sh
Apr 1 12:28:19 localhost [0x0-0xfe0fe].org.x.X11[2043]: argv[1] = -c
Apr 1 12:28:19 localhost [0x0-0xfe0fe].org.x.X11[2043]: argv[2] = /usr/X11/bin/xterm
Apr 1 12:29:08 localhost [0x0-0xfe0fe].org.x.X11[2043]: Quitting Xquartz...
Apr 1 12:29:08 localhost org.x.startx[2051]: Xquartz: start x11server: (ipc/mig) server died
Apr 1 12:29:08 localhost org.x.startx[2051]: /usr/X11/bin/xinit: connection to X server lost.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

problem with X11 apps, startx fails

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.