Bob,
OK, this is reproducible, I think!
If I hammer AJAX save state to my server and check each saved file, all seems
OK. I'm getting state with:
Jmol.getPropertyAsString(jmolApplet0, "stateInfo")
If I restore one of these files, it restores, but the next save shows:
set defaultlattice "{NaN NaN NaN}";
under _setVaribaleState.
Save again, and the NaN damage is extended to set defaultLattice under
_setFileState()
With this damage done, the model will not load from state. To restore state,
I'm using:
var scpt = 'st1=load("temp/' + kitid +
'.txt");st1=st1.replace("!AMP!","&");script INLINE @st1;';
Jmol.script(jmolApplet0, scpt);
I have to do this because I need to load from a variable that has been
corrected (replace above) for the Windows server & nonsense.
Here's the crazy part. I'm pretty sure once the set defaultlattice "{NaN NaN
NaN}" under _setVariableState damage is done, I'm skunked even if I load a new
model. In other words, if a go through phase 1 with butane (one save load
cycle), but load ethanol before going through the second save load, ethanol's
save load fails.
It looks to me like the guilty party here is my method of restoring. That this
carries over to a new load seems strange, however.
Otis
--
Otis Rothenberger
[email protected]
http://chemagic.com
On Dec 9, 2013, at 9:25 PM, Otis Rothenberger <[email protected]> wrote:
> Bob,
>
> With our multi-user feature, I'm attempting to go back to state as the
> approach to save/load. I've got the Windows server issue fixed, but I'l
> running into a random problem. After a series of model save and load cycles
> for simple modes, I'm ending up with the following line in the state file:
>
> set defaultLattice {NaN NaN NaN};
>
> It is the act of simply loading a model that breaks this line. There in no
> pattern - completely random.
>
> This is Mac Chrome with 14.0.1_2013.12.04.
>
> Otis
>
> --
> Otis Rothenberger
> [email protected]
> http://chemagic.com
>
>
>
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users