Skip to content

Chrome leaks memory on page refresh with PTHREADS #8571

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

Closed
VirtualTim opened this issue May 9, 2019 · 2 comments
Closed

Chrome leaks memory on page refresh with PTHREADS #8571

VirtualTim opened this issue May 9, 2019 · 2 comments

Comments

@VirtualTim
Copy link
Collaborator

Compile an empty file like:
emcc empty.cpp -s TOTAL_MEMORY=536870912 -s USE_PTHREADS=1 -s THREAD_POOL_SIZE=10 -o test.html
Open in Chrome, open the Chrome task manager (shift esc), and refresh the page a few times.
"Memory footprint" will increase by ~500MB on each refresh, until the tab crashes.
image
Tested in Chrome 76.0.3789.0.

No idea if the issue is on Chrome or Emscripten, but figured that I'd open here to see if anyone had any ideas. I couldn't reproduce on Firefox.

@kripken
Copy link
Member

kripken commented May 9, 2019

I'm afraid this is a known issue on Chrome currently. Should be https://bugs.chromium.org/p/chromium/issues/detail?id=935169 / https://bugs.chromium.org/p/chromium/issues/detail?id=877055 They're assigned, and I believe they are being looked at.

@VirtualTim
Copy link
Collaborator Author

Alright. I had a look on the Chrome bug tracker, but didn't see that. I'll close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants