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

wee_alloc can appear to leak #11

Open
ctm opened this issue Mar 23, 2020 · 3 comments
Open

wee_alloc can appear to leak #11

ctm opened this issue Mar 23, 2020 · 3 comments

Comments

@ctm
Copy link

ctm commented Mar 23, 2020

I recently converted a piece of software from std-web to web-sys and everything went really well at least in super light testing. However, unbeknownst to me, a memory leak crept in and it turns out to happen when I use wee-alloc and have my project configured like I think yew-wasm-pack-template is demonstrating.

If I do the same thing using wasm-pack, I don't see the behavior.

I've created a repository that demos what I'm seeing. My workaround is simply not to use wee-alloc, but this behavior is surprising enough to me that I think it probably makes sense to mention it to somebody. I do, however, feel bad mentioning it here, but I think I'd feel worse mentioning it elsewhere.

@jstarry
Copy link
Member

jstarry commented Apr 26, 2020

Haha, I appreciate you bringing this up, we should definitely figure out why this is happening!

@finnbear
Copy link

Just experienced this too and, after spending a few hours tracking down the cause, found this related issue: rustwasm/wee_alloc#106

@ctm
Copy link
Author

ctm commented Jun 19, 2022

Thanks @finnbear, @CraigMacomber, and anyone else looking into this. It's bitten so many people I feel bad I didn't chase it down a couple of years ago.

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

3 participants