Drawbot_image_to_gcode_v2 icon indicating copy to clipboard operation
Drawbot_image_to_gcode_v2 copied to clipboard

Scrolling through Pen Sets

Open jsecondo opened this issue 6 years ago • 3 comments

When scrolling through the different pen sets, when going back to the first, if you press one more time, the program ends with a "ArrayIndexOutOfBoundsException:-1

Guess the culprit is the "render_with_copic" routine

Regards,

jsecondo avatar May 06 '18 21:05 jsecondo

Jsecondo, thanks for the bug report. This bug has been driving me crazy. This is likely a race condition thing. I think keyPressed() runs in a separate thread. Still in the works for now.

Scott-Cooper avatar May 29 '18 01:05 Scott-Cooper

Fixed: https://github.com/Scott-Cooper/Drawbot_image_to_gcode_v2/commit/5c4421f91e5e0925c9ff7297ea5cfc920d4ae077

Scott-Cooper avatar May 29 '18 04:05 Scott-Cooper

Tried last update. Still null pointer appears in the next function while scrolling back to the first copic set.

color get_original_color(String pen) { return original_color.get(pen); }

jsecondo avatar Jun 01 '18 03:06 jsecondo