You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi community :)
I get an error after several refresh : Uncaught RangeError: WebAssembly.Memory(): could not allocate memory.
When I go to "inspect > memory > Select Javascript VM instance", memory grows each time I refresh the page.
When memory is bigger than 40mo, the error appear.
How can I clear memory on refresh page ?
The memory should not be deleted automatically ?
My code :
`extern "C" {
void EMSCRIPTEN_KEEPALIVE gl() {
// set size of viewport
glViewport(0, 0, 800, 600);
}
int EMSCRIPTEN_KEEPALIVE main() {
// insert code here...
emscripten_log(EM_LOG_CONSOLE, "hello world \n");
return 0;
};