Opened 13 years ago

Closed 13 years ago

Last modified 3 years ago

#33976 closed defect (worksforme)

X11.app fails to start

Reported by: watsodw Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: xinit

Description (last modified by mf2k (Frank Schima))

After last upgrade of X11, X11 fails to start from X11.app. It can be started by manually running startx from the terminal, with the following message:

font_cache: Scanning user font directories to generate X11 font caches
font_cache: Updating FC cache
font_cache: Done
xauth:  file /Users/dwwatson/.serverauth.31653 does not exist
xinit: XFree86_VT property unexpectedly has 0 items instead of 1

Trying to start from X11.app results in the dock start icon saying "Application not responding".

Attachments (1)

X11.bin_66452.spindump.txt (590.3 KB) - added by watsodw 13 years ago.

Download all attachments as: .zip

Change History (15)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Cc: jeremyhu@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to jeremyhu@…
Port: xorg-server xinit added; xorg removed

comment:2 Changed 13 years ago by mf2k (Frank Schima)

I'm having problems too. I see the same thing but also the following:

/opt/local/bin/xset:  bad font path element (#8), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax

Mac OS X 10.7.3. Xcode 4.3.2.

comment:3 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

1) Don't run startx manually. It does not do what you think it does.

2) Attach a spindump. Run 'spindump X11.bin' from Terminal.app when X11 is in this state.

Changed 13 years ago by watsodw

Attachment: X11.bin_66452.spindump.txt added

comment:4 Changed 13 years ago by mf2k (Frank Schima)

Ah ok. Running, for example, xlogo from the command line works fine and launches xorg-server X11 from Macports.

comment:5 Changed 13 years ago by watsodw

Not on my machine.

comment:6 in reply to:  5 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Replying to david.w.watson@…:

Not on my machine.

It will launch whichever LaunchAgent you select. See xinit's post-activate for information on making the MacPorts X11 default.

As for your case... what is your current default server? ie, what is the output of:

echo $DISPLAY

Can you please try launching Macports/X11.app again and noting the time, then attach your /var/log/system.log

comment:7 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Also, what version of xorg-server or xorg-server-devel are you using?

comment:8 Changed 13 years ago by watsodw

Default server is Macports xorg-server @1.12.0_0+universal,

and system log shows /opt/local/lib/X11/init/launchd_startx tries to start, but my launchd_startx is in /opt/macports/lib/X11/xinit. I don't know why it is trying /opt/local/ since my macports install is in /opt/macports/.

comment:9 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Did you change your prefix recently? What is the output of:

echo $DISPLAY
launchctl list org.macports.startx
cat /Library/LaunchAgents/org.macports.startx.plist

comment:10 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Try doing:

sudo port -v -f uninstall xinit
sudo port -v install xinit

Then logout and log back in...

comment:11 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Port: xorg-server removed

comment:12 Changed 13 years ago by watsodw

All outputs pointed to /opt/macports. Did the uninstall and reinstall of xinit and all seems to work now.

comment:13 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed

comment:14 in reply to:  10 Changed 3 years ago by udbraumann

Replying to jeremyhu:

Try doing:

sudo port -v -f uninstall xinit
sudo port -v install xinit

Then logout and log back in...

This uninstall/install trick cured both /Applications/Utilities/X11.app (!) and /Applications/MacPorts/X11.app even ten years later, thank you!

Note: See TracTickets for help on using tickets.