Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Remote matlab, java and apple's X11: Xlib problem

3 views
Skip to first unread message

Torbjørn Hergum

unread,
Dec 21, 2005, 6:11:18 AM12/21/05
to
Hi all

I've got a macintosh which runs the X11 application Apple ships with it.
I want to use it to run Matlab (remotely) on a linux server, but I can't
make it work with java (and X).

I log in to the linux box with

ssh -X my.ip.address

and start matlab with

matlab -nosplash

It fails to load with the following error message:

Xlib: unexpected async reply (sequence 0x14a)!

However, if I can live without java, that is, if I don't need to debug
my applications, Matlab runs just fine with

matlab -nojvm

I can make figure windows and so forth on my local screen, so X seems to
work just fine now.

Any ideas on how to resolve this? Otherwise I'll file a bug report to
MathWorks.

Regards,

Torbjørn Hergum
PhD student at NTNU, Norway

Doug Schwarz

unread,
Dec 21, 2005, 8:45:05 AM12/21/05
to
In article <dobd8n$gga$1...@orkan.itea.ntnu.no>,
Torbjørn Hergum <torbjor...@gmail.com> wrote:


This is known behavior and it has to do with limitations of Java (at
least as implemented in OS X). MathWorks has no control over it.

You can still debug your m-files, you just don't have a graphical
debugger. You can set brekpoints and more from MATLAB commands. Type
"help debug" for more information.

--
Doug Schwarz
dmschwarz&urgrad,rochester,edu
Make obvious changes to get real email address.

Torbjorn Hergum

unread,
Dec 21, 2005, 8:50:27 AM12/21/05
to
Doug Schwarz wrote:

>
>>I've got a macintosh which runs the X11 application Apple ships with it.
>>I want to use it to run Matlab (remotely) on a linux server, but I can't
>>make it work with java (and X).
>>
>>I log in to the linux box with
>>
>>ssh -X my.ip.address
>>
>>and start matlab with
>>
>>matlab -nosplash
>>
>>It fails to load with the following error message:
>>
>>Xlib: unexpected async reply (sequence 0x14a)!
>>
>>
>>
>

>This is known behavior and it has to do with limitations of Java (at
>least as implemented in OS X). MathWorks has no control over it.
>
>

But if I log in from another linux box instead of from the mac, it all
works like a charm. So I guess it should be possible to fix this.

Torbjørn

Doug Schwarz

unread,
Dec 21, 2005, 10:13:36 AM12/21/05
to
In article <dobmiv$lhj$1...@orkan.itea.ntnu.no>,
Torbjorn Hergum <torbjor...@gmail.com> wrote:

Sorry, I totally missed the fact that you are running MATLAB on the
linux server. I thought you were running it on the Mac while sitting at
the linux box which is the situation I was talking about. In your case
I have no idea what's wrong and you're right, you should be able to fix
it somehow.

Sorry for the confusion and good luck!

0 new messages