JDK-8333879 : Scrolling a webpage results in memory leak with metal pipeline
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: internal
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: generic
  • Submitted: 2024-06-10
  • Updated: 2024-07-20
  • Resolved: 2024-07-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
internalResolved
Related Reports
Duplicate :  
Relates :  
Description
After implementing JDK-8309916, we can load webpages in WebView which get rendered with metal pipeline.
It is observed that on scrolling of loaded webpage for some time, a message gets logged on terminal saying - "Context leak detected, CoreAnalytics returned false"

This bug is to analyze and fix this leak.

Steps to reproduce: use javafx metal sandbox repo
1) Build apps
2) Launch HelloWebview demo -
java @./build/run.args -Dcom.sun.webkit.useHTTP2Loader=false -cp "<Path to metal sandbox>/rt/apps/toys/Hello/dist/Hello.jar" hello.HelloWebView
3) Verify that it loads the default webpage.
4) start scrolling till the end of the webpage. (If the context leak message does not appear on terminal, keep scrolling up and down multiple times)
Comments
JDK-8336477 resolves this issue.
17-07-2024

I am seeing different log "Context leak detected, msgtracer returned -1", but it says Context leak detected. Also we need to build both webkit and media to load the default webpage in the demo app.
17-06-2024