De: "Miguel" <[EMAIL PROTECTED]>
>
>Nico,
>
>Exporting a .pdb file as povray works OK.
>
>Exporting a .xyz file as povray generates a stack dump.
>
>Q: Will you have a chance to investigate this?

I had a quick look at it and it's also crashing with a .pdb file.

I tracked the problem to the method viewer.getDisplayModelIndex() returning -1. 
How is it possible ?

That's what causing the stack dump.

I used the method getDisplayModelIndex() in PovraySaver to get the index of the 
currently displayed model to get all the atoms, bonds, ... for this model.

******

a few minutes later: the problem is not in the PovraySaver part, it's a really 
more general one.

Apparently, when Jmol reads its first file it's not the first model that is 
displayed but all of them (I opened one of the animations in Jmol-datafile and 
everything is displayed).

If you use the VCR command rewind before running povray, only the first frame 
is displayed and then povray export works correctly.

I have added a test in PovraySaver to prevent the crash, but the real fix needs 
to be done somewhere else.

I think the recent modifications in the code have probably broken something in 
the initialization. I will let you or Bob investigate on what is causing this 
initialization problem.

Nico



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to