Menu

#583 Compressed zip files are not loaded correctly - jmol-14.6.0

v12
open
nobody
None
5
2016-08-04
2016-07-12
Ilya M
No

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.

Related

Bugs: #583

Discussion

  • Ilya M

    Ilya M - 2016-07-12

    2bxaH file is included in downloadable distribution of Jmol

     
  • Ilya M

    Ilya M - 2016-07-12

    Code fix:

           var Info = {
              width: 450,
              height: 450,
              debug: false,
              color: "white",
              addSelectionOptions: false,
              use: "HTML5",
              j2sPath: "/j2s",
              readyFunction: jmolReady,
              src: '/data/2bxaH.pdb.zip',
              disableInitialConsole: false
    
            }
    

    Jmol._binaryTypes.push('');
    jmolApplet0 = Jmol.getApplet("jmolApplet0", Info);

     
    • Bob Hanson

      Bob Hanson - 2016-07-14

      So, what was the fix?

      On Tue, Jul 12, 2016 at 5:20 AM, Ilya M vorpaltech@users.sf.net wrote:

      Code fix:

         var Info = {
            width: 450,
            height: 450,
            debug: false,
            color: "white",
            addSelectionOptions: false,
            use: "HTML5",
            j2sPath: "/j2s",
            readyFunction: jmolReady,
            src: '/data/2bxaH.pdb.zip',
            disableInitialConsole: false
      
          }
      

      Jmol._binaryTypes.push('');
      jmolApplet0 = Jmol.getApplet("jmolApplet0", Info);


      Status: open
      Group: v12
      Created: Tue Jul 12, 2016 10:18 AM UTC by Ilya M
      Last Updated: Tue Jul 12, 2016 10:19 AM UTC
      Owner: nobody

      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.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/jmol/bugs/583/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      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

  • Angel Herraez

    Angel Herraez - 2016-07-16

    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.

     
  • Ilya M

    Ilya M - 2016-08-04

    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.

     

Log in to post a comment.