emscripten-core / emscripten-core/emscripten

Browser crashes when wasm is loaded multiple times.

Open
#17,922 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Hi
I have a html5 based web application that would be integrated with other web applications via iFrame. There will be situations where the iFrame will be reloaded. So when the iFrame is loaded, wasm js file is also got and is also loaded again. But the browser memory seems to be growing and at some reloads, the browser crashes. I am building the WASM files with TOTAL_STACK=640mb INITIAL_MEMORY=704mb. When I remove this from the build command, the crashes are not encountered. Kindly help me with this issue.

Thank You !

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.