FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 989 : From a-z when closing Processing
Last modified: 2008-11-04 02:24
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
Anonymous
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-10-30 11:51
When I'm closing Processing, I'll always have to close multiple copies of a sketch named from
a to z behind it's filename. When I update to a newer Processing release it doesn't fix the
problem. Hope you guys can fix it or give me a solution. Thanks for your great software!
1. Processing 0148 Beta
2. Mac OS X 10.5.5, 2 GHz Intel Core 2 Duo, 2 GB 667 MHz DDR2 SDRAM
3. Happens with all sketches!
4. Red spew:
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0
at processing.app.Sketch.setCurrentCode(Sketch.java:1049)
at processing.app.Sketch.load(Sketch.java:200)
at processing.app.Sketch.<init>(Sketch.java:123)
at processing.app.Editor.handleOpenInternal(Editor.java:1873)
at processing.app.Base.handleClose(Base.java:612)
at processing.app.Editor$1.windowClosing(Editor.java:142)
at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:291)
at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:291)
at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:291)
at java.awt.Window.processWindowEvent(Window.java:1213)
at javax.swing.JFrame.processWindowEvent(JFrame.java:267)
at java.awt.Window.processEvent(Window.java:1171)
at java.awt.Component.dispatchEventImpl(Component.java:4068)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Window.dispatchEventImpl(Window.java:1801)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
java.lang.ClassNotFoundException: sketch_081030z
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at processing.core.PApplet.main(PApplet.java:6343)
java.lang.ClassNotFoundException: sketch_081030z
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at processing.core.PApplet.main(PApplet.java:6343)
java.lang.ClassNotFoundException: sketch_081030z
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at processing.core.PApplet.main(PApplet.java:6343)
Additional Comment
#1 From fjen 2008-10-31 00:35
this is not a bug but a feature (as in closing the last sketch window will not close processing automatically). press command-Q or use the menu command "Quit".
the reason for a new window showing up ist that java needs to have at least one window open.
Additional Comment
#2 From fry 2008-11-03 05:52
See the explanation under "Close" in the reference:
http://processing.org/reference/environment/index.html#PDE
Additional Comment
#3 From Anonymous 2008-11-04 02:24
Ah I see, thanks a lot for helping me out.
(In reply to
comment #2
)
>
>
>
> Additional
Comment #2
From
> fry
> 2008-11-03 05:52
>
> <!--
> addReplyLink(2); //-->[reply]
>
>
>
>
> See the explanation under "Close" in the reference:
>
http://processing.org/reference/environment/index.html#PDE
>
>