NEW301098
[GTK][WPE] bwrapinfo.json file leaks
https://bugs.webkit.org/show_bug.cgi?id=301098
Summary [GTK][WPE] bwrapinfo.json file leaks
Carlos Alberto Lopez Perez
Reported 2025-10-20 08:51:12 PDT
Each time the browser is started it is leaking bwrapinfo.json files at ${XDG_RUNTIME_DIR}/.flatpak/webkit-${PID}-${ID} And this can be an issue that can cause ${XDG_RUNTIME_DIR} to become full This is causing issues for example, on the RPi4 boards running the WPE performance bot CI. See: https://build.webkit.org/#/builders/895/builds/20515 ** (MiniBrowser:3724721): WARNING **: 07:59:25.587: Failed to create '/run/user/1906/.flatpak/webkit-3724721-4': No space left on device ** (MiniBrowser:3724721): WARNING **: 07:59:25.587: Failed to make socket file /run/user/1906/wpe/bus-proxy-4BU1E3 for dbus proxy: No space left on device ** (MiniBrowser:3724721): WARNING **: 07:59:25.588: Failed to make socket file /run/user/1906/wpe/a11y-proxy-S0T1E3 for dbus proxy: No space left on device ** (WPEWebProcess:2): WARNING **: 07:59:26.014: Can't connect to a11y bus: Could not connect: No such file or directory ** (MiniBrowser:3724721): WARNING **: 07:59:26.043: Failed to create '/run/user/1906/.flatpak/webkit-3724721-5': No space left on device A manual inspect via ssh shows thousands of this files that end adding and consuming all the space available there (380M) bb-wpe-rpi4-perf6-64 ~ # du -hs /run/user/1906/.flatpak 189M /run/user/1906/.flatpak bb-wpe-rpi4-perf6-64 ~ # df -h /run/user/1906/.flatpak Filesystem Size Used Avail Use% Mounted on tmpfs 380M 189M 191M 50% /run/user/1906 bb-wpe-rpi4-perf6-64 ~ # find /run/user/1906/.flatpak -type f -name bwrapinfo.json|wc -l 48162
Attachments
Carlos Alberto Lopez Perez
Comment 1 2025-10-20 08:52:09 PDT
273334@main added the code to create this bwrapinfo.json files
Patrick Griffis
Comment 2 2025-10-21 10:11:57 PDT
It looks like Flatpak has a lot of logic to deal with this: https://github.com/flatpak/flatpak/blob/main/common/flatpak-instance.c It involves locking the file at various points, and a garbage collection step.
Note You need to log in before you can comment on or make changes to this bug.