Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8346024

java/awt/FullScreen/AltTabCrashTest/AltTabCrashTest.java breaks X11 server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 11, 21
    • client-libs
    • None

      If the java/awt/FullScreen/AltTabCrashTest/AltTabCrashTest.java test fails, it leaves the host in a bad state, which leads to all tests that run after AltTabCrashTest.java to throw AWTError.

      There are several jobs like this.

      1. AltTabCrashTest.java fails
      command: main AltTabCrashTest -auto -changedm
      reason: User specified action: run main/othervm/timeout=100 AltTabCrashTest -auto -changedm
      STDOUT:
      STDERR:
      Running in automatic mode using Robot
      The test will change display mode
      Alt+tabber Iteration: 4
      Issuing alt+tab
      TEST RESULT: Failed. Unexpected exit from test [exit code: 1]

      2. The next test after it, java/awt/FullScreen/BufferStrategyExceptionTest/BufferStrategyExceptionTest.java, also fails. Now it throws AWTError:

      java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
              at java.desktop/sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
              at java.desktop/sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:105)
              at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
              at java.desktop/sun.awt.X11GraphicsEnvironment.initStatic(X11GraphicsEnvironment.java:64)
              at java.desktop/sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:59)
              at java.desktop/sun.awt.PlatformGraphicsInfo.createGE(PlatformGraphicsInfo.java:37)
              at java.desktop/java.awt.GraphicsEnvironment$LocalGE.createGE(GraphicsEnvironment.java:93)
              at java.desktop/java.awt.GraphicsEnvironment$LocalGE.<clinit>(GraphicsEnvironment.java:84)
              at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:106)
              at BufferStrategyExceptionTest.main(BufferStrategyExceptionTest.java:60)

      3. All the following tests fail for the same reason, specifically
      java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.

            Unassigned Unassigned
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: