[Webkit-unassigned] [Bug 249947] New: wpebackend-fdo appears to be leaking EGL images

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 29 12:27:31 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=249947

            Bug ID: 249947
           Summary: wpebackend-fdo appears to be leaking EGL images
           Product: WebKit
           Version: Other
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: Major
          Priority: P2
         Component: WPE WebKit
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: brett at mynah-software.com
                CC: bugs-noreply at webkitgtk.org

Created attachment 464250

  --> https://bugs.webkit.org/attachment.cgi?id=464250&action=review

fdo patch to free egl images

My understanding of the EGL image management in FDO is somewhat limited, but I believe that EGL images are being leaked when destroying webkit views. 

In my application I regularly call webkit_web_view_backend_new; this happens a lot because I create many separate webkit views and release them when no longer needed.

All EGL images that are consumed by the client (my code) are returned to FDO prior to webkit.view un-referencing using the wpe_view_backend_exportable_fdo_dispatch_frame_complete and wpe_view_backend_exportable_fdo_egl_dispatch_release_exported_image functions.


I notice that memory is consumed but not freed and upon investigation I found that EGL images were leaking.

The attached patch corrected my application and I'm submitting it for help here.
Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221229/04310844/attachment.htm>


More information about the webkit-unassigned mailing list