Created by: villares
Description
Loading some SVG files that used to work with loadShape() on Processing 3.5.4 will cause a message like this (the index varies):
ArrayIndexOutOfBoundsException: Index 128 out of bounds for length 128
Expected Behavior

Current Behavior

Steps to Reproduce
-
Copy this SVG file to a data folder inside a new sketch:
https://gist.github.com/villares/a5b028eaddf4c0e008f9783ea5dddb40
-
Paste in and run this code:
void setup(){
size(200, 200);
PShape a = loadShape("a.svg");
shape(a, 0, 0, 200, 200); // optional, will not be reached
}
Environment
Processing version: Processing 4.2
Operating System and OS version: Manjaro 21.3 Kernel 5.15
More information / ideas
Looks similar to this issue with coordinates starting with .: #518 (comment)
But the offending coordinates seem to be 2.51259,6.5e-4, if I replace with 2.51259,0 it loads.
Created by: villares
Description
Loading some SVG files that used to work with
loadShape()on Processing 3.5.4 will cause a message like this (the index varies):ArrayIndexOutOfBoundsException: Index 128 out of bounds for length 128Expected Behavior
Current Behavior
Steps to Reproduce
Copy this SVG file to a
datafolder inside a new sketch:https://gist.github.com/villares/a5b028eaddf4c0e008f9783ea5dddb40
Paste in and run this code:
Environment
Processing version: Processing 4.2
Operating System and OS version: Manjaro 21.3 Kernel 5.15
More information / ideas
Looks similar to this issue with coordinates starting with
.: #518 (comment)But the offending coordinates seem to be
2.51259,6.5e-4, if I replace with2.51259,0it loads.