processing-r/Processing.R

When there are exceptions, fail to close the applets

gaocegege opened this issue · 7 comments

Python mode has the same bug

ref https://vimeo.com/224415544

image

@jdf

jdf commented

Does not reproduce for me. When I run that sketch, the single letter r, I get that same error, but no sketch window appears (as expected).

This doesn't reproduce for me with the test r sketch using the latest master of Processing.R and running on PDE 3.3.5 / macOS 10.12.5.

Instead I get the following console error:

object 'r' not found
at rprocessing.exception.RSketchError.toSketchException(Unknown Source)
at rprocessing.RLangPApplet.setup(Unknown Source)
at processing.core.PApplet.handleDraw(PApplet.java:2412)
at rprocessing.RLangPApplet.handleDraw(Unknown Source)
at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1547)
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:316)

The first time I run the code, everything works well, but it fails at the second time.

Strange. No matter how many times I press "run" it always generates the same error message -- no floating window left behind, even if I click "run" as fast as I can.

Might be a Linux-specific issue (I'm testing on Mac) -- or a race condition?

Some possibly related types of issues in Processing:

Yeah, I think it is a linux-specific issue.

@gaocegege -- does this issue still exist on Linux in the current release?

If not let's close (can't-reproduce), and re-open if we get a confirming report. If it does, add to Someday.

No, I could not reproduce it. I will close it.