FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 755 : browsers (or JVM) tends to crash when two OpenGL sketches are viewed via browser.
Last modified: 2008-10-15 07:16
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:
msinan
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-04-06 21:52
revision number 0135
operating system: mac os X leopard, both on local index.html files or on
the web. both firefox and safari..
Once an exported OpenGL sketch is viewed via browser through generated
index.html (locally or online), the next time a different OpenGL sketch is
viewed via the same browser (without browser being restarted), browsers
tend to crash, or at least the second sketch doesn't work. JVM generates
this and similar errors on event handle call:
java.lang.RuntimeException: javax.media.opengl.GLException: Attempt to make
the same context current twice on thread
Thread[AWT-EventQueue-3,4,
http://www.openprocessing.org/visuals/applets/visual9d64a1128746e2bfe279744b6f405aa1/-threadGroup
]
at processing.opengl.PGraphicsOpenGL.requestDisplay(PGraphicsOpenGL.java:172)
at processing.core.PApplet.run(PApplet.java:1562)
at java.lang.Thread.run(Thread.java:613)
Caused by: javax.media.opengl.GLException: Attempt to make the same context
current twice on thread
Thread[AWT-EventQueue-3,4,
http://www.openprocessing.org/visuals/applets/visual9d64a1128746e2bfe279744b6f405aa1/-threadGroup
]
at com.sun.opengl.impl.GLContextLock.lock(GLContextLock.java:83)
at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:124)
.....
You can also observe the same problem on any openGL sketch uploaded in
openprocessing.org, below are two urls that you can see the issue repeating:
http://www.openprocessing.org/visuals/?visualID=173
http://www.openprocessing.org/visuals/?visualID=172
Additional Comment
#1 From fry 2008-08-16 15:25
can you try this again with release 0146?
Additional Comment
#2 From fry 2008-10-15 07:16
no response for 6 months, closing bug.