JDK-8238720 : Headful awt Test failures on HiDPI systems
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 11,13,14,15,16,17
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2020-02-08
  • Updated: 2023-10-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.
Other
tbdUnresolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
These tests fail repeatedly on Windows hi-dpi
javax/swing/plaf/synth/7158712/bug7158712.java
javax/swing/plaf/basic/BasicComboPopup/JComboBoxPopupLocation/JComboBoxPopupLocation.java
javax/swing/plaf/basic/BasicComboPopup/7072653/bug7072653.java  
javax/swing/JTable/6263446/bug6263446.java      
java/awt/TrayIcon/RightClickWhenBalloonDisplayed/RightClickWhenBalloonDisplayed.java    
java/awt/PopupMenu/PopupMenuLocation.java       
java/awt/Mixing/AWT_Mixing/MixingFrameResizing.java     
java/awt/Mixing/AWT_Mixing/HierarchyBoundsListenerMixingTest.java       
java/awt/GridLayout/ComponentPreferredSize/ComponentPreferredSize.java  
java/awt/GridLayout/ChangeGridSize/ChangeGridSize.java  
java/awt/event/MouseEvent/FrameMouseEventAbsoluteCoordsTest/FrameMouseEventAbsoluteCoordsTest.java

We should look to see if they should be run with ui scale of 1,
or if they are telling us of one or more product bugs.
Comments
AWT components do not handle High DPI well, there are discrepancies in size here and there, it's likely the reason why these tests fail in High DPI environment. So, I'm sure AWT tests fail because of the product bugs. Swing handles High DPI, as such failure of Swing-related tests could be due to a minor difference in rendering.
18-10-2023

java/awt/PopupMenu/PopupMenuLocation.java fails because of JDK-8259913 (= JDK-8310641). On a 4K display with 200% scale, the robot fails to click a menu item in the popup menu because the mouse is moved too far. Robot coordinates are scaled, but the height of the menu items isn't scaled up, their height is the same as in the 100% scale case.
18-10-2023

Swing issues are fixed. Raised JDK-8257956 for awt issues.
09-12-2020

Remaining swing test issues 8253980: javax/swing/plaf/synth/7158712/bug7158712.java fails on windows 8254112: javax/swing/plaf/basic/BasicComboPopup/JComboBoxPopupLocation/JComboBoxPopupLocation.java fails on windows are also solved and removed from PL. Rest are awt issues java/awt/TrayIcon/RightClickWhenBalloonDisplayed/RightClickWhenBalloonDisplayed.java java/awt/PopupMenu/PopupMenuLocation.java java/awt/Mixing/AWT_Mixing/MixingFrameResizing.java java/awt/Mixing/AWT_Mixing/HierarchyBoundsListenerMixingTest.java java/awt/GridLayout/ComponentPreferredSize/ComponentPreferredSize.java java/awt/GridLayout/ChangeGridSize/ChangeGridSize.java java/awt/event/MouseEvent/FrameMouseEventAbsoluteCoordsTest/FrameMouseEventAbsoluteCoordsTest.java
02-11-2020

[~prr] can you please give the mach5 job for javax/swing/plaf/basic/BasicComboPopup/JComboBoxPopupLocation/JComboBoxPopupLocation.java failure ? I ran several iterations on mach5 on all 3 platforms without failure. https://mach5.us.oracle.com/mdash/jobs/prsadhuk-jdk-20201005-1717-14701063?search= If it is not failing now for you too, can you review https://github.com/openjdk/jdk/pull/535?
09-10-2020

Out of 4 swing test failures (rest are awt) javax/swing/plaf/synth/7158712/bug7158712.java javax/swing/plaf/basic/BasicComboPopup/JComboBoxPopupLocation/JComboBoxPopupLocation.java javax/swing/plaf/basic/BasicComboPopup/7072653/bug7072653.java javax/swing/JTable/6263446/bug6263446.java 2 of them javax/swing/plaf/basic/BasicComboPopup/7072653/bug7072653.java javax/swing/JTable/6263446/bug6263446.java have been fixed and removed from ProblemList and there's no new instances of those failing.
05-10-2020

The same tests fail on macOS when HiDPI is enabled.
19-04-2020

remember to remove java/awt/Mixing/AWT_Mixing/MixingFrameResizing.java java/awt/Mixing/AWT_Mixing/HierarchyBoundsListenerMixingTest.java from the problem list in the fix for 8221823
08-02-2020

Sounds fine. I made it one in case you just needed to add a uiScale=1 to all of them
08-02-2020

This is umbrella bug, I'll file a separate bugs per product issue.
08-02-2020

These: java/awt/Mixing/AWT_Mixing/MixingFrameResizing.java java/awt/Mixing/AWT_Mixing/HierarchyBoundsListenerMixingTest.java will be fixed as part of, will send it today https://bugs.openjdk.java.net/browse/JDK-8221823
08-02-2020