Oh yes I noticed that. I guess the 32MB headroom is  not enough with a high res display …

https://github.com/codefrau/SqueakJS/blob/a947f96a3fdf7473582d6b359cadd89db96cea72/vm.image.js#L70

SqueakJS artificially limits the amount of memory used, like old Squeak VMs used to do, partly because there’s no way to query the actual available memory size via JavaScript. 

Not sure what the best way is to deal with that. Maybe if we run out of room we should do a full GC, and if that didn’t help, increase the headroom? 

Vanessa

On Wed, Nov 23, 2022 at 06:31 Thiede, Christoph <Christoph.Thiede@student.hpi.uni-potsdam.de> wrote:

Thank you Vanessa!


If I open Marcel's link https://squeak.js.org/run/#zip=https://files.squeak.org/6.0/Squeak6.0-22104-64bit/Squeak6.0-22104-64bit.zip&highdpi=true on my high-dpi device (250%), it loads about one minute and then reproducibly says:




But I have more than 1 GB free RAM. If open the link on a low-DPI screen instead, and move it to the other screen afterward, everything works fine. :-)


Best,

Christoph


Von: Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Taeumel, Marcel
Gesendet: Montag, 21. November 2022 09:50:25
An: squeak-dev; vm-dev
Betreff: Re: [squeak-dev] Squeak 6 on SqueakJS
 
Hi Vanessa --

Thank you!! :-D

High-DPI also works:

Best,
Marcel

Am 21.11.2022 06:29:19 schrieb Vanessa Freudenberg <vanessa@codefrau.net>:

... works now with release 1.0.5 of SqueakJS:

https://squeak.js.org/run/#zip=https://files.squeak.org/6.0/Squeak6.0-22104-64bit/Squeak6.0-22104-64bit.zip

We only had to recognize the new image format – sorry it took me so long. Thank you, Christoph Tiede and Dave Lewis!

TODO: actually implement primitive 578 (but then, quite a few non-essential prims are still missing)

Enjoy!
Vanessa