#924 railroad vs magnum

open
nobody
4
2012-03-18
2012-03-18
Anonymous
No

s java.lang.ArrayIndexOutOfBoundsException: 3 >= 3
at java.util.Vector.elementAt(Unknown Source)
at javax.swing.JTabbedPane.getTabComponentAt(Unknown Source)
at javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabWidth(Unknown Source)
at org.jvnet.substance.SubstanceTabbedPaneUI.calculateTabWidth(SubstanceTabbedPaneUI.java:1320)
at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateTabRects(Unknown Source)
at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateLayoutInfo(Unknown Source)
at org.jvnet.substance.SubstanceTabbedPaneUI.ensureCurrentLayout(SubstanceTabbedPaneUI.java:1639)
at org.jvnet.substance.SubstanceTabbedPaneUI$TabRepaintCallback$1.run(SubstanceTabbedPaneUI.java:1602)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Discussion

  • Chris Duncan

    Chris Duncan - 2012-03-18

    This error only happens when someone connects from a network/online game.
    I do not really know what is wrong, and it does not impact the engine or the games in any way.
    Ideally, we would just catch this and ignore it.
    But I don't really know where or why it happens, so I do not know where to catch it.

     
  • Chris Duncan

    Chris Duncan - 2012-03-18
    • priority: 5 --> 4
     
  • frigoref

    frigoref - 2012-03-19

    From the JTabbedPane thing I guess the problem is in TripleAFrame. Google gave me the following we should look into: http://stackoverflow.com/questions/2751502/exception-thrown-while-working-with-jtabbedpane
    From the answers there I would guess what concerns us is:
    "The most likely answer is you are altering something in Swing from a non-EDT thread. Anything that touches a Swing component, or a model used by a Swing component must execute on the EDT. This includes construction of Swing objects and models."
    Maybe we should check for the correct thread in the stateChanged() method (line 297) or just user SwingUtilities to do the job. The method gets called via listener - do you know anything about listeners in connection with threads?

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks