MultiResolutionSplashTest.java fails in CI: "Image with wrong resolution is used for splash screen!"

XMLWordPrintable

    • x86_64
    • linux

      The test java/awt/SplashScreen/MultiResolutionSplash/MultiResolutionSplashTest.java fails intermittently in CI with the error message: "Image with wrong resolution is used for splash screen!"

      The test doesn't show the screenshot of the splash screen.

      I suspect it's a bug in the test, in the image generation or in verification. The list of generated images:
      splash1.png
      splash1@1x.png
      splash2
      splash2@1x
      splash3.
      splash3@1x.

      This corresponds to the time when getScreenScaleFactor() returns 1, that is the scale of the main screen is 1. I would still expect the splash screen to load the image without scale postfixes; at the same time, both images match the criteria for loading but have different colors.

      The test log:

      ----------messages:(8/462)----------
      command: main -splash:splash1.png MultiResolutionSplashTest TEST_SPLASH 0
      reason: User specified action: run main/othervm -splash:splash1.png MultiResolutionSplashTest TEST_SPLASH 0
      started: Tue Dec 23 14:35:02.709 UTC 2025
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.desktop --add-exports java.desktop/sun.java2d=ALL-UNNAMED
      Process id: 87711
      finished: Tue Dec 23 14:35:02.852 UTC 2025
      elapsed time (seconds): 0.143
      ----------configuration:(4/103)----------
      Boot Layer
        add modules: java.desktop
        add exports: java.desktop/sun.java2d ALL-UNNAMED

      ----------System.out:(0/0)----------
      ----------System.err:(1/15)----------
      STATUS:Passed.

      ----------messages:(8/454)----------
      command: main -splash:splash2 MultiResolutionSplashTest TEST_SPLASH 1
      reason: User specified action: run main/othervm -splash:splash2 MultiResolutionSplashTest TEST_SPLASH 1
      started: Tue Dec 23 14:35:02.853 UTC 2025
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.desktop --add-exports java.desktop/sun.java2d=ALL-UNNAMED
      Process id: 87754
      finished: Tue Dec 23 14:35:02.989 UTC 2025
      elapsed time (seconds): 0.136
      ----------configuration:(4/103)----------
      Boot Layer
        add modules: java.desktop
        add exports: java.desktop/sun.java2d ALL-UNNAMED

      ----------System.out:(0/0)----------
      ----------System.err:(12/817)----------
      java.lang.RuntimeException: Image with wrong resolution is used for splash screen!
              at MultiResolutionSplashTest.testSplash(MultiResolutionSplashTest.java:115)
              at MultiResolutionSplashTest.main(MultiResolutionSplashTest.java:79)
              at ...

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Image with wrong resolution is used for splash screen!
      JavaTest Message: shutting down test

            Assignee:
            Anass Baya
            Reporter:
            Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: