Open jaredkrinke opened 1 day ago
I found a thread on Discord where someone ran into a similar problem, and they were able to resolve it by increasing the amount of memory available to their VM. I tried increasing the VM's memory to 4 GB, to no avail, but increasing the VM's memory to 8 GB got things working.
Is it expected to have a "hello world" require gigabytes of memory?
I found an HVM bug that makes it sound like this is known: https://github.com/HigherOrderCO/HVM/issues/332
Feel free to close this bug if that's correct.
Well, the "hello world" program runs on my 4 GB laptop, so maybe this is something specific to VMs (I was using Hyper-V), or possibly Debian stable (my laptop is running something newer).
Regardless, I have a working setup now.
HVM currently always preallocates about 6GB of memory, so that's likely what's causing your issue.
Reproducing the behavior
hello.bend (copied from GUIDE.md):
Command:
bend run hello.bend -s
Expected: Prints "Hello, world!". Actual: "HVM output had no result (An error likely occurred)" (same for
run
,run-c
)System Settings
Additional context
I'm brand new to Bend, so it's possible I'm doing something wrong. I didn't see any similar-looking bug reports, or anything in the FAQ. I tried running with
-v
, but I didn't see any obvious errors getting logged (just lots of transpiled code?).