curmande / in-spirit

Automatically exported from code.google.com/p/in-spirit
0 stars 0 forks source link

LZMAEncoder throws on creation #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to leverage the LZMAEncoder.swc in a stand-alone environment (i.e. 
small CS5-based project). I'm thinking there may be other dependencies the .swc 
is trying to reference? Any help would be appreciated!

What steps will reproduce the problem?
1. var enc:LZMAEncoder = new LZMAEncoder();
2. Runtime crash with VerifyError: Error #1026: Slot 34 exceeds slotCount=0 of 
String.

What is the expected output? What do you see instead?
Should continue without issue. Here is a snip of the exception thrown:

verify global$init()
                        stack:
                        scope: ~ ~ ~ ~ ~ ~ ~ 
                         locals: global * 
  0:getlocal0
                        stack: global
                        scope: ~ ~ ~ ~ ~ ~ ~ 
                         locals: global * 
  1:pushundefined
                        stack: global void?
                        scope: ~ ~ ~ ~ ~ ~ ~ 
                         locals: global * 
  2:setslot 35
                        stack:
                        scope: ~ ~ ~ ~ ~ ~ ~ 
                         locals: global * 
  4:getlocal0
                        stack: global
                        scope: ~ ~ ~ ~ ~ ~ ~ 
                         locals: global * 
  5:pushundefined
                        stack: global void?
                        scope: ~ ~ ~ ~ ~ ~ ~ 
                         locals: global * 
  6:setslot 37
                        stack:
                        scope: ~ ~ ~ ~ ~ ~ ~ 
                         locals: global * 
...
...
  3615:getscopeobject 0
                        stack: global
                        scope: global ~ ~ ~ ~ ~ ~ 
                         locals: global * 
  3617:findpropstrict cmodule.lzma::exportSym
                        stack: global global
                        scope: global ~ ~ ~ ~ ~ ~ 
                         locals: global * 
  3620:pushstring "_setjmp"
                        stack: global global String
                        scope: global ~ ~ ~ ~ ~ ~ 
                         locals: global * 
  3623:getglobalslot 34
VerifyError: Error #1026: Slot 34 exceeds slotCount=0 of String.

    at ru.inspirit.lzma::LZMAEncoder$cinit()
    at global$init()[E:\_exp\SevenZip\src\ru\inspirit\lzma\LZMAEncoder.as:15]
    at LZMA::test()[C:\depot\samples\LZMA\test.as:45]

Original issue reported on code.google.com by ja...@sectionseven.com on 19 Dec 2010 at 11:50