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

IllegalArgumentException: Window must not be zero

XMLWordPrintable

    • 2d
    • x86_64
    • linux

      ADDITIONAL SYSTEM INFORMATION :
      This problem occurs on
      - Dell laptop/Debian 9/KDE/X11 and two additional displays,
      - Workstation/Ubuntu 16.04.4 LTS/Cinnamon 2.8.6/X11 with three displays,
      - Workstation/Fedora 28//X11 with three displays
      - Workstation/Ubuntu 18.04 (64bit x86)/Gnome 3.28/Wayland
      with Java 10.0.1.

      A DESCRIPTION OF THE PROBLEM :
      Swing GUI applications on Java 10 crash on Linux systems with *three* displays.

      REGRESSION : Last worked in version 8u171

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run yEd (<https://www.yworks.com/downloads#yEd&gt;) with Java 10.0.1 on a Linux machine with three displays.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The application runs without problems.
      ACTUAL -
      An IllegalArgumentException occurs in the Swing EDT and the application has to be killed and restarted.

      java.lang.IllegalArgumentException: Window must not be zero
      at java.desktop/sun.awt.X11.XAtom.checkWindow(Unknown Source)
      at java.desktop/sun.awt.X11.XAtom.getAtomData(Unknown Source)
      at java.desktop/sun.awt.X11.XToolkit.getWorkArea(Unknown Source)
      at java.desktop/sun.awt.X11.XToolkit.getInsets(Unknown Source)
      at java.desktop/sun.awt.X11.XToolkit.getScreenInsets(Unknown Source)
      at java.desktop/sun.java2d.SunGraphicsEnvironment.getUsableBounds(Unknown Source)
      at java.desktop/sun.awt.X11GraphicsEnvironment.getXineramaWindowBounds(Unknown Source)
      at java.desktop/sun.awt.X11GraphicsEnvironment.getMaximumWindowBounds(Unknown Source)
      at com.jidesoft.utils.PortingUtils.getLocalScreenBounds(Unknown Source)
      at com.jidesoft.utils.PortingUtils.ensureVisible(Unknown Source)
      at com.jidesoft.action.DefaultDockableBarManager.m(Unknown Source)
      at com.jidesoft.action.DefaultDockableBarManager.f(Unknown Source)
      at com.jidesoft.action.DefaultDockableBarManager.access$600(Unknown Source)
      at com.jidesoft.action.DefaultDockableBarManager$17.run(Unknown Source)
      at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.EventQueue.access$600(Unknown Source)
      at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
      at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

      CUSTOMER SUBMITTED WORKAROUND :
      Run the application on Java 8.

      FREQUENCY : always


            prr Philip Race
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: