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

Frame.setSize() to specific size goes to full screen in GTK L&F

    XMLWordPrintable

    Details

      Description

      java version "11-ea" 2018-09-25
      Java(TM) SE Runtime Environment 18.9 (build 11-ea+21)
      Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11-ea+21, mixed mode)

      OEL 7.5 or 7.4

      Whenever we execute test case sanity/client/SwingSet/src/GridBagLayoutDemoTest.java in SBR(Same Binary Run) - approx. 1000 iterations, very frequently we are getting below error. It is because of "Frame.setSize() to specific size goes to full screen".
      It happens only in GTK look and feel.

      Attached the screenshots and .jtr files.

      Error:
      test GridBagLayoutDemoTest.test("com.sun.java.swing.plaf.gtk.GTKLookAndFeel"): failure
      org.netbeans.jemmy.TimeoutExpiredException: Wait "Component Size becomes between: java.awt.Dimension[width=512,height=384]and java.awt.Dimension[width=512,height=384], Current size of the component is java.awt.Dimension[width=1024,height=706]" state to be reached (ComponentOperator.WaitStateTimeout)
      at org.netbeans.jemmy.Waiter.waitAction(Waiter.java:208)
      at org.netbeans.jemmy.operators.Operator.waitState(Operator.java:721)
      at org.netbeans.jemmy.operators.Operator.waitState(Operator.java:696)
      at org.netbeans.jemmy.operators.ComponentOperator.waitComponentSize(ComponentOperator.java:1155)
      at org.netbeans.jemmy.operators.ComponentOperator.waitComponentSize(ComponentOperator.java:1145)
      at GridBagLayoutDemoTest.checkChangeSize(GridBagLayoutDemoTest.java:365)
      at GridBagLayoutDemoTest.test(GridBagLayoutDemoTest.java:94)
      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:566)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
      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:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:834)

        Attachments

        1. dumpAll.xml
          163 kB
        2. failure_MetalLookAndFeel.png
          failure_MetalLookAndFeel.png
          174 kB
        3. failure.png
          failure.png
          34 kB
        4. GridBagLayoutDemoTest.jtr
          84 kB
        5. window0.png
          window0.png
          24 kB

          Issue Links

            Activity

              People

              • Assignee:
                pbansal Pankaj Bansal
                Reporter:
                gpatil Gauri Patil
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: