Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Hello world" example fails with error: "HVM output had no result (An error likely occurred)" #740

Open
jaredkrinke opened this issue Dec 1, 2024 · 4 comments
Labels
question Further information is requested

Comments

@jaredkrinke
Copy link

jaredkrinke commented Dec 1, 2024

Reproducing the behavior

hello.bend (copied from GUIDE.md):

def main():
  return "Hello, world!"

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

  • HVM: 2.0.22
  • Bend: 0.2.37
  • OS: Linux (Debian stable/bookworm) -- N.B. this is a VM
  • CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
  • GPU: none
  • Cuda Version: none

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?).

@jaredkrinke
Copy link
Author

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?

@jaredkrinke
Copy link
Author

I found an HVM bug that makes it sound like this is known: HigherOrderCO/HVM#332

Feel free to close this bug if that's correct.

@jaredkrinke
Copy link
Author

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.

@developedby
Copy link
Member

HVM currently always preallocates about 6GB of memory, so that's likely what's causing your issue.

@developedby developedby added the question Further information is requested label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants