JDK-8264739 : Canvas doesn't preserve its contents after reconnecting via Remote Desktop
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8,openjfx11,openjfx16
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows
  • Submitted: 2021-04-05
  • Updated: 2021-06-11
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
tbdUnresolved
Related Reports
Relates :  
Description
 This is a follow-on bug to JDK-8239589.

I initially saw while running Zoomy and noticed that the BG color is wrong after device reinitialization. This might point to a need to let the app know they have to repaint, since there is no possible way to preserve the contents of the texture when the device is lost.

I'll attach a simplified test case that reproduces this.
Comments
I attached a test program that shows this bug. To reproduce: 1. Connect to a remote Windows machine using RDP 2. Run the attached CanvasTest program 3. Start the animation 4. Disconnect from RDP 5. Reconnect to RDP BUG: the previous contents of the Canvas are lost
11-06-2021