JDK-8213119 : [macos] java/awt/GraphicsDevice/CheckDisplayModes.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7u6,8,11,12,13,14
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2018-10-30
  • Updated: 2020-06-01
  • Resolved: 2019-10-24
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 11 JDK 13 JDK 14 JDK 7 JDK 8 Other
11.0.6-oracleFixed 13.0.2Fixed 14 b25Fixed 7u251Fixed 8u241Fixed openjdk8u242Fixed
Description
java/awt/GraphicsDevice/CheckDisplayModes.java fails
throws
IllegalArgumentException: Invalid display mode
Comments
Fix Request (8u) Downport for parity with Oracle 8u241. Applies pretty cleanly though hg import complained. Discussion thread: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-December/010732.html Review approval: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-December/010745.html
10-12-2019

URL: https://hg.openjdk.java.net/jdk/jdk/rev/85d7af399ef5 User: psadhukhan Date: 2019-11-21 09:06:33 +0000
21-11-2019

Fix request (11u) Downport for parity with 11.0.6-Oracle. Applies fine except for removing a test from the ProblemList that was never problemlisted in 11u. http://cr.openjdk.java.net/~goetz/wr19/8213119-mac_display-jdk11/01/ http://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-November/002107.html
15-11-2019

jdk13u fix request: The bug caused tck test failure, the fix is a simple cast to eliminate mismatch between "int" and "double" types.
24-10-2019

Pending back ports and critical-request right after
24-10-2019

URL: https://hg.openjdk.java.net/jdk/client/rev/85d7af399ef5 User: serb Date: 2019-10-24 09:19:25 +0000
24-10-2019

[~serb] Would appreciate if you could provide the full name of the failing TCK test? Thanks!
18-10-2019

Note that the bug could not be reproduced by the CheckDisplayModes test if the external monitor is attached(even if the monitor is the same as for macmini) to the laptop because it checks only the first screen.
16-10-2019

tck test fails by the same exception: api.java.awt.GraphicsDevice.SetDisplayMode Note that in case of the single screen(laptop) one of the test is skipped as not applicable, but in case of multi-monitor config it runs and fails by the "IllegalArgumentException: Invalid display mode"
15-10-2019

I can easily reproduce this exception on macOS 10.15 and external monitor.
15-10-2019

I am using macmini with external monitor and I consistently get this exception java.lang.IllegalArgumentException: Invalid display mode at java.desktop/sun.awt.CGraphicsDevice.nativeSetDisplayMode(Native Method) at java.desktop/sun.awt.CGraphicsDevice.setDisplayMode(CGraphicsDevice.java:233) at CheckDisplayModes.main(CheckDisplayModes.java:53) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127) at java.base/java.lang.Thread.run(Thread.java:835)
20-11-2018

Tried with Mac 10.13.3 as well and am not able to reproduce this issue.
20-11-2018

Mine was 10.13.3.
05-11-2018

I'm not able to see this issue on Mac 10.13.6. What is the exact OS version you are using Prasanta?
05-11-2018