Mantis Bug Tracker

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000706OLVUser Interfacepublic2012-09-19 12:442012-09-19 15:30
ReporterBenFenner 
Assigned ToBenFenner 
PrioritynormalSeveritymajorReproducibilitysometimes
StatusclosedResolutionfixed 
PlatformAllOSAllOS VersionAll
Product Version0.0.3-SNAPSHOT 
Target Version0.0.3Fixed in Version0.0.3 
Summary0000706: Array index out of bounds error when resizing window.
DescriptionException in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException:
 1068
        at org.diyefi.openlogviewer.graphing.SingleGraphPanel.getMouseInfoZoomed
Out(SingleGraphPanel.java:369)
        at org.diyefi.openlogviewer.graphing.SingleGraphPanel.getMouseInfo(Singl
eGraphPanel.java:327)
        at org.diyefi.openlogviewer.graphing.InfoPanel.paintComponent(InfoPanel.
java:105)
        at javax.swing.JComponent.paint(JComponent.java:1037)
        at javax.swing.JComponent.paintChildren(JComponent.java:870)
        at javax.swing.JComponent.paint(JComponent.java:1046)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:567)
        at javax.swing.JComponent.paintChildren(JComponent.java:870)
        at javax.swing.JComponent.paint(JComponent.java:1046)
        at javax.swing.JComponent.paintChildren(JComponent.java:870)
        at javax.swing.JComponent.paint(JComponent.java:1046)
        at javax.swing.JComponent.paintChildren(JComponent.java:870)
        at javax.swing.JComponent.paint(JComponent.java:1046)
        at javax.swing.JComponent.paintChildren(JComponent.java:870)
        at javax.swing.JComponent.paint(JComponent.java:1046)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:567)
        at javax.swing.JComponent.paintChildren(JComponent.java:870)
        at javax.swing.JComponent.paintToOffscreen(JComponent.java:5139)
        at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManag
er.java:278)
        at javax.swing.RepaintManager.paint(RepaintManager.java:1225)
        at javax.swing.JComponent.paint(JComponent.java:1023)
        at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)

        at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:
60)
        at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97
)
        at java.awt.Container.paint(Container.java:1778)
        at java.awt.Window.paint(Window.java:3390)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:797)

        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)

        at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:6
94)
        at javax.swing.RepaintManager.access$700(RepaintManager.java:41)
        at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java
:1636)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:666)
        at java.awt.EventQueue.access$400(EventQueue.java:81)
        at java.awt.EventQueue$2.run(EventQueue.java:627)
        at java.awt.EventQueue$2.run(EventQueue.java:625)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessCo
ntrolContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:636)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException:
 1068
        at org.diyefi.openlogviewer.graphing.SingleGraphPanel.getMouseInfoZoomed
Out(SingleGraphPanel.java:369)
        at org.diyefi.openlogviewer.graphing.SingleGraphPanel.getMouseInfo(Singl
eGraphPanel.java:327)
        at org.diyefi.openlogviewer.graphing.InfoPanel.paintComponent(InfoPanel.
java:105)
        at javax.swing.JComponent.paint(JComponent.java:1037)
        at javax.swing.JComponent.paintChildren(JComponent.java:870)
        at javax.swing.JComponent.paint(JComponent.java:1046)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:567)
        at javax.swing.JComponent.paintChildren(JComponent.java:870)
        at javax.swing.JComponent.paint(JComponent.java:1046)
        at javax.swing.JComponent.paintChildren(JComponent.java:870)
        at javax.swing.JComponent.paint(JComponent.java:1046)
        at javax.swing.JComponent.paintChildren(JComponent.java:870)
        at javax.swing.JComponent.paint(JComponent.java:1046)
        at javax.swing.JComponent.paintChildren(JComponent.java:870)
        at javax.swing.JComponent.paint(JComponent.java:1046)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:567)
        at javax.swing.JComponent.paintChildren(JComponent.java:870)
        at javax.swing.JComponent.paintToOffscreen(JComponent.java:5139)
        at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManag
er.java:278)
        at javax.swing.RepaintManager.paint(RepaintManager.java:1225)
        at javax.swing.JComponent.paint(JComponent.java:1023)
        at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)

        at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:
60)
        at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97
)
        at java.awt.Container.paint(Container.java:1778)
        at java.awt.Window.paint(Window.java:3390)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:797)

        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)

        at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:6
94)
        at javax.swing.RepaintManager.access$700(RepaintManager.java:41)
        at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java
:1636)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:666)
        at java.awt.EventQueue.access$400(EventQueue.java:81)
        at java.awt.EventQueue$2.run(EventQueue.java:627)
        at java.awt.EventQueue$2.run(EventQueue.java:625)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessCo
ntrolContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:636)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Steps To ReproduceI had loaded a log, and then made the window shorter by about half. I then tried to make the window narrower by about half or more which then caused the error above.

I was also possibly playing the log at the time.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (0002150)
BenFenner (developer)
2012-09-19 12:54
edited on: 2012-09-19 12:59

This is on Fred's dev branch: 78bdc00a4ec6b5c4c3bc9ec2cd9680a9f777c7ab

I'm having a hard time reproducing this one. It seems to be a very rare case.

I also think this is not likely related to the newest code. This is likely an older bug.

User avatar (0002152)
Fred (administrator)
2012-09-19 14:06

Fixed in a1a2b13aefa03ce9b388005534ecacf26e54cb0a please ensure that I broke nothing.
User avatar (0002156)
BenFenner (developer)
2012-09-19 15:30

I was able to reproduce the issue pretty reliably on two separate occasions before the fix. After this fix it no longer produces the array out of index error.

With a code review, I don't see there being any other issues arising from this fix.

Closing issue.


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker