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

Applets exported by PDE don't find data folder in 1.5 #705

Closed
processing-bugs opened this issue Feb 10, 2013 · 8 comments
Closed

Applets exported by PDE don't find data folder in 1.5 #705

processing-bugs opened this issue Feb 10, 2013 · 8 comments
Labels

Comments

@processing-bugs
Copy link

Original author: PhiLho....@gmail.com (May 07, 2011 17:45:26)

Processing 1.5, Windows 7, Java 1.6.0_25
If I export an applet with Processing 1.5 and if this applet must load a resource from the data folder, for example a .vlw font, it fails with the following exception:

java.lang.NullPointerException
at java.io.DataInputStream.readInt(Unknown Source)
at processing.core.PFont.<init>(Unknown Source)
at processing.core.PApplet.loadFont(Unknown Source)
at DelaunayTriangles.setup(DelaunayTriangles.java:38)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Animation Thread" java.lang.RuntimeException: Could not load font AmericanTypewriter-24.vlw. Make sure that the font has been copied to the data folder of your sketch.
at processing.core.PApplet.die(Unknown Source)
at processing.core.PApplet.die(Unknown Source)
at processing.core.PApplet.loadFont(Unknown Source)
at DelaunayTriangles.setup(DelaunayTriangles.java:38)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

The same applet exported with 1.2.1 works fine.

Original issue: http://code.google.com/p/processing/issues/detail?id=666

@processing-bugs
Copy link
Author

From juan.elo...@gmail.com on May 10, 2011 21:32:51
Same problem in my computer Processing 1.5, Windows XP, Java 1.6.0_25, it works with CreateFonts and works executing the file inside processing environment but when I export the applet it does not work, exactly the same trace from the java console as the original bug report (with a different vlw file name)

@processing-bugs
Copy link
Author

From ra...@usp.br on May 12, 2011 18:45:55
same thing here, Processing 1.5, windows 7 64-Bit, java 1.6.0_25

@processing-bugs
Copy link
Author

From drajma...@gmail.com on May 15, 2011 05:40:19
Ditto here: Processing 1.5, Windows 7 (32 and 64 bit, both on MacBook Pro), Java 1.6.0_25. This seems to happen for both loadFont() and loadImage().

However, applets from the same sketch work fine when exported from the MacOSX version of Processing 1.5 (MacBook Pro with factory Snow Leopard 10.6.3 installation).

@processing-bugs
Copy link
Author

From drajma...@gmail.com on May 15, 2011 05:57:40
Another note - this problem is different to Issue 429. The sketches I have tried do not use OpenGL, only straight P3D.

@processing-bugs
Copy link
Author

From f...@processing.org on May 15, 2011 20:50:54
Weird, I can't seem to replicate this. If you open the Letters or Words examples, do an export, and then open the exported index.html file, it doesn't work on your machine?

And if not, can you rename the .jar file as .zip and then take a look to see if the vlw file is in there? and whether there's a subfolder called 'data' inside?

@processing-bugs
Copy link
Author

From f...@processing.org on May 15, 2011 20:56:11
Ah, I think I'm on the track.. It only happens when you export using separate .jar files, and it may only be a problem on Windows, perhaps related to the extra "security" controls that have been added in the very latest Java 6 updates.

@processing-bugs
Copy link
Author

From f...@processing.org on May 15, 2011 21:32:46
Fixed for the next release (1.5.1 or 0197). Problem was actually something else... that the data folder had backslashes (instead of forward slashes) on Windows.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant