Regrading a issue on loading wasm

261 views
Skip to first unread message

Learn Programming

unread,
Apr 2, 2019, 7:20:08 AM4/2/19
to emscripte...@googlegroups.com
I am using pathkit library of google which is based on webassembly , sometimes i get error like

Uncaught RangeError: WebAssembly.Memory(): could not allocate memory

Screenshot added below,

Thanks in advance.


Screenshot 2019-04-02 at 4.47.45 PM.png

Learn Programming

unread,
Apr 2, 2019, 9:05:39 AM4/2/19
to emscripte...@googlegroups.com
It is thrown only when i reload the page multiple times. I am using updated version of chrome. If anyone faced the same issues , please tell me how to solve this issue.

Alon Zakai

unread,
Apr 2, 2019, 4:06:32 PM4/2/19
to emscripte...@googlegroups.com
Reloading the page multiple times quickly may not give the browser a chance to free and reclaim memory.

Another possible issue is that on chrome with devtools open, GC happens less frequently, and this is more likely to happen.

Reducing TOTAL_MEMORY to the minimum possible for your app may make the problem less likely to occur.

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages