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

Division by zero in Threads tab when shrinking jconsole window

    Details

    • Subcomponent:
    • Resolved In Build:
      b106
    • CPU:
      generic, x86
    • OS:
      linux, windows_xp

      Description

      Switch to the Threads tab and try shrinking the window. When the window width becomes smaller than some particular size, the following exception is printed to the terminal on every window update:

      Exception in thread "AWT-EventQueue-0" java.lang.ArithmeticException: / by zero
              at sun.tools.jconsole.Plotter.calculateTickInterval(Plotter.java:546)
              at sun.tools.jconsole.Plotter.paintComponent(Plotter.java:357)
              at javax.swing.JComponent.paint(JComponent.java:975)
              at javax.swing.JComponent.paintChildren(JComponent.java:811)
              at javax.swing.JComponent.paint(JComponent.java:984)
              at javax.swing.JComponent.paintToOffscreen(JComponent.java:5077)
              at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:279)
              at javax.swing.RepaintManager.paint(RepaintManager.java:1079)
              at javax.swing.JComponent._paintImmediately(JComponent.java:5025)
              at javax.swing.JComponent.paintImmediately(JComponent.java:4843)
              at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:688)
              at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:644)
              at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:624)
              at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                egahlin Erik Gahlin
                Reporter:
                kshiroko Kirill Shirokov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: