In jmol-14.6.0_2016.06.30
Jsmol
included files: only JSmol.min.js
code:
var Info = { width: 450, height: 450, debug: false, color: "white", addSelectionOptions: false, use: "HTML5", j2sPath: "/j2s", readyFunction: jmolReady, src: '/data/2bxaH.pdb.zip',
"JmolApplet.jar"),
disableInitialConsole: false }
Jmol._binaryTypes.push('');
jmolApplet0 = Jmol.getApplet("jmolApplet0", Info);
Big pdb file packed with the zip algorithm generates error:
In Chrome: script ERROR: RangeError: Maximum call stack size exceeded
In Firefox: script ERROR: RangeError: arguments array passed to Function.prototype.apply is too large
Compression with the Gzip ".gz" is ok.
Thanks.
Ilya.
2bxaH file is included in downloadable distribution of Jmol
Code fix:
Jmol._binaryTypes.push('');
jmolApplet0 = Jmol.getApplet("jmolApplet0", Info);
So, what was the fix?
On Tue, Jul 12, 2016 at 5:20 AM, Ilya M vorpaltech@users.sf.net wrote:
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
Related
Bugs: #583
Hello, Ilya
I took that pdb file from the 14.6.0_2016.06.30 distribution, compressed it using WinZip and loaded into Jmol: no errors
There might be something in particular with your compression method.
Hi All
Sorry for delay.
-- So, what was the fix?
It was just amendment of code to reproduce the issue.
-- Hello, Ilya
-- I took that pdb file from the 14.6.0_2016.06.30 distribution, compressed it using WinZip and loaded into Jmol: no errors
-- There might be something in particular with your compression method.
Yes, it might be. I am using linux zip command and output of java ZipOutputStream. Version which causes error attached.
Thanks.