[squeak-dev] [ANN] The Heart of the Snake King

Tobias Pape Das.Linux at gmx.de
Fri Jun 26 07:14:33 UTC 2020


Hi

> On 26.06.2020, at 08:37, K K Subbu <kksubbu.ml at gmail.com> wrote:
> 
> On 26/06/20 12:03 am, Vanessa Freudenberg wrote:
>> Interesting. What browser are you using?
>> I verified it works on Chrome, Firefox, and Safari.
> 
> Firefox was running in private mode. If I use regular mode, then the code works.
> 
> In private mode, the image reports "Squeak cannot locate the changes file named /SqueakJS/HeartOfSnakeKing.changes"

In private mode, several session storage APIs of Firefox are forbidden to be used.



> 
> This is what I grabbed from the JS console:
> -----
> SpeechPlugin: Web Speech API is not supported by this browser. squeak.js:38111:14
> Unknown property ‘-moz-box-shadow’.  Declaration dropped. gh-fork-ribbon.css:27:19
> InvalidStateError: cannot open files database squeak.js:7873:13

As said above, that kind of storage (IndexedDB?) cannot be used in Private mode.

> Falling back to local storage squeak.js:7874:13

So it is using local storage, with limited size.

> File /HeartOfSnakeKing.zip (27219201 bytes) too large, storing in memory only squeak.js:7925:17

OK the zip is in memory only now.


> Stored /HeartOfSnakeKing.zip squeak.js:54288:12
> Inflating HeartOfSnakeKing.zip: HeartOfSnakeKing.changes squeak.js:54324:13
> Inflating HeartOfSnakeKing.zip: HeartOfSnakeKing.image squeak.js:54324:13
> Expanded size of HeartOfSnakeKing.changes: 48839152 squeak.js:54327:14
> Expanded size of HeartOfSnakeKing.image: 55392848 squeak.js:54327:14
> InvalidStateError: cannot open files database squeak.js:7873:13
> Falling back to local storage squeak.js:7874:13
> File /HeartOfSnakeKing.changes (48839152 bytes) too large, storing in memory only squeak.js:7925:17

Thats the problem, SqueakJS cannot access the file by name now, if I read that correctly.

> Stored /HeartOfSnakeKing.changes squeak.js:54288:12
> InvalidStateError: cannot open files database squeak.js:7873:13
> Falling back to local storage squeak.js:7874:13
> File /HeartOfSnakeKing.image (55392848 bytes) too large, storing in memory only squeak.js:7925:17

Same here, but the image is loaded and executed and does not need to be referenced by name anymore.

> Stored /HeartOfSnakeKing.image squeak.js:54288:12
> squeak: reading /HeartOfSnakeKing.image (55392848 bytes) squeak.js:1256:12
> InvalidStateError: cannot open files database squeak.js:7873:13
> Falling back to local storage squeak.js:7874:13
> Deleting stale file entry /HeartOfSnakeKing.zip squeak.js:7779:15
> Deleting stale file entry /HeartOfSnakeKing.changes squeak.js:7779:15
> Deleting stale file entry /HeartOfSnakeKing.image squeak.js:7779:15
> squeak fsck: 0 directories, 0 files, 0.0 MBytes squeak.js:7791:13

Yeah, the "virtual filesystem" that squeakjs emulates with the indexedDB? is now empty, so Squeak cannot find the Changes file.


> squeak: initializing interpreter SqueakJS 0.9.9 squeak.js:2314:12
> squeak: initializing JIT compiler squeak.js:2418:13
> squeak: ready squeak.js:2324:12
> ....
> 
> HTH .. Subbu
> 

Best regards
	-Tobias



More information about the Squeak-dev mailing list