[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Integrated: 8313648: JavaFX application continues to show a black screen after graphic card driver c
From:       Thorsten Fischer <duke () openjdk ! org>
Date:       2023-11-29 12:04:23
Message-ID: GTxCSxa1OPhlixSq571kib4eJ4HS3z94g6Uhr5d4LZU=.677e5534-7a7f-4e3e-bd7c-88ae00b5f377 () github ! com
[Download RAW message or body]

On Sat, 5 Aug 2023 12:28:16 GMT, Thorsten Fischer <duke@openjdk.org> wrote:

> Hi,
> 
> I did open the bug report. Some notes to this PR:
> 
> My colleagues and I are able to reproduce this bug regularly, even though it takes \
> sometimes up to 3 or 4 weeks until the D3DERR_DEVICEHUNG error shows up. We are \
> currently evaluating two versions of fixes, but until now we do not have any \
> results. I will post them as soon as I got them. 
> Version 1 (this version): Based on the observation, that the \
> TestCooperativeLevel/CheckDeviceState method returns D3D_OK again after about 20 - \
> 60 seconds, the reinitialize is called after the first time the state is returning \
> D3D_OK. The 'isHung' flag stores the information until then. 
> Version 2: calls reinitialize directly after D3DERR_DEVICEHUNG has been returned. \
> Basically if (hr == D3DERR_DEVICEREMOVED || hr == D3DERR_DEVICEHUNG  ) { .. }
> 
> I did not modify the validatePresent method, as for our workaround (see ticket) it \
> was not necessary. At least the native call swapchain->present dows not return that \
> error code (https://learn.microsoft.com/en-us/windows/win32/api/d3d9/nf-d3d9-idirect3dswapchain9-present). \
> I did not look decisively into all the native calls behind D3DRTTexture#readPixels. \
>  As I said I will post the results (prism.verbose output) for the 2 versions later \
> as a base for discussions.

This pull request has now been integrated.

Changeset: b80ec391
Author:    Thorsten Fischer <39555455+tsx84@users.noreply.github.com>
Committer: Kevin Rushforth <kcr@openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/b80ec391cbba72d84b4b862b3f1b8db2ff8eb6e2
                
Stats:     24 lines in 2 files changed: 14 ins; 4 del; 6 mod

8313648: JavaFX application continues to show a black screen after graphic card \
driver crash

Reviewed-by: mstrauss, kcr

-------------

PR: https://git.openjdk.org/jfx/pull/1199


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic