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

FullScreen/BufferStrategyExceptionTest intermittently fails by java.lang.IllegalStateException: Buffers have not been created on windows

XMLWordPrintable

      The test java/awt/FullScreen/BufferStrategyExceptionTest/BufferStrategyExceptionTest.java intermittently fails with the following output:

      #section:main
      ----------messages:(5/251)----------
      command: main BufferStrategyExceptionTest
      reason: User specified action: run main/othervm BufferStrategyExceptionTest
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.desktop
      elapsed time (seconds): 20.207
      ----------configuration:(3/43)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(0/0)----------
      ----------System.err:(22/1672)----------
      java.lang.IllegalStateException: Buffers have not been created
      at java.desktop/sun.awt.windows.WComponentPeer.getBackBuffer(WComponentPeer.java:1011)
      at java.desktop/java.awt.Component$FlipBufferStrategy.getBackBuffer(Component.java:4141)
      at java.desktop/java.awt.Component$FlipBufferStrategy.updateInternalBuffers(Component.java:4126)
      at java.desktop/java.awt.Component$FlipBufferStrategy.createBuffers(Component.java:4117)
      at java.desktop/java.awt.Component$FlipBufferStrategy.<init>(Component.java:4058)
      at java.desktop/java.awt.Component$FlipSubRegionBufferStrategy.<init>(Component.java:4590)
      at java.desktop/java.awt.Component.createBufferStrategy(Component.java:3921)
      at java.desktop/java.awt.Window.createBufferStrategy(Window.java:3385)
      at BufferStrategyExceptionTest$TestFrame.render(BufferStrategyExceptionTest.java:112)
      at BufferStrategyExceptionTest.main(BufferStrategyExceptionTest.java:78)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)

      JavaTest Message: Test threw exception: java.lang.IllegalStateException: Buffers have not been created
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.IllegalStateException: Buffers have not been created

      Reproducibility: ~50%
      How to reproduce:

      > runme.bat <testjdk> test/jdk/java/awt/FullScreen/BufferStrategyExceptionTest/BufferStrategyExceptionTest.java

      runme.bat - the script (attached) runs specified test in a loop till the test fails

            serb Sergey Bylokhov
            vprovodin Vitaly Provodin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: