JDK-8123802 : 3D: Window can't restore after screen lock
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-08-08
  • Updated: 2015-06-17
  • Resolved: 2013-11-18
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 8
8Fixed
Related Reports
Blocks :  
Description
     [java] (I) D3DContext::ResetContext: cound not reset the device: hr=8876086C
     [java] (I) D3DContext::ResetContext: cound not reset the device: hr=8876086C
     [java] (I) D3DContext::ResetContext: cound not reset the device: hr=8876086C
     [java] (I) D3DContext::ResetContext: cound not reset the device: hr=8876086C
Comments
3D cubes from Ensemble8 is restorable from scren lock. Verified on 8.0b120
30-12-2013

Changeset: e7bb12b9597a Author: vadim Date: 2013-11-18 15:05 +0400 URL: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/e7bb12b9597a
18-11-2013

Looks fine to me.
15-11-2013

Yes, I thought of that, but didn't want to for some reason. I will add it before the push.
15-11-2013

+1. The proposed fix looks good. For symmetry in pattern, do you want to add SAFE_PRINTLN(pDepthSurface) to D3DResurce:Release() too?
14-11-2013

There are more resource leaks, at least D3DMesh buffers are not released, I will file new JIRA for that.
14-11-2013

Chien, Kevin, could you please review? http://cr.openjdk.java.net/~vadim/RT-32226/webrev.00/
14-11-2013

Device is not reset because of several not released default pool resources. After the fix for RT-26382 the pool for vertex and index buffers for D3DMesh was changed from to default, while before that it was chosen based on the device: default in case of d3d9ex, managed otherwise. Also there is a resource leak for depth/stencil surface.
13-11-2013

Reassign to Vadim since he is working on bugs with similar issue though not 3D specific.
01-11-2013

Note that due to RT-32636 all apps are currently broken when coming out of screen lock or screen saver. RT-32636 is now fixed and should be in b109.
24-09-2013

It impacts screen saver too.
24-09-2013