I am getting this error intermittently, not really coinciding with any action (to my knowledge). Just sort of pops up.
Here is the full version.
- Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Nothing left on the event queue.
- at processing.core.PApplet$InternalEventQueue.remove(PApplet.java:2529)
- at processing.core.PApplet.dequeueEvents(PApplet.java:2599)
- at processing.core.PApplet.postEvent(PApplet.java:2579)
- at processing.core.PApplet.nativeMouseEvent(PApplet.java:2847)
- at processing.core.PApplet.mouseMoved(PApplet.java:2911)
- at java.awt.Component.processMouseMotionEvent(Component.java:6342)
- at java.awt.Component.processEvent(Component.java:6066)
- at java.awt.Container.processEvent(Container.java:2039)
- at java.awt.Component.dispatchEventImpl(Component.java:4660)
- at java.awt.Container.dispatchEventImpl(Container.java:2097)
- at java.awt.Component.dispatchEvent(Component.java:4488)
- at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:668)
- 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(AccessControlContext.java:87)
- at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
- at java.awt.EventQueue$3.run(EventQueue.java:641)
- at java.awt.EventQueue$3.run(EventQueue.java:639)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
- at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)
- at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
- at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
- at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.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)
It seems to be coming from the PApplet.java
Here is the snippet, not really what InternalEventQueue is
- class InternalEventQueue {
- protected Event queue[] = new Event[10];
- protected int offset;
- protected int count;
- synchronized void add(Event e) {
- if (count == queue.length) {
- queue = (Event[]) expand(queue);
- }
- queue[count++] = e;
- }
- synchronized Event remove() {
- if (offset == count) {
- throw new RuntimeException("Nothing left on the event queue.");
- }
- Event outgoing = queue[offset++];
- if (offset == count) {
- // All done, time to reset
- offset = 0;
- count = 0;
- }
- return outgoing;
- }
- synchronized boolean available() {
- return count != 0;
- }
- }
1