Re: OS X 10.6.4: X11 fails, and tries, and fails and tries and fails and tries ...
Re: OS X 10.6.4: X11 fails, and tries, and fails and tries and fails and tries ...
- Subject: Re: OS X 10.6.4: X11 fails, and tries, and fails and tries and fails and tries ...
- From: Gary Pajer <email@hidden>
- Date: Mon, 2 Aug 2010 08:00:03 -0400
On Mon, Aug 2, 2010 at 1:53 AM, Jeremy Huddleston <email@hidden> wrote:
>
> Do you have any ~/.profile or ~/.bashrc? Try moving them out of the way.
>
> What is $DISPLAY set to? Open up Terminal.app and run:
> echo $DISPLAY
/tmp/launch-7Ru7JA/org.x:0
>
> Try launching from Terminal without $DISPLAY set:
> DISPLAY="" /Applications/Utilities/X11.app/Contents/MacOS/X11.bin
>
>
--------------------------------------
Tethys:~ gpajer$ DISPLAY=""
/Applications/Utilities/X11.app/Contents/MacOS/X11.bin
X11.app: DISPLAY does not look like a launchd set variable, unsetting.
X11.app: main(): argc=1
argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11.bin
Waiting for startup parameters via Mach IPC.
X11.app: Could not connect to server (DISPLAY is not set). Starting X server.
X11.app: Launching /usr/X11/bin/startx:
argv[0] = /bin/sh
argv[1] = -c
argv[2] = /usr/X11/bin/startx
font_cache: Scanning user font directories to generate X11 font caches
font_cache: Updating FC cache
xauth: creating new authority file /Users/gpajer/.serverauth.267
launch_msg("CheckIn") IPC failure: Operation not permitted
X11.app: No launchd socket handed off, unsetting DISPLAY
X11.app: do_start_x11_server(): argc=6
argv[0] = /usr/X11/bin/X
argv[1] = :0
argv[2] = -nolisten
argv[3] = tcp
argv[4] = -auth
argv[5] = /Users/gpajer/.serverauth.267
Xquartz starting:
X.Org X Server 1.4.2-apple53
Build Date: 20100211
(EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
(EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
font_cache: Done
waiting for X server to shut down
------------------------------------------
but at least it shuts down and stays down.
Here's what the command line returns if I start X11 with
/Applications/Utilities/X11.app/Contents/MacOS/X11.bin
(i.e., without setting DISPLAY explicitly)
(in case there's a clue in here):
---------------------------------------------
X11.app: main(): argc=1
argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11.bin
Waiting for startup parameters via Mach IPC.
X11.app: Listening on socket for fd handoff: (3) /var/tmp/tmp.0.QayHPs
X11.app: Thread created for handoff. Returning success to tell caller
to connect and push the fd.
X11.app: Received new $DISPLAY fd: 5 ... sleeping to allow xinitrc to catchup.
X11.app: do_start_x11_server(): argc=6
argv[0] = /usr/X11/bin/X
argv[1] = :0
argv[2] = -nolisten
argv[3] = tcp
argv[4] = -auth
argv[5] = /Users/gpajer/.serverauth.478
Xquartz starting:
X.Org X Server 1.4.2-apple53
Build Date: 20100211
(EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
(EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
Quitting Xquartz...
---------------------------------------------
The command prompt returns, but as before X11 tries and fails and
tries and fails and tries ...
So playing with DISPLAY has some effect.
In case it helps, here's the result of ps -e | grep X11 *while X11 is
trying to start*:
---------------------------------------------
485 ?? 0:00.01 /usr/X11/lib/X11/xinit/privileged_startx -d
/usr/X11/lib/X11/xinit/privileged_startx.d
5336 ?? 0:00.01 /bin/sh /usr/X11/bin/startx
5341 ?? 0:00.01 /bin/bash /usr/X11/bin/font_cache
5359 ?? 0:00.04 /bin/bash /usr/X11/bin/font_cache -s
5360 ?? 0:00.01 /usr/X11/bin/fc-cache
5396 ?? 0:00.00 /usr/X11/bin/xinit
/usr/X11/lib/X11/xinit/xinitrc -- /usr/X11/bin/X :0 -nolisten tcp
-auth /Users/gpajer/.serverauth.5336
5398 ?? 0:00.01 /usr/X11/bin/X :0 -nolisten tcp -auth
/Users/gpajer/.serverauth.5336
5403 ?? 0:00.37
/Applications/Utilities/X11.app/Contents/MacOS/X11.bin --listenonly
5476 ?? 0:00.03 /usr/X11/bin/fc-cache -s
477 ttys000 0:00.00 /Applications/Utilities/X11.app/Contents/MacOS/X11.bin
5478 ttys000 0:00.00 grep X11
-------------------------------------------
And here's the result of ps -e |grep X11 *between tries*:
--------------------------------------------
485 ?? 0:00.02 /usr/X11/lib/X11/xinit/privileged_startx -d
/usr/X11/lib/X11/xinit/privileged_startx.d
477 ttys000 0:00.00 /Applications/Utilities/X11.app/Contents/MacOS/X11.bin
7589 ttys000 0:00.00 grep X11
--------------------------------------------
I tried sudo kill -9 485 477 between tries ... it manages to revive
itself and try and fail and try and fail and ...
thanks again,
gary
>
> On Aug 1, 2010, at 18:22, Gary Pajer wrote:
>
> > Suddenly X11 won't start.
> >
> > The X appears in the application bar (sorry .... don't know it's real name)
> > for a second, then vanishes. Seven seconds or so later, the same cycle
> > repeats. This goes on ad infinitum. Force Quit won't stop it. kill and
> > kill -9 won't stop it. Restarting is difficult because unless you time it
> > just right X pre-empts the shutdown and prevents it.
> >
> > This MacBook is two weeks old, so I presume that the software is up to date.
> >
> >
> > Attached below is a repeating snip from Console log. (I
> >
> > Any ideas?
> > thanks,
> > gary
> >
> > ----------------------------------------------
> >
> > 8/1/10 9:03:56 PM org.x.startx[53071] .
> > 8/1/10 9:03:56 PM org.x.startx[53071] Xquartz: Failed to request a
> > socket from the server to send the $DISPLAY fd over (try 1 of 5)
> > 8/1/10 9:03:56 PM org.x.startx[53071] Xquartz: Failed to request a
> > socket from the server to send the $DISPLAY fd over (try 2 of 5)
> > 8/1/10 9:03:56 PM org.x.startx[53071] Xquartz: Failed to request a
> > socket from the server to send the $DISPLAY fd over (try 3 of 5)
> > 8/1/10 9:03:56 PM org.x.startx[53071] Xquartz: Failed to request a
> > socket from the server to send the $DISPLAY fd over (try 4 of 5)
> > 8/1/10 9:03:56 PM org.x.startx[53071] Xquartz: Failed to request a
> > socket from the server to send the $DISPLAY fd over (try 5 of 5)
> > 8/1/10 9:03:56 PM org.x.startx[53071] Xquartz: start_x11_server:
> > (ipc/send) invalid destination port
> > 8/1/10 9:03:57 PM org.x.startx[53071] giving up.
> > 8/1/10 9:03:57 PM org.x.startx[53071] /usr/X11/bin/xinit: Operation
> > timed out (errno 60): unable to connect to X server
> > 8/1/10 9:03:57 PM org.x.startx[53071] /usr/X11/bin/xinit: No such
> > process (errno 3): Server error.
> > 8/1/10 9:03:57 PM com.apple.launchd.peruser.502[169]
> > (org.x.startx[53071]) Exited with exit code: 1
> > 8/1/10 9:03:57 PM org.x.startx[53212] font_cache: Scanning user font
> > directories to generate X11 font caches
> > 8/1/10 9:03:57 PM org.x.startx[53212] font_cache: Updating FC cache
> > 8/1/10 9:03:57 PM org.x.privileged_startx[53078] font_cache: Scanning
> > system font directories to generate X11 font caches
> > 8/1/10 9:03:57 PM defaults[53243]
> > The domain/default pair of (org.x.X11, dpi) does not exist
> > 8/1/10 9:03:57 PM org.x.startx[53212] xauth: creating new authority
> > file /Users/gpajer/.serverauth.53212
> > 8/1/10 9:03:57 PM org.x.startx[53212] Xquartz: Unable to locate
> > waiting server: org.x.X11
> > 8/1/10 9:03:57 PM org.x.startx[53212] Xquartz: X11.app =
> > /Applications/Utilities/X11.app/Contents/MacOS/X11
> > 8/1/10 9:03:57 PM org.x.startx[53212] Xquartz: Starting X server:
> > /Applications/Utilities/X11.app/Contents/MacOS/X11 --listenonly
> > 8/1/10 9:03:57 PM org.x.startx[53212] X11.app: main(): argc=2
> > 8/1/10 9:03:57 PM org.x.startx[53212] argv[0] =
> > /Applications/Utilities/X11.app/Contents/MacOS/X11.bin
> > 8/1/10 9:03:57 PM org.x.startx[53212] argv[1] = --listenonly
> > 8/1/10 9:03:57 PM org.x.startx[53212] Waiting for startup parameters
> > via Mach IPC.
> > 8/1/10 9:03:57 PM org.x.privileged_startx[53078] font_cache: Updating
> > FC cache
> > 8/1/10 9:03:57 PM org.x.startx[53212] X11.app: Listening on socket for
> > fd handoff: (4) /var/tmp/tmp.0.tY0HV8
> > 8/1/10 9:03:57 PM org.x.startx[53212] X11.app: Thread created for
> > handoff. Returning success to tell caller to connect and push the fd.
> > 8/1/10 9:03:57 PM org.x.startx[53212] Xquartz: Handoff connection
> > established (try 1 of 5) on fd 7, "/var/tmp/tmp.0.tY0HV8". Sending message.
> > 8/1/10 9:03:57 PM org.x.startx[53212] Xquartz: Message sent. Closing
> > handoff fd.
> > 8/1/10 9:03:57 PM org.x.startx[53212] X11.app: do_start_x11_server():
> > argc=6
> > 8/1/10 9:03:57 PM org.x.startx[53212] argv[0] = /usr/X11/bin/X
> > 8/1/10 9:03:57 PM org.x.startx[53212] argv[1] = :1
> > 8/1/10 9:03:57 PM org.x.startx[53212] argv[2] = -nolisten
> > 8/1/10 9:03:57 PM org.x.startx[53212] argv[3] = tcp
> > 8/1/10 9:03:57 PM org.x.startx[53212] argv[4] = -auth
> > 8/1/10 9:03:57 PM org.x.startx[53212] argv[5] =
> > /Users/gpajer/.serverauth.53212
> > 8/1/10 9:03:57 PM org.x.startx[53212] X11.app: Received new $DISPLAY
> > fd: 6 ... sleeping to allow xinitrc to catchup.
> > 8/1/10 9:03:57 PM org.x.startx[53212] Xquartz starting:
> > 8/1/10 9:03:57 PM org.x.startx[53212] X.Org X Server 1.4.2-apple53
> > 8/1/10 9:03:57 PM org.x.startx[53212] Build Date: 20100211
> > 8/1/10 9:03:57 PM org.x.startx[53212] (EE) XKB: Couldn't open rules
> > file /usr/X11/share/X11/xkb/rules/base
> > 8/1/10 9:03:57 PM org.x.startx[53212] (EE) XKB: Couldn't open rules
> > file /usr/X11/share/X11/xkb/rules/base
> > 8/1/10 9:03:59 PM org.x.startx[53212] font_cache: Done
> > 8/1/10 9:03:59 PM org.x.startx[53212] waiting for X server to shut
> > down
> > 8/1/10 9:03:59 PM org.x.privileged_startx[53078] font_cache: Done
> > 8/1/10 9:04:00 PM com.apple.launchd.peruser.502[169] (org.x.startx)
> > Throttling respawn: Will start in 7 seconds
> > 8/1/10 9:04:07 PM org.x.startx[53398] font_cache: Scanning user font
> > directories to generate X11 font caches
> > 8/1/10 9:04:07 PM org.x.startx[53398] font_cache: Updating FC cache
> > 8/1/10 9:04:07 PM org.x.privileged_startx[53078] font_cache: Scanning
> > system font directories to generate X11 font caches
> > 8/1/10 9:04:07 PM defaults[53428]
> > The domain/default pair of (org.x.X11, dpi) does not exist
> > 8/1/10 9:04:07 PM org.x.startx[53398] xauth: creating new authority
> > file /Users/gpajer/.serverauth.53398
> > 8/1/10 9:04:07 PM org.x.startx[53398] Xquartz: Unable to locate
> > waiting server: org.x.X11
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > X11-users mailing list (email@hidden)
> >
> > This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden