Bug 769 : Space after OPENGL param breaks export
Last modified: 2008-05-15 20:31




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P4
Severity:
normal

 

Reporter:
dch
Assigned To:
fry

Attachment Type Created Size Actions
Example sketch showing the issue application/octet-stream 2008-05-07 13:49 107 bytes

Description:   Opened: 2008-05-07 13:46
Minor issue, but the regex in the export code that detects OPENGL as the
renderer, and thus sets the separateJars variable to true, misses the case
where OPENGL is followed by a space:

size(200, 200, OPENGL );

thus the export packs everything into one jar and the following exception
is thrown:

Error while running applet.
java.lang.RuntimeException
at processing.core.PApplet.createGraphics(PApplet.java:1235)
at processing.core.PApplet.size(PApplet.java:1015)
at processing.core.PApplet.size(PApplet.java:959)
at OpenGlSpaceTest.setup(OpenGlSpaceTest.java:3)
at processing.core.PApplet.handleDisplay(PApplet.java:1390)
at processing.core.PGraphics.requestDisplay(PGraphics.java:690)
at processing.core.PApplet.run(PApplet.java:1562)
at java.lang.Thread.run(Unknown Source)

Adding a space to the 3rd capturing group in the regex solves the problem,
though there may well be a nicer way: ([^ \\)]*)
-dch

(Tested on v135, WinXp)
Additional Comment #1 From dch 2008-05-07 13:49
edit]
Example sketch showing the issue
Additional Comment #2 From fry 2008-05-15 20:31
now fixed for 0136, thanks for the report.