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

JMenuSelectedColorTest fails in Ubuntu 20.04 dual-monitor

    XMLWordPrintable

Details

    • x86_64
    • linux_ubuntu

    Description

      ADDITIONAL SYSTEM INFORMATION :
      $ uname -a
      Linux unit-417 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

      $ jdk-11.0.9/bin/java -version
      java version "11.0.9" 2020-10-20 LTS
      Java(TM) SE Runtime Environment 18.9 (build 11.0.9+7-LTS)
      Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.9+7-LTS, mixed mode)

      $ jdk-15.0.1/bin/java -version
      java version "15.0.1" 2020-10-20
      Java(TM) SE Runtime Environment (build 15.0.1+9-18)
      Java HotSpot(TM) 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)


      A DESCRIPTION OF THE PROBLEM :
      The test javax/swing/JMenu/JMenuSelectedColorTest.java throws java.lang.RuntimeException: The expected highlight color for Menu was not found
      The issue was observed on Ubuntu 20.04 in dual-monitor configuration. The test passes successfully in case of one-monitor

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      $ jtreg//bin/jtreg -testjdk:/home/builduser/jdk-15.0.1 test/jdk/javax/swing/JMenu/JMenuSelectedColorTest.java
      $ jtreg//bin/jtreg -testjdk:/home/builduser/jdk-11.0.9 test/jdk/javax/swing/JMenu/JMenuSelectedColorTest.java


      ACTUAL -
      #section:main
      ----------messages:(5/275)----------
      command: main -Djdk.gtk.version=3 JMenuSelectedColorTest
      reason: User specified action: run main/othervm -Djdk.gtk.version=3 JMenuSelectedColorTest
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.desktop
      elapsed time (seconds): 3.857
      ----------configuration:(3/40)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(0/0)----------
      ----------System.err:(13/914)----------
      java.lang.RuntimeException: The expected highlight color for Menu was not found
      at JMenuSelectedColorTest.main(JMenuSelectedColorTest.java:162)
      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.RuntimeException: The expected highlight color for Menu was not found
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: The expected highlight color for Menu was not found


      ---------- BEGIN SOURCE ----------
      http://hg.openjdk.java.net/jdk/jdk15/file/0dabbdfd97e6/test/jdk/javax/swing/JMenu/JMenuSelectedColorTest.java
      ---------- END SOURCE ----------

      FREQUENCY : always


      Attachments

        Activity

          People

            azvegint Alexander Zvegintsev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: