daitangio / jsqueak

JSqueak: A Java implementation of Squeak Smalltalk.
Other
10 stars 1 forks source link

Squeak2232bit.image does not load correctly #3

Open daitangio opened 10 years ago

daitangio commented 10 years ago

There is a bug with loading a Squeak22 full image.

INFO: null >> null
10-dic-2013 12.13.30 org.squeak.potato.vm.VM dumpStack
INFO: null >> null
10-dic-2013 12.13.30 org.squeak.potato.vm.VM dumpStack
INFO: null >> null
10-dic-2013 12.13.30 org.squeak.potato.vm.VM dumpStack
INFO: null >> null
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 100
        at org.squeak.potato.vm.VM.dumpStack(VM.java:1357)
        at org.squeak.potato.vm.VM.send(VM.java:931)
        at org.squeak.potato.vm.VM.run(VM.java:671)
        at org.squeak.potato.Main.main(Main.java:81)
daitangio commented 10 years ago

The problems seems near Form<<unhibernate and seems related to ByteArray decompression:

unhibernate
    "If my bitmap has been compressed into a ByteArray,
    then expand it now, and return true."

    (bits isMemberOf: ByteArray)
        ifTrue: [bits _ Bitmap decompressFromByteArray: bits. ^ true].
    ^ false