JDK-8266643 : Intermittent failure of HonorDeveloperSettingsTest unit test
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: openjfx17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2021-05-06
  • Updated: 2021-06-01
  • Resolved: 2021-05-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
openjfx17Fixed
Related Reports
Cloners :  
Relates :  
Description
Below test fails intermittently on Linux  in the GitHub Actions test run.

2021-05-06T10:27:19.6546656Z test.javafx.css.HonorDeveloperSettingsTest > testOpacityWithManuallyChangedValueAndInlineStyleIsSetToInlineStyle FAILED
2021-05-06T10:27:19.6549284Z     java.lang.NullPointerException
2021-05-06T10:27:19.6550829Z         at javafx.graphics/javafx.scene.Node.notifyParentsOfInvalidatedCSS(Node.java:9295)
2021-05-06T10:27:19.6552527Z         at javafx.graphics/javafx.scene.Node.reapplyCSS(Node.java:9342)
2021-05-06T10:27:19.6553757Z         at javafx.graphics/javafx.scene.Node$1.reapplyCSS(Node.java:588)
2021-05-06T10:27:19.6555253Z         at javafx.graphics/com.sun.javafx.scene.NodeHelper.reapplyCSS(NodeHelper.java:283)
2021-05-06T10:27:19.6557553Z         at javafx.graphics/com.sun.javafx.css.StyleManager.userAgentStylesheetsChanged(StyleManager.java:1514)
2021-05-06T10:27:19.6560309Z         at javafx.graphics/com.sun.javafx.css.StyleManager.setDefaultUserAgentStylesheet(StyleManager.java:1365)
2021-05-06T10:27:19.6563106Z         at javafx.graphics/com.sun.javafx.css.StyleManager.setDefaultUserAgentStylesheet(StyleManager.java:1347)
2021-05-06T10:27:19.6571692Z         at test.javafx.css.HonorDeveloperSettingsTest.setUp(HonorDeveloperSettingsTest.java:89)
Comments
Changeset: d2d145d3 Author: Ambarish Rapte <arapte@openjdk.org> Date: 2021-05-17 19:37:19 +0000 URL: https://git.openjdk.java.net/jfx/commit/d2d145d37d4e902054164c26236cdcbb653ae7b1
17-05-2021

I assume this is not related to https://bugs.openjdk.java.net/browse/JDK-8266811 ?
12-05-2021

Increasing the priority to P3, since this is happening with a fair bit of frequency.
11-05-2021

The test was recently modified by: JDK-8239880: CSS tests should cleanup any global state they modify The NPE is triggered by the call to StyleManager.setDefaultUserAgentStylesheet from the test setup method, which is annotated with `@Before` so it might be a latent issue exposed by that fix.
10-05-2021

Here is another recent failure, also on Linux: https://github.com/aghaisas/jfx/runs/2545359113?check_suite_focus=true
10-05-2021

I just ran into this failure on Linux in a GItHub actions build: https://github.com/kevinrushforth/jfx/runs/2529491024?check_suite_focus=true We should check to see whether any reset fixes have introduced or exposed this problem. It isn't clear whether this is a product bug or a test bug.
07-05-2021