Stream: general

Topic: firefox wasm memory leak


view this post on Zulip bjorn3 (Jul 31 2020 at 16:53):

I compiled rustc to a wasm module using wasi. I am currently trying to make a new wasi polyfill in pure javascript. I noticed that every time I refresh the page in firefox the memory usage increases by 200MB. Only closing the tab releases this memory again after forcing a GC. Can somebody report a bug for me? I don't have a bugzilla account.

view this post on Zulip Benjamin Bouvier (Jul 31 2020 at 16:53):

@bjorn3 can you use your Github account to log in with Bugzilla? It's likely people looking at your bug will ask for more information, etc. so you have better chances to see it resolved if you can answer directly

view this post on Zulip Benjamin Bouvier (Jul 31 2020 at 16:54):

(Great job compiling rustc to wasm, btw!)

view this post on Zulip bjorn3 (Jul 31 2020 at 16:54):

I didn't know you could login using github.

view this post on Zulip bjorn3 (Jul 31 2020 at 16:55):

I used cg_clif as codegen backend for rustc. I was then able to run it in wasmtime.

view this post on Zulip bjorn3 (Jul 31 2020 at 16:56):

It is Cranelift's all the way to the bottom :)

view this post on Zulip bjorn3 (Jul 31 2020 at 16:59):

What is the maximum size for attachments? Can I attach the 49MB rustc_binary.wasm file?

view this post on Zulip bjorn3 (Jul 31 2020 at 17:00):

Also does it support markdown in the description?

view this post on Zulip Benjamin Bouvier (Jul 31 2020 at 17:00):

Markdown indeed is supported; max size i don't know, do you have a web server where to host it? or github pages?

view this post on Zulip bjorn3 (Jul 31 2020 at 17:03):

I don't have a web server. I can try if github pages allows it.

view this post on Zulip Chris Fallin (Jul 31 2020 at 17:04):

Might be worth trying gzip or xz; I don't know how compressible wasm bytecode is but it has to be better than nothing

view this post on Zulip Chris Fallin (Jul 31 2020 at 17:04):

(If you have to attach it in Bugzilla I mean)

view this post on Zulip bjorn3 (Jul 31 2020 at 17:06):

gzip: 49MB -> 11MB

view this post on Zulip bjorn3 (Jul 31 2020 at 17:16):

I can't attach both the wasm file and the memory report when filing the report. Can I attach either after the fact?

view this post on Zulip Chris Fallin (Jul 31 2020 at 17:16):

You should be able to, yes

view this post on Zulip bjorn3 (Jul 31 2020 at 17:19):

This file (10.5 MB) is larger than the maximum allowed size (10.0 MB). Please consider uploading it to an online file storage and sharing the link in a bug comment instead.

The rustc_binary.wasm file is just a bit too big.

view this post on Zulip Chris Fallin (Jul 31 2020 at 17:20):

xz or bzip2?

view this post on Zulip bjorn3 (Jul 31 2020 at 17:23):

xz worked. Just 6MB.

view this post on Zulip bjorn3 (Jul 31 2020 at 17:23):

https://bugzilla.mozilla.org/show_bug.cgi?id=1656549

view this post on Zulip bjorn3 (Jul 31 2020 at 17:24):

bugzilla choose my user name based on my email address. Can I change it somewhere?

view this post on Zulip bjorn3 (Jul 31 2020 at 17:25):

ah, has to fill in realname

view this post on Zulip bjorn3 (Jul 31 2020 at 17:28):

it still leaks my email address though


Last updated: Oct 23 2024 at 20:03 UTC