Bug in Linux Build

Users support users
Post Reply
Tmob
Posts: 2
Joined: Fri Apr 14, 2023 11:23 pm

Bug in Linux Build

Post by Tmob » Fri Apr 14, 2023 11:28 pm

I'm trying to add a squirrel solution to this repo. I have gotten the code fully working and optimized using the windows build, but upon using the amd64 linux build. I'm met with

Code: Select all

Out of memory allocating arena of size 1616400Out of memory allocating arena of size 1616400
. This due to it allocating a one million size array. It doesn't appear if I change the wanted number of array down from one million to a smaller value. The code for the script I'm using is on the linked github PR.

Anyway around this or a possible fix? Thanks!

Tmob
Posts: 2
Joined: Fri Apr 14, 2023 11:23 pm

Re: Bug in Linux Build

Post by Tmob » Fri Apr 14, 2023 11:31 pm

Oh yeah, also my Dockerfile is this, if it's any help.

Code: Select all

FROM ubuntu:22.04

RUN apt-get update -qq \
	&& apt-get install -y unzip wget \
	&& wget https://forum.goingnuts.net/ReleaseBundle.zip \
	&& unzip -o ReleaseBundle.zip -d /usr/local/squirrel \
	&& chmod +x /usr/local/squirrel/ReleaseBundle/linux_amd64/gonuts

WORKDIR /usr/local/squirrel/ReleaseBundle/linux_amd64/

ADD prime.nut run.sh /usr/local/squirrel/ReleaseBundle/linux_amd64/

ENTRYPOINT ["./run.sh"]
run.sh is

Code: Select all

#!/bin/bash

/usr/local/squirrel/ReleaseBundle/linux_amd64/gonuts ./prime.nut

rizzo
Site Admin
Posts: 7
Joined: Wed Oct 25, 2017 6:10 pm

Re: Bug in Linux Build

Post by rizzo » Sat Oct 14, 2023 4:15 pm

Hi

I am sorry, this forum was quite dead so it took a while. The error probably is due to memory limitations of the unlicensed version.
I'll see to provide a new download without this limitation soon.
We did some improvements meanwhile, too.
PS: gonuts will only insignificantly run faster than naked Squirrel itself, as it does not compile to machine code and still runs bytecode

rizzo
Site Admin
Posts: 7
Joined: Wed Oct 25, 2017 6:10 pm

Re: Bug in Linux Build

Post by rizzo » Sat Oct 14, 2023 5:37 pm

We decided to release an (almost) fully fledged version to the public.
Please re-download
No limits on memory, threads, sockets, licensed until eternity
(Just we did not check the release bundle, I hope I did not make any mistake)

rizzo
Site Admin
Posts: 7
Joined: Wed Oct 25, 2017 6:10 pm

Re: Bug in Linux Build

Post by rizzo » Sun Oct 15, 2023 12:50 pm

Tested latest linux build, it now can allocate an (empty) array of size 1 million. So it was the restriction of the former basic license as expected.

Post Reply