JDK-8097324 : Error : Outstanding resource locks detected
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u20
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-12-16
  • Updated: 2015-06-12
  • Resolved: 2015-06-04
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.
JDK 9
9Resolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
I created a JavaFX WebPlayer (with WebEngine) embedded into Swing application.

It worked well with 2.2.25 / 2.2.45 but since I tried with JavaFX 8 here is the stack I get :

Outstanding resource locks detected:
D3D Vram Pool: 7��900��200 used (2,9%), 7��900��200 managed (2,9%), 268��435��456 total
13 total resources being managed
average resource age is 1.5 frames
0 resources at maximum supported age (0,000000)
3 resources marked permanent (23,100000)
3 resources have had mismatched locks (23,100000)
3 resources locked (23,100000)
5 resources contain interesting data (38,500000)
0 resources disappeared (0,000000)

Moreover, my keyboard handlers are not detected anymore, it does not interact.
EDIT : keyboard/mouse handlers can be retrieved with call on method requestFocus for the browser
Comments
There're two related issues. RT-40630 - is a fix of a resource leak in WebView media player. RT-46160 - is a fix of a resource leak in canvas (on review). So, I'm closing this issue as a duplicate of the former. Please test it with upcoming EA jdk9-b67 and jdk8u60-b18 and feel free to reopen in case it's still reproducible. https://jdk9.java.net/download https://jdk8.java.net/download.html
04-06-2015

When I run the test case it shows a black window and nothing else. Same is displayed in Chrome and Firefox when I open diaporama/index.html. Could anyone else please confirm the test reproduces the issue? It contains lots of JS but I can see it starts some video playback, so I suspect it might be related to RT-40630 (note that youtube may not be playable in WebView behind proxy due to forwarding to https, though it may depend on proxy settings).
22-05-2015

In my case this error partially fixes user interface (under ubuntu) and can resolve after refreshing of internet connection. In second - this error was never happen under jdk 1.8.0_11.
25-04-2015

"outstanding resource locks detected" is a generic error that can come from anywhere. Until we diagnose any given test case we can't know if the cause is the same, so it is probably best to submit a new report with your test case and we can always close it as a duplicate later if it arises from the same underlying code.
19-12-2014

I get this error when physically connecting or disconnecting a display while an FX application is running with a threaded Task that calls Screens.getScreens() every 1 second. No WebView or Canvas in use.
19-12-2014

SQE is ok to defer from 8u40.
18-11-2014

I just received a similar error and some keypresses stopping responding, problems still seem to be in Java8u25: Outstanding resource locks detected: D3D Vram Pool: 137,740,392 used (51.3%), 137,740,392 managed (51.3%), 268,435,456 total 180 total resources being managed average resource age is 348.9 frames 29 resources at maximum supported age (16.1%) 15 resources marked permanent (8.3%) 3 resources have had mismatched locks (1.7%) 3 resources locked (1.7%) 69 resources contain interesting data (38.3%) 0 resources disappeared (0.0%)
14-11-2014

No resources to fix it in 8u40, moving to 9.
23-09-2014

Here is the error I get when loading the page: Outstanding resource locks detected: D3D Vram Pool: 15,819,800 used (5.9%), 15,819,800 managed (5.9%), 268,435,456 total 11 total resources being managed average resource age is 0.5 frames 0 resources at maximum supported age (0.0%) 6 resources marked permanent (54.5%) 1 resources have had mismatched locks (9.1%) 1 resources locked (9.1%) 7 resources contain interesting data (63.6%) 0 resources disappeared (0.0%)
11-09-2014

I get this error consistently with the test case provided in RT-38290 (which I will attach here for convenience). To reproduce, just copy the file somewhere locally, and point a WebLauncher at the file.
11-09-2014

See RT-38001 for another test case.
23-07-2014

The total resource usage in the printouts is a bit low for this to be a dup of RT-34443...
28-01-2014

This might be related to RT-34443
20-12-2013

Uploaded test case from bug reporter.
18-12-2013

If you e-mail to me I will attach it.
18-12-2013

Kevin : I made a testcase but I can't attach it :/
18-12-2013

This is likely related to, or a duplicate of, RT-34443. Assign to Leonid to evaluate.
17-12-2013