Go Down

Topic: Why does the compiler spit out things like this? (Read 1 time) previous topic - next topic

jimLee

Every once in awhile while I'm editing the complier spits out nonsense like this..

Binary sketch size: 16014 bytes (of a 32256 byte maximum)
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 41
   at processing.app.syntax.JEditTextArea.xToOffset(JEditTextArea.java:672)
   at processing.app.syntax.JEditTextArea$DragHandler.mouseMoved(JEditTextArea.java:2034)
   at java.awt.AWTEventMulticaster.mouseMoved(AWTEventMulticaster.java:312)
   at java.awt.Component.processMouseMotionEvent(Component.java:6419)
   at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3285)
   at java.awt.Component.processEvent(Component.java:6143)
   at java.awt.Container.processEvent(Container.java:2085)
   at java.awt.Component.dispatchEventImpl(Component.java:4736)
   at java.awt.Container.dispatchEventImpl(Container.java:2143)
   at java.awt.Component.dispatchEvent(Component.java:4566)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4295)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
   at java.awt.Container.dispatchEventImpl(Container.java:2129)
   at java.awt.Window.dispatchEventImpl(Window.java:2478)
   at java.awt.Component.dispatchEvent(Component.java:4566)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:680)
   at java.awt.EventQueue.access$000(EventQueue.java:86)
   at java.awt.EventQueue$1.run(EventQueue.java:639)
   at java.awt.EventQueue$1.run(EventQueue.java:637)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
   at java.awt.EventQueue$2.run(EventQueue.java:653)
   at java.awt.EventQueue$2.run(EventQueue.java:651)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:650)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


Does anyone know what this is all about?

Thanks!

-jim lee

nickn4

the first line tells the size of the compiled sketch. this messages is always printed after a compile run.
the next things it spits out, is something that went wrong i geus,

it says: java.lang.ArrayIndexOutOfBoundsException
it means the compilers code tryed to acces a part of an array wich didnt exist.

im no expert, but since the compiled sketch size is bieng told, i think the compiler solved the error itself and continued compiling.

nick
humankind cannot obtain anything without
sacrificing something of equal value.

MarkT

Its a bug in the editor user interface code I think (AWT = abstract windowing toolkit in Java) - looks like you were dragging some text?

Not seen it myself, it could be a platform-specific problem.

The actual compiler isn't involved.
[ I won't respond to messages, use the forum please ]

PeterH

The Java exception dump indicates errors within the IDE, rather than any problems in your sketch. I see this sort of thing occasionally if I interact with the IDE while it's busy doing something - I suppose there are probably some race conditions in the IDE's event handling.
I only provide help via the forum - please do not contact me for private consultancy.

jimLee

Maybe its my IDE? I'm using 1.0 on a Mac. It also randomly decides to scroll my window around and that's kinda annoying and confusing.

-jim lee

Go Up