Skip to content

does wasmoon have a thread limit? #149

@yoo4543r

Description

@yoo4543r

I get the error: Uncaught (in promise) Error: [string "print("Hello, World!")"]:1: attempt to call a nil value (global 'print')

when making more than 45 threads, im guessing its a max memory reached error where I cant assign more threads after that.
heres an example code if you want to try it yourself:
for (let i=0; i<55; i++) { vm.doString(print("Hello, World!")) }
I've been using wasmoon for 2 months in my project though I havent encountered a problem like this. I have two decisions, limit the maximum threads limit to 40 or maybe if theres a better solution I'd pick it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions