Re: MATLAB not starting the first time, starts when X11 is killed
Re: MATLAB not starting the first time, starts when X11 is killed
- Subject: Re: MATLAB not starting the first time, starts when X11 is killed
- From: Ustun Ozgur <email@hidden>
- Date: Sun, 14 Jun 2009 18:01:35 +0300
On Jun 14, 2009, at 5:53 PM, Ustun Ozgur wrote:
Hi, I am running 10.5.7 with MATLAB R 2008B.
When I start MATLAB using StartMatlab, it opens X11, tries to open
for a few seconds, then dies, leaving X11 running.
Killing X11 immediately spawns another X11, and MATLAB starts up
immediately.
Attached is my system.log; and I have marked where I kill the X11
process<system.log>. I suspect the problem is a configuration
problem. I have installed the latest X11 from XQuartz page.
I have looked at my .bash_profile, and I don't set any DISPLAY
variable.
Also, starting MATLAB from Terminal works fine.
Best regards,
Ustun
The attachment in my last mail was somehow corrupted I guess.
Here is the system.log:
Jun 14 17:40:24 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: /Users/
ustun/.bash_profile: line 3: .gitcompletion: No such file or directory
Jun 14 17:40:24 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: X11.app:
main(): argc=2
Jun 14 17:40:24 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: argv[0] = /
Applications/Utilities/X11.app/Contents/MacOS/X11.bin
Jun 14 17:40:24 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: argv[1] = -
psn_0_3859374
Jun 14 17:40:24 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: Waiting for
startup parameters via Mach IPC.
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: X11.app:
Could not connect to server (DISPLAY is not set). Starting X server.
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: X11.app:
Launching /usr/X11/bin/startx:
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: argv[0] = /
bin/sh
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: argv[1] = -c
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: argv[2] = /
usr/X11/bin/startx
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: font_cache:
Scanning user font directories to generate X11 font caches
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: font_cache:
Updating FC cache
Jun 14 17:40:25 MacMini-2 org.x.privileged_startx[20020]: font_cache:
Scanning system font directories to generate X11 font caches
Jun 14 17:40:25 MacMini-2 defaults[20585]: \nThe domain/default pair
of (org.x.X11, dpi) does not exist
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: X11.app:
do_start_x11_server(): argc=4
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: argv[0] = /
usr/X11/bin/X
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: argv[1] = :0
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: argv[2] = -
nolisten
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: argv[3] =
tcp
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: Xquartz
starting:
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: X.Org X
Server 1.4.2-apple42
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: Build Date:
20090517
Jun 14 17:40:25 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: (EE) XKB:
Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
Jun 14 17:40:25: --- last message repeated 1 time ---
Jun 14 17:40:25 MacMini-2 org.x.privileged_startx[20020]: font_cache:
Updating FC cache
Jun 14 17:40:27 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: font_cache:
Done
Jun 14 17:40:27 MacMini-2 org.x.privileged_startx[20020]: font_cache:
Done
Jun 14 17:40:30 MacMini-2 org.x.startx[20743]: font_cache: Scanning
user font directories to generate X11 font caches
Jun 14 17:40:30 MacMini-2 org.x.privileged_startx[20020]: font_cache:
Scanning system font directories to generate X11 font caches
Jun 14 17:40:30 MacMini-2 org.x.startx[20743]: font_cache: Updating FC
cache
Jun 14 17:40:30 MacMini-2 defaults[20774]: \nThe domain/default pair
of (org.x.X11, dpi) does not exist
Jun 14 17:40:31 MacMini-2 org.x.privileged_startx[20020]: font_cache:
Updating FC cache
Jun 14 17:40:32 MacMini-2 org.x.startx[20743]: waiting for X server to
begin accepting connections
Jun 14 17:40:32 MacMini-2 org.x.startx[20743]: font_cache: Done
Jun 14 17:40:33 MacMini-2 org.x.privileged_startx[20020]: font_cache:
Done
Jun 14 17:40:33 MacMini-2 org.x.startx[20743]: .
# THIS IS WHERE I CLOSE THE XQUARTZ and then a new X11 is spawned, and
MATLAB opens correctly.
Jun 14 17:41:19: --- last message repeated 45 times ---
Jun 14 17:41:19 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: Quitting
Xquartz...
Jun 14 17:41:19 MacMini-2 org.x.startx[20743]: Xquartz: Failed to
request a socket from the server to send the $DISPLAY fd over (try 1
of 5)
Jun 14 17:41:19 MacMini-2 org.x.startx[20743]: Xquartz: Failed to
request a socket from the server to send the $DISPLAY fd over (try 2
of 5)
Jun 14 17:41:19 MacMini-2 org.x.startx[20743]: Xquartz: Failed to
request a socket from the server to send the $DISPLAY fd over (try 3
of 5)
Jun 14 17:41:19 MacMini-2 org.x.startx[20743]: Xquartz: Failed to
request a socket from the server to send the $DISPLAY fd over (try 4
of 5)
Jun 14 17:41:19 MacMini-2 org.x.startx[20743]: Xquartz: Failed to
request a socket from the server to send the $DISPLAY fd over (try 5
of 5)
Jun 14 17:41:19 MacMini-2 org.x.startx[20743]: Xquartz:
start_x11_server: (ipc/send) invalid destination port
Jun 14 17:41:19 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: Xquartz:
start_x11_server: (ipc/mig) server died
Jun 14 17:41:19 MacMini-2 [0x0-0x3ae3ae].org.x.X11[20522]: /usr/X11/
bin/xinit: connection to X server lost.
Jun 14 17:41:19 MacMini-2 org.x.startx[20743]: giving up.
Jun 14 17:41:19 MacMini-2 org.x.startx[20743]: /usr/X11/bin/xinit:
Operation timed out (errno 60): unable to connect to X server
Jun 14 17:41:19 MacMini-2 org.x.startx[20743]: /usr/X11/bin/xinit: No
such process (errno 3): Server error.
Jun 14 17:41:19 MacMini-2 org.x.startx[20874]: font_cache: Scanning
user font directories to generate X11 font caches
Jun 14 17:41:19 MacMini-2 org.x.startx[20874]: font_cache: Updating FC
cache
Jun 14 17:41:19 MacMini-2 org.x.privileged_startx[20020]: font_cache:
Scanning system font directories to generate X11 font caches
Jun 14 17:41:20 MacMini-2 defaults[20904]: \nThe domain/default pair
of (org.x.X11, dpi) does not exist
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: Xquartz: X11.app = /
Applications/Utilities/X11.app/Contents/MacOS/X11
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: Xquartz: Starting X
server: /Applications/Utilities/X11.app/Contents/MacOS/X11 --listenonly
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: /Users/
ustun/.bash_profile: line 3: .gitcompletion: No such file or directory
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: X11.app: main(): argc=2
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: argv[0] = /
Applications/Utilities/X11.app/Contents/MacOS/X11.bin
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: argv[1] = --listenonly
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: Waiting for startup
parameters via Mach IPC.
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: X11.app: Listening on
socket for fd handoff: (3) /var/tmp/tmp.0.8G2Yrq
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: X11.app: Thread created
for handoff. Returning success to tell caller to connect and push the
fd.
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: Xquartz: Handoff
connection established (try 1 of 5) on fd 4, "/var/tmp/tmp.0.8G2Yrq".
Sending message.
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: Xquartz: Message sent.
Closing handoff fd.
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: X11.app: Received new
$DISPLAY fd: 5 ... sleeping to allow xinitrc to catchup.
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: X11.app:
do_start_x11_server(): argc=4
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: argv[0] = /usr/X11/bin/X
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: argv[1] = :0
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: argv[2] = -nolisten
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: argv[3] = tcp
Jun 14 17:41:20 MacMini-2 org.x.privileged_startx[20020]: font_cache:
Updating FC cache
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: Xquartz starting:
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: X.Org X Server 1.4.2-
apple42
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: Build Date: 20090517
Jun 14 17:41:20 MacMini-2 org.x.startx[20874]: (EE) XKB: Couldn't open
rules file /usr/X11/share/X11/xkb/rules/base
Jun 14 17:41:22: --- last message repeated 1 time ---
Jun 14 17:41:22 MacMini-2 org.x.startx[20874]: font_cache: Done
Jun 14 17:41:22 MacMini-2 org.x.privileged_startx[20020]: font_cache:
Done
Jun 14 17:41:23 MacMini-2 org.x.startx[20874]: X11.app Handing off fd
to server thread via DarwinListenOnOpenFD(5)
Jun 14 17:41:23 MacMini-2 org.x.startx[20874]: DarwinListenOnOpenFD: 5
Jun 14 17:41:23 MacMini-2 org.x.startx[20874]: Calling
ListenOnOpenFD() for new fd: 5
Thanks,
Ustun
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden