-
Notifications
You must be signed in to change notification settings - Fork 62
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
Out of memory on wayland platform #538
Comments
The fact that the leak happens on some platforms but not all you tested might indicate a driver issue. Needs further investigation... |
As I mentioned previously the memory leak does not exist on DRM platform. How can we investigate further if this is a driver issue or cog / webkit issue? |
@tonyakiki Which versions/commits of WPEBackend-fdo and Cog were you using when the leak was observed? We have recently landed Igalia/WPEBackend-fdo#178 and Igalia/WPEBackend-fdo#181 around the time of your original report—I wonder if you have found a regression, or if you are using a packaged release maybe the first of these PRs solves the issue. |
I confirm that Igalia/WPEBackend-fdo#178 and Igalia/WPEBackend-fdo#181 fix the memory leak problem. |
Thanks a lot for confirming that these patches fixed the issue! I have just tagged and uploaded WPEBackend-fdo 1.14.1, which includes them. |
Hello again @aperezdc ! I am using meta-webkit and I see that /recipes-browser/wpebackend-fdo still missing the last release 1.14.1. Can you confirm that? and when will it be released there? |
I have just submitted a PR to get the update into |
…view-backend-exportable-fdo-egl Since commit b51f539 there is a memory leak each time the wl_resource is destroyed. This can be easily reproduced by repeteadly switching full-screen on/off (pressing F11 key) with Cog on Weston. The memory leak is caused because since b51f539 the wpe_fdo_egl_exported_image object is not cleaned anymore on the bufferDestroyListenerCallback callback. Commit cb6b86a fixed the leak but introduced crashes on some cases, so it was reverted. This is a new attempt at fixing this leak, this adds safeguards to ensure that the image object is not cleaned twice or with the wrong exported status. Related-to: Igalia#73 Igalia#175 Igalia#176 Igalia#178 Related-to: Igalia/cog#538
…view-backend-exportable-fdo-egl Since commit b51f539 there is a memory leak each time the wl_resource is destroyed. This can be easily reproduced by repeteadly switching full-screen on/off (pressing F11 key) with Cog on Weston. The memory leak is caused because since b51f539 the wpe_fdo_egl_exported_image object is not cleaned anymore on the bufferDestroyListenerCallback callback. Commit cb6b86a fixed the leak but introduced crashes on some cases, so it was reverted. This is a new attempt at fixing this leak, this adds safeguards to ensure that the image object is not cleaned twice or with the wrong exported status. Related-to: #73 #175 #176 #178 Related-to: Igalia/cog#538
…view-backend-exportable-fdo-egl Since commit b51f539 there is a memory leak each time the wl_resource is destroyed. This can be easily reproduced by repeteadly switching full-screen on/off (pressing F11 key) with Cog on Weston. The memory leak is caused because since b51f539 the wpe_fdo_egl_exported_image object is not cleaned anymore on the bufferDestroyListenerCallback callback. Commit cb6b86a fixed the leak but introduced crashes on some cases, so it was reverted. This is a new attempt at fixing this leak, this adds safeguards to ensure that the image object is not cleaned twice or with the wrong exported status. Related-to: #73 #175 #176 #178 Related-to: Igalia/cog#538 (cherry picked from commit 5b1c5e4)
We have noticed a memory leak when running cog with WL platform. It is a Yocto Linux with wayland/weston and Cog/wpewebkit showing a full screen website with some video playing together with some other graphics and the HW is an intel based platform.
We can see with /proc/meminfo that the memory is listed as “Cached” and “Unevictable”. With /sys/kernel/debug/dri/0/i915_gem_objects we can see that shrinkable objects and size goes slowly up and closely match the values in meminfo. It constantly goes up and down a bit but over time it goes up with 1-2 objects every 10 sec or so. The machine with 4GB reaches OOM after 1-2h.
Running versions:
Some observations we have seen so far.
Typically a while before the OOM notice the high buff/cache
The text was updated successfully, but these errors were encountered: