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

Issue with WebAssembly memory #11

Closed
kalwalt opened this issue Nov 15, 2021 · 1 comment
Closed

Issue with WebAssembly memory #11

kalwalt opened this issue Nov 15, 2021 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@kalwalt
Copy link
Member

kalwalt commented Nov 15, 2021

Sometimes i get this error while i run some Ar.js examples in the ES6 branch (PR AR-js-org/AR.js#116):

ARToolkit.js:1 Uncaught (in promise) RangeError: WebAssembly.Memory(): could not allocate memory at __webpack_modules__../node_modules/@ar-js-org/artoolkit5-js/dist/ARToolkit.js.w (ARToolkit.js:1) at ARToolkit.js:1 at new Promise (<anonymous>) at G (ARToolkit.js:1) at A.<anonymous> (ARToolkit.js:1) at a (ARToolkit.js:1) at Generator._invoke (ARToolkit.js:1) at Generator.next (ARToolkit.js:1) at A (ARToolkit.js:1) at i (ARToolkit.js:1)

I think that is caused because the lib is not compiled with the Allow memory growth option enabled: -s ALLOW_MEMORY_GROWTH=1
I will add this when the Ar.js ES6 branch is merged into dev.

@kalwalt
Copy link
Member Author

kalwalt commented Nov 18, 2021

solved with #12

@kalwalt kalwalt closed this as completed Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant