[EMAIL PROTECTED] wrote:
>De: Rolf Huehne <[EMAIL PROTECTED]>
>
>  
>>Image creation works with linux (SuSE 9.3, java 1.4.2_11) without
>>showing a window. But Jmol still needs a valid connection to an
>>X-server. If I connect to the server with 'ssh' without tunneling the
>>X-server connection (no '-X' option) I get the following error message:
>>    
>
>Yes, I was almost sure you would get an error without an X-server (I wrote a 
>note about it when I sent a few ideas to make the -nodisplay work).
>
>I am not sure that we can work this out purely on the Jmol side. We can 
>probably fix a few things, but in my experience, a few things may still 
>require a X-server connection.
>
>I have worked on a project where we didn't manage to produce image files 
>without having a X-server. The solution we found was to configure Xvfb (a 
>virtual frame buffer).
>
>Have you the possibility to use Xvfb ? and then run Jmol as a batch using the 
>display provided by Xvfb ?
>
>  
Usually there is an X-server running on the server I plan to use for the
automatic image generation with Jmol, so there will be no need to use
Xvfb. I just feared that the need for an X-server might cause problems
(especially if lots of windows would pop up, but this is resolved already).

I must do some more testing but I think the current capabilities will be
sufficient to replace rasmol by Jmol for our automatic image generation.
So there is no need to invest too much work into this.

The problem with the SGI computer that I reported (see below) will be
more distrubing, because it will presumably take quite a while until we
can switch from the SGI to our new linux server. I fear that it is
caused by the rather old java version (1.4.1_06) but the chance is
almost zero to get a newer version installed on that server.

With IRIX64 on an SGI computer (java 1.4.1_06) it doesn't work with the
same command (connected with 'ssh -X'). I get the following error message:

java.lang.IllegalArgumentException: Width (0) and height (16) cannot be <= 0
        at
java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
        at java.awt.image.BufferedImage.<init>(BufferedImage.java:250)
        at org.jmol.g3d.Swing3D.allocateOffscreenImage(Swing3D.java:78)
        at org.jmol.g3d.Platform3D.checkOffscreenSize(Platform3D.java:171)
        at org.jmol.g3d.Text3D.<init>(Text3D.java:72)
        at org.jmol.g3d.Text3D.getText3D(Text3D.java:193)
        at org.jmol.g3d.Text3D.plot(Text3D.java:202)
        at org.jmol.g3d.Graphics3D.drawStringNoSlab(Graphics3D.java:481)
        at org.jmol.g3d.Graphics3D.drawString(Graphics3D.java:456)
        at org.jmol.viewer.Text.renderSimple(Text.java:404)
        at org.jmol.viewer.LabelsRenderer.render(LabelsRenderer.java:101)
        at org.jmol.viewer.ShapeRenderer.render(ShapeRenderer.java:60)
        at org.jmol.viewer.FrameRenderer.render(FrameRenderer.java:62)
        at org.jmol.viewer.RepaintManager.render(RepaintManager.java:155)
        at org.jmol.viewer.Viewer.getImage(Viewer.java:2009)
        at org.jmol.viewer.Viewer.getScreenImage(Viewer.java:2068)
        at org.openscience.jmol.app.ImageCreator.createImage(Jmol.java:1563)
        at
org.openscience.jmol.app.Jmol$MyStatusListener.createImage(Jmol.java:1426)
        at org.jmol.viewer.StatusManager.createImage(StatusManager.java:348)
        at org.jmol.viewer.Viewer.createImage(Viewer.java:3632)
        at org.jmol.viewer.Viewer.createImage(Viewer.java:3628)
        at org.jmol.viewer.Viewer.evalStringWaitStatus(Viewer.java:2174)
        at org.jmol.viewer.ScriptManager.runScript(ScriptManager.java:130)
        at
org.jmol.viewer.ScriptManager.runNextScript(ScriptManager.java:119)
        at
org.jmol.viewer.ScriptManager$ScriptQueueRunnable.run(ScriptManager.java:146)
        at java.lang.Thread.run(Thread.java:536)


Regards,
Rolf




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to