-
Notifications
You must be signed in to change notification settings - Fork 15k
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
[Bug]: memory leak when img element loading gif file #31834
Comments
Thanks for reporting this and helping to make Electron better! Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? Electron Fiddle is a great tool for making small testcases and publishing them as gists that Electron maintainers can use. If the bug you've found can be tested with a pass / fail test, please make the testcase exit 0 on success or nonzero on failure. The lets Electron's issue bot see what releases are affected by the bug by checking your test against different OSes and Electron versions. I'm adding the Thanks in advance! Your help is appreciated. |
@ckerr the test case : https://gist.github.com/alex8088/0b6760532047adfe5094d6ac7cd21480 the gif picture like this: |
@ckerr plan to fix this bug ? |
@alex8088, this doesn't reproduce for me on Windows 10 or macOS 11.6.1. I tried with both loading the GIF from the URL you provided, and from disk as well. |
Can anyone fix this bug, it looks like a serious bug |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
@alex8088 老表 这个bug 解决了吗 |
Preflight Checklist
Electron Version
13.6.1
What operating system are you using?
Windows
Operating System Version
Windows 10 / macOS
What arch are you using?
x64
Last Known Working Electron version
13.0.0 ~ 15.3.2
Expected Behavior
No memory leak
Actual Behavior
1.The memory usage will increase when the img element loading GIF picture.
2.The memory usage will increase more when the GIF picture have more frames.
3.The memory is not reclaimed when the img element is removed.
4. Use Ctrl+R will release memory
5. Both windows and macOS
Testcase Gist URL
https://gist.github.com/alex8088/0b6760532047adfe5094d6ac7cd21480
Additional Information
preload.js
The text was updated successfully, but these errors were encountered: