Menu

#284 IndexOutOfBoundsException at edu.umd.cs.piccolo.PNode.validateFullPaint(PNode.java:2626)

next release
open
nobody
piccolo (1)
5
2017-08-27
2017-07-04
No

Recently I got a lot of IndexOutOfBoundExceptions in PNode.validate.
I have seen the error in multiple views, such as the plot view and the tree map view. It often happens when changing some properties in the sidebar or calculating a layout.

The complete stack trace is attached.

1 Attachments

Discussion

  • Sven Schrinner

    Sven Schrinner - 2017-08-27

    I remember having similar exceptions a long while ago. I recognized them mostly in treemap view, but I could not reproduce them consistently. So I think these exceptions were probably not introduced with recent commits.

    If you have a look at the stacktrace, you will see that none of our code is involved. Also, the false index is produced by a PNode, which wants to iterate over its children from index 0 to <children count="" -="" 1="">. This means that for some reason the Piccolo classes must be in an inconsistent state. I doubt that we can fix this from the outside without copying lots of Piccolo classes just to be able to make changes to their code. It might be a better idea to update the Piccolo libraries, as we are still using 1.3.2, while there is a 3.0 version on their homepage (which is already 4 years old though ...).</children>

     
    • Nils Kriege

      Nils Kriege - 2017-08-28

      The Piccolo developers are not very active and most newer releases are just compatibility fixes. However, the library has been stable for a long time and I do not think that this is caused by a Piccolo bug. This might be caused by not updating the scene graph in the event dispatch thread.

       

Log in to post a comment.

MongoDB Logo MongoDB