Quitting P3D sketch throws an error #3293

Closed
cdaein opened this Issue May 18, 2015 · 4 comments

Comments

Projects
None yet
3 participants
@cdaein

cdaein commented May 18, 2015

Processing 3.0a8, MacOSX Yosemite

Qutting P3D sketch with CMD+Q throws an error.

Sample code:

void setup() {
  size(400, 400, P3D);
}

void draw() {
  background(random(255));
}

Error message:

java.lang.ClassCastException: java.lang.ThreadDeath cannot be cast to java.lang.RuntimeException
    at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:272)
    at java.lang.Thread.run(Thread.java:745)

If I quit with the stop button on the PDE, there's no issue.

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode May 18, 2015

Member

Actually, FPAnimator's setUncaughtExceptionHandler() is able to catch the ThreadDeath error, but not always... seems an upstream bug in JOGL.

Member

codeanticode commented May 18, 2015

Actually, FPAnimator's setUncaughtExceptionHandler() is able to catch the ThreadDeath error, but not always... seems an upstream bug in JOGL.

@benfry benfry added critical and removed high labels May 18, 2015

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode May 19, 2015

Member

Now filed in #3301

Member

codeanticode commented May 19, 2015

Now filed in #3301

@benfry benfry reopened this May 19, 2015

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry May 19, 2015

Member

Let's leave this open since it's still broken, but hopefully #3301 will fix it.

Member

benfry commented May 19, 2015

Let's leave this open since it's still broken, but hopefully #3301 will fix it.

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode May 19, 2015

Member

it does fix it, thanks.

Member

codeanticode commented May 19, 2015

it does fix it, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment