-
-
Notifications
You must be signed in to change notification settings - Fork 69
SVG loading causes ArrayIndexOutOfBoundsException
with some files
#750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Created by: villares Thank you very much @behreajj! |
Created by: SaumyaKarnwal hey @benfry , |
Created by: luis-c465 Was getting this same issue when trying to parse this USA Map with Counties because it contains values like Thank you, @SaumyaKarnwal! 🎉 For the time being I made a simple python script to convert these values into proper decimals, so I can continue on my project 😄. https://gist.github.com/luis-c465/6c748e40b5c1b8899f5d1502228a5cd6 |
Created by: SaumyaKarnwal That's great! I'm glad you found a workaround for the parsing issue. On Thu, Mar 21, 2024 at 7:34 PM Luis Canada @.***>
|
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:
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,0
it loads.The text was updated successfully, but these errors were encountered: