-
Bug
-
Resolution: Unresolved
-
P4
-
17, 19, 20
-
linux_ubuntu
The test java/awt/GraphicsDevice/DisplayModes/CompareToXrandrTest.java fails on both *double-monitor* *Ubuntu 20.04* and *Ubuntu 22.04* as follows:
#section:main
----------messages:(7/277)----------
command: main CompareToXrandrTest
reason: User specified action: run main CompareToXrandrTest
started: Wed Nov 30 04:02:25 CET 2022
Mode: othervm
Additional options from @modules: --add-modules java.desktop
finished: Wed Nov 30 04:02:28 CET 2022
elapsed time (seconds): 2.901
----------configuration:(3/40)----------
Boot Layer
add modules: java.desktop
----------System.out:(25/255)----------
----------System.err:(11/586)----------
java.lang.RuntimeException: Failed
at CompareToXrandrTest.main(CompareToXrandrTest.java:77)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
at java.base/java.lang.Thread.run(Thread.java:1591)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Failed
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Failed
The test fails on *OpenJDK* *idk-20* (20-ea+25-1926) jdk-19 (19.0.1+10-21), jdk-17 (17+35-2724) on the *double-monitor* configs *Ubuntu 20.04* and *Ubuntu 22.04*
Note: it fails with the following window manager
$ wmctrl -m
Name: GNOME Shell
Class: N/A
PID: N/A
Window manager's "showing the desktop" mode: OFF
it has not been tested on other window managers yet.
After adding lines printing display modes it was detected that xrander has the following list of modes:
4096x2160
1680x1050
1280x800
1920x1080
2560x1600
1600x900
1152x864
1024x768
1280x720
1280x1024
720x480
640x480
3840x2160
1440x900
720x576
2880x1800
800x600
2560x1440
1920x1200
while java modes has only one:
1920x1080
The failure was not observed in other *Ubuntu* configurations like: *Ubuntu-18.04*, *Ubuntu-20.04* (single-monitor configs), *Ubuntu-22.04* (single-monitor configs).
*Regression*: NO.
*Reproducibility*: 100%
*Steps to reproduce*:
`$ jtreg -v -testjdk:$JAVA_HOME test/jdk/java/awt/GraphicsDevice/DisplayModes/CompareToXrandrTest.java`
#section:main
----------messages:(7/277)----------
command: main CompareToXrandrTest
reason: User specified action: run main CompareToXrandrTest
started: Wed Nov 30 04:02:25 CET 2022
Mode: othervm
Additional options from @modules: --add-modules java.desktop
finished: Wed Nov 30 04:02:28 CET 2022
elapsed time (seconds): 2.901
----------configuration:(3/40)----------
Boot Layer
add modules: java.desktop
----------System.out:(25/255)----------
----------System.err:(11/586)----------
java.lang.RuntimeException: Failed
at CompareToXrandrTest.main(CompareToXrandrTest.java:77)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
at java.base/java.lang.Thread.run(Thread.java:1591)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Failed
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Failed
The test fails on *OpenJDK* *idk-20* (20-ea+25-1926) jdk-19 (19.0.1+10-21), jdk-17 (17+35-2724) on the *double-monitor* configs *Ubuntu 20.04* and *Ubuntu 22.04*
Note: it fails with the following window manager
$ wmctrl -m
Name: GNOME Shell
Class: N/A
PID: N/A
Window manager's "showing the desktop" mode: OFF
it has not been tested on other window managers yet.
After adding lines printing display modes it was detected that xrander has the following list of modes:
4096x2160
1680x1050
1280x800
1920x1080
2560x1600
1600x900
1152x864
1024x768
1280x720
1280x1024
720x480
640x480
3840x2160
1440x900
720x576
2880x1800
800x600
2560x1440
1920x1200
while java modes has only one:
1920x1080
The failure was not observed in other *Ubuntu* configurations like: *Ubuntu-18.04*, *Ubuntu-20.04* (single-monitor configs), *Ubuntu-22.04* (single-monitor configs).
*Regression*: NO.
*Reproducibility*: 100%
*Steps to reproduce*:
`$ jtreg -v -testjdk:$JAVA_HOME test/jdk/java/awt/GraphicsDevice/DisplayModes/CompareToXrandrTest.java`