X11 no longer works on Mountain Lion

Jeremy Huddleston Sequoia jeremyhu at macports.org
Wed Aug 22 15:24:35 PDT 2012


On Aug 22, 2012, at 15:17, Frank Schima <macsforever2000 at macports.org> wrote:

> Hi Jeremy,
> 
> 
> I can confirm that quartz-wm is required to be installed for X11 to work on ML. Thanks!
> 
> As a note, it would be nice if xinit used the notes command to display the startup launch script command. Currently it is only displayed at the activate phase. 

I just copied that logic from dbus.  Feel free to patch xinit, and you might as well patch dbus as well ;)

I updated the dependencies of xorg-server (and bumped it).

--Jeremy


> 
> 
> Cheers!
> Frank
> 
> On Aug 22, 2012, at 11:26 AM, Jeremy Huddleston Sequoia <jeremyhu at macports.org> wrote:
> 
>> Actually, I think my previous analysis was wrong.  My guess now is that you don't actually have a custom ~/.xinitrc.d script for twm, but instead teh default xinitrc is trying twm because it can't find a quartz-wm.  Please install the quartz-wm port, and I think it should work.  I'll update the dependencies.
>> 
>> --Jeremy
>> 
>> On Aug 22, 2012, at 07:31, Frank Schima <macsforever2000 at macports.org> wrote:
>> 
>>> Hi Jeremy,
>>> 
>>> 
>>> Thanks for the response. I don't see any crash reports even though X11 appears and disappears in the Dock. Here's some output:
>>> 
>>> $ sudo launchctl list org.macports.privileged_startx
>>> {
>>> 	"Label" = "org.macports.privileged_startx";
>>> 	"LimitLoadToSessionType" = "System";
>>> 	"OnDemand" = true;
>>> 	"LastExitStatus" = 0;
>>> 	"TimeOut" = 120;
>>> 	"ProgramArguments" = (
>>> 		"/opt/local/lib/X11/xinit/privileged_startx";
>>> 		"-d";
>>> 		"/opt/local/lib/X11/xinit/privileged_startx.d";
>>> 	);
>>> 	"EnableTransactions" = true;
>>> 	"MachServices" = {
>>> 		"org.macports.privileged_startx" = mach-port-object;
>>> 	};
>>> };
>>> 
>>> 
>>> $ pwd
>>> /Users/frank/Library/Logs/X11
>>> $ tail org.macports.log
>>> [1319281.323] Xquartz starting:
>>> [1319281.323] X.Org X Server 1.12.3
>>> [1319281.323] Build Date: 20120821
>>> [1319281.336] (II) GLX: Initialized Core OpenGL GL provider for screen 0
>>> [1319281.456] X11.app: DarwinProcessFDAdditionQueue_thread: Sleeping to allow xinitrc to catchup.
>>> [1319281.506] (EE) Error loading keymap /tmp/server-0.xkm
>>> [1319281.507] (EE) XKB: Failed to load keymap. Loading default keymap instead.
>>> [1319284.041] Server terminated successfully (0). Closing log file.
>>> 
>>> 
>>> $ pwd
>>> /var/log
>>> $ tail system.log
>>> Aug 22 08:01:58 Antarctic.local xclock[1838]: xclock requires X11, launching com.apple.X11redirect.
>>> Aug 22 08:01:58 Antarctic.local xterm[1840]: xterm requires X11, launching com.apple.X11redirect.
>>> Aug 22 08:01:58 Antarctic.local xterm[1839]: xterm requires X11, launching com.apple.X11redirect.
>>> Aug 22 08:01:58 Antarctic.local xterm[1835]: xterm requires X11, launching com.apple.X11redirect.
>>> Aug 22 08:01:58 Antarctic.local org.macports.startx[1679]: xinit: connection to X server lost
>>> Aug 22 08:01:58 Antarctic.local org.macports.startx[1679]: 
>>> 	
>>> Aug 22 08:01:59 Antarctic.local org.macports.startx[1679]: waiting for X server to shut down 
>>> Aug 22 08:01:59 --- last message repeated 1 time ---
>>> Aug 22 08:01:59 Antarctic com.apple.launchd.peruser.501[138] (org.macports.startx): Throttling respawn: Will start in 7 seconds
>>> [...]
>>> Aug 22 08:05:54 Antarctic com.apple.launchd.peruser.501[138] (org.macports.startx): Throttling respawn: Will start in 7 seconds
>>> Aug 22 08:06:01 Antarctic.local org.macports.startx[5727]: xauth:  file /Users/frank/.serverauth.5728 does not exist
>>> Aug 22 08:06:01 Antarctic.local org.macports.startx[5727]: 
>>> Aug 22 08:06:01 Antarctic.local org.macports.X11.stub[5807]: Xquartz: Unable to locate waiting server: org.macports.X11
>>> Aug 22 08:06:01 Antarctic.local org.macports.X11.stub[5816]: Xquartz: Starting X server: /Applications/MacPorts/X11.app/Contents/MacOS/X11 --listenonly
>>> Aug 22 08:06:02 Antarctic.local SIMBL Agent[189]: warning: failed to get scripting definition from /Applications/MacPorts/X11.app; it may not be scriptable.
>>> Aug 22 08:06:02 Antarctic.local X11.bin[5816]: Performance: Please update this scripting addition to supply a value for ThreadSafe for each event handler: "/Library/ScriptingAdditions/SIMBL.osax"
>>> Aug 22 08:06:03 Antarctic.local org.macports.startx[5727]: xinit: XFree86_VT property unexpectedly has 0 items instead of 1
>>> Aug 22 08:06:03 Antarctic.local org.macports.startx[5727]: /opt/local/bin/xset:  bad font path element (#8), possible causes are:
>>> Aug 22 08:06:03 Antarctic.local org.macports.startx[5727]:     Directory does not exist or has wrong permissions
>>> Aug 22 08:06:03 Antarctic.local org.macports.startx[5727]:     Directory missing fonts.dir
>>> Aug 22 08:06:03 Antarctic.local org.macports.startx[5727]:     Incorrect font server address or syntax
>>> Aug 22 08:06:03 Antarctic.local twm[5885]: twm requires X11, launching com.apple.X11redirect.
>>> Aug 22 08:06:03 Antarctic.local xclock[5886]: xclock requires X11, launching com.apple.X11redirect.
>>> Aug 22 08:06:03 Antarctic.local xterm[5887]: xterm requires X11, launching com.apple.X11redirect.
>>> Aug 22 08:06:03 Antarctic.local xterm[5883]: xterm requires X11, launching com.apple.X11redirect.
>>> Aug 22 08:06:03 Antarctic.local xterm[5888]: xterm requires X11, launching com.apple.X11redirect.
>>> Aug 22 08:06:03 Antarctic.local org.macports.startx[5727]: xinit: connection to X server lost
>>> Aug 22 08:06:03 Antarctic.local org.macports.startx[5727]: 
>>> 
>>> 
>>> Thanks!
>>> Frank
>>> 
>>> On Aug 21, 2012, at 11:56 PM, Jeremy Huddleston Sequoia wrote:
>>> 
>>>> Oops.  I meant ~/Library/Logs/X11/org.macports.log
>>>> 
>>>> Also, can you check the status of org.macports.privileged_startx?  The job should've been loaded in xinit postactivate.
>>>> $ sudo launchctl list org.macports.privileged_startx
>>>> 
>>>> --Jeremy
>>>> 
>>>> 
>>>> On Aug 21, 2012, at 22:46, Jeremy Huddleston Sequoia <jeremyhu at macports.org> wrote:
>>>> 
>>>>> Well it works for most everyone else, so you're going to need to provide more information.
>>>>> 
>>>>> If it's crashing on launch, a crash report would certainly be useful.
>>>>> 
>>>>> Also there might be useful information in /var/log/system.log and ~/Library/Logs/X11/org.macosforge.xquartz.log 
>>>>> 
>>>>> On Aug 21, 2012, at 21:59, Frank Schima <macports2000 at gmail.com> wrote:
>>>>> 
>>>>>> Hi all,
>>>>>> 
>>>>>> 
>>>>>> I recently upgraded my computer from Lion to Mountain Lion. 
>>>>>> 
>>>>>> I had xorg-server installed and it worked in Lion. I dutifully uninstalled all my macports ports and reinstalled xorg-server (and wine). But now X11 will crash on launch and continually try to relaunch but it never actually launches without crashing. I tried uninstalling xinit and xorg-server and reinstalling them. I re-ran:
>>>>>> 
>>>>>> launchctl load -w /Library/LaunchAgents/org.macports.startx.plist
>>>>>> 
>>>>>> and logged out and logged back in. But that did not help either. I also tried installing xorg-server-devel instead. 
>>>>>> 
>>>>>> How can I get X11 running in Mountain Lion with Macports?
>>>>>> 
>>>>>> 
>>>>>> Thanks!
>>>>>> Frank
>>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> macports-users mailing list
>>>>> macports-users at lists.macosforge.org
>>>>> http://lists.macosforge.org/mailman/listinfo/macports-users
>>>> 
>>> 
>>> _______________________________________________
>>> macports-users mailing list
>>> macports-users at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo/macports-users
>> 
> 



More information about the macports-users mailing list