Ticket #146 (closed crash: worksforme)

Opened 5 years ago

Last modified 3 years ago

launchd throttling respawn forever

Reported by: fishywang@… Owned by: jeremyhu@…
Priority: Expected Milestone: 2.3.1
Component: x11-apps Version: 2.3.0 (xserver-1.4.2-apple5)
Keywords: Cc:

Description

(In fact it's not a crash (seems so) but no more suitable Type for it...)

I'm using Leopard 10.5.3 and Xquartz 2.3.0

If I try to open X11.app or xterm, I will got this log in my Console again and again: == 08-8-3 00:54:24 com.apple.launchd121 (org.x.startx) Throttling respawn: Will start in 10 seconds ==

If I run Xquartz or startx, I can get X11.app opened, but any program that needs X11 (e.g. xterm) still won't open.

If I run the program in X11.app directly, will get: == fishy@Makelele:~$ /Applications/Utilities/X11.app/Contents/MacOS/X11 X11.app: main(): argc=1 Waiting for startup parameters via Mach IPC. ==

and the program hangs here, forever.

Change History

comment:1 Changed 5 years ago by jeremyhu@…

  • Status changed from new to assigned
  • Summary changed from Just can't start X11.app to launchd throttling respawn forever
  • Milestone set to 2.3.1

1) Is your $DISPLAY environment variable set correctly? Please echo it to make sure. 2) X11.app is behaving correctly. It's waiting for the Xquartz stub to tell it how to start the server via Mach IPC, but that stub isn't being run (based on the launchd error message).

You need to look back farther in the log to see why launchd is throttling the respawn of startx. It does that if startx quits really soon after starting. Look in the Console's system log to find out why it's not starting correctly.

comment:2 Changed 5 years ago by jeremyhu@…

Please try out 2.3.1_beta1 and report back. Does it work for you? Please copy the relevant debug sections from your system log (EVEN IF IT'S WORKING). See this post for more information:

http://lists.macosforge.org/pipermail/xquartz-dev/2008-August/000911.html

comment:3 Changed 5 years ago by jeremyhu@…

  • Status changed from assigned to closed
  • Resolution set to worksforme

Closing due to lack of response...

comment:4 Changed 5 years ago by swaziloo@…

I'm experiencing this same problem - or one very similar to it. I'm running 10.5.5. and the default Xserver died probably sometime around that upgrade, though I didn't pay close enough attention. As part of trying to track this down I have:

  • Installed xQuartz 2.3.1
  • Reinstalled Update 10.5.5
  • Reinstalled xQuartz 2.3.1
  • Deleted my .Xauthority file multiple times (a suggestion I found somewhere)

If (from a clean login) I just open a terminal, remove the ~/.Xauthority file, and type 'startx', the new Xserver icon appears on the dock (nice icon, BTW) and I get the following output:

terminal:

kgoudey@kgoudey-rv-laptop:/Users/kgoudey> startx
font_cache: Scanning user font directories to generate X11 font caches
font_cache: Updating FC cache
xauth:  creating new authority file /Users/kgoudey/.serverauth.940
xauth:  creating new authority file /Users/kgoudey/.Xauthority
xauth:  creating new authority file /Users/kgoudey/.Xauthority

Xquartz: X11.app = /Applications/Utilities/X11.app/Contents/MacOS/X11
Xquartz: Starting X server: /Applications/Utilities/X11.app/Contents/MacOS/X11 --listenonly
X11.app: main(): argc=2
	argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11
	argv[1] = --listenonly
Waiting for startup parameters via Mach IPC.
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/kgoudey/.serverauth.940
Xquartz starting:
X.Org X Server 1.4.2-apple17
Build Date: 20080905
No matching visual for __GLcontextMode with visual class = 3 (32772), nplanes = 24
(EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
font_cache: Done

waiting for X server to begin accepting connections .

system.log:

Oct  6 14:46:46 kgoudey-rv-laptop org.x.privileged_startx[948]: font_cache: Scanning user font directories to generate X11 font caches
Oct  6 14:46:46 kgoudey-rv-laptop org.x.privileged_startx[948]: font_cache: Updating FC cache
Oct  6 14:46:48 kgoudey-rv-laptop org.x.privileged_startx[948]: font_cache: Done

windowserver.log:

Oct 06 14:47:03  [822] kCGErrorIllegalArgument: CGXSetWindowListTags: Operation on a window 0x7 not owned by caller 

Nothing further happens until I try to run an X app (ssh -X, xclock, or xcalc.) At this point, the app just hangs and I begin the infinitely recurring:

system.log:

Oct  6 15:01:57 kgoudey-rv-laptop com.apple.launchd[67] (org.x.startx): Throttling respawn: Will start in 10 seconds
Oct  6 15:02:07 kgoudey-rv-laptop com.apple.launchd[67] (org.x.startx): Throttling respawn: Will start in 10 seconds
Oct  6 15:03:32: --- last message repeated 2 times ---
Oct  6 15:02:37 kgoudey-rv-laptop com.apple.launchd[67] (org.x.startx): Throttling respawn: Will start in 10 seconds

Any help or direction is greatly appreciated.

Note: See TracTickets for help on using tickets.