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

Memory leak in Web Page mode #142

Open
yiannis-p opened this issue Feb 7, 2024 · 0 comments
Open

Memory leak in Web Page mode #142

yiannis-p opened this issue Feb 7, 2024 · 0 comments

Comments

@yiannis-p
Copy link

yiannis-p commented Feb 7, 2024

There is a possible memory leak in Hidamari's Web Page mode.
After running for a few hours, the wallpaper stops working and the following error is displayed in the console:
Unable to shrink memory footprint of process (16384 MB) below the kill thresold (16384 MB). Killed

The error message appears to come from Webkit.
https://github.com/WebKit/WebKit/blob/main/Source/WTF/wtf/MemoryPressureHandler.cpp

To make sure it wasn't a leak in my web page's code, I tested the page in another WebKit browser (Epiphany). Both were run on Ubuntu using Flatpak:
Hidamari io.github.jeffshee.Hidamari 3.4
Web org.gnome.Epiphany 45.2

Hidamari's WebKitWebProcess process grew steadily at about 35MB/min and eventually died at 16GB memory used.
Epiphany's WebKitWebProcess did not appear to leak, and sat at 260MB-280MB memory used for the entire time.

A cut down/standalone example HTML file is attached.
memory_leak.html.txt

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

1 participant