Skip to content
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

Precompiled Stipplegen crashes when Java version is non-numeric #11

Open
gerv opened this issue Aug 22, 2017 · 1 comment
Open

Precompiled Stipplegen crashes when Java version is non-numeric #11

gerv opened this issue Aug 22, 2017 · 1 comment
Labels

Comments

@gerv
Copy link

gerv commented Aug 22, 2017

gerv@wolf:~/Download/StippleGen2$ application.linux64/StippleGen2 
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NumberFormatException: For input string: "9-i"
	at jdk.internal.math.FloatingDecimal.readJavaFormatString(java.base@9-internal/FloatingDecimal.java:2054)
	at jdk.internal.math.FloatingDecimal.parseFloat(java.base@9-internal/FloatingDecimal.java:122)
	at java.lang.Float.parseFloat(java.base@9-internal/Float.java:451)
	at java.lang.Float.<init>(java.base@9-internal/Float.java:532)
	at processing.core.PApplet.<clinit>(PApplet.java:182)

and:

gerv@wolf:~/Download/StippleGen2$ java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)
gerv@wolf:~/Download/StippleGen2$ 

As you can see, it seems like it's trying to parse the Java version number and failing.

This is the version of OpenJDK which comes with Ubuntu 16.04. This may be a bug in the copy of Processing which is embedded in it, I don't know. I tried to get it working from source using the latest Processing - it does - and then generate a newer version using Export Application but I haven't got that working yet - my exported application crashes for a different reason.

@oskay oskay added the bug label Aug 22, 2017
@oskay
Copy link
Contributor

oskay commented Aug 22, 2017

I will take a look at this. Please run from within Processing, if possible, in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants