diff --git a/core/PApplet.java b/core/PApplet.java index 294ed99aa..266e31a13 100644 --- a/core/PApplet.java +++ b/core/PApplet.java @@ -3502,6 +3502,14 @@ public class PApplet extends Applet public InputStream openStream(String filename) { InputStream stream = null; + if (filename == null) return null; + + if (filename.length() == 0) { + // an error will be called by the parent function + //System.err.println("The filename passed to openStream() was empty."); + return null; + } + // by default, data files are exported to the root path of the jar. // (not the data folder) so check there first. // using getClassLoader() prevents java from converting dots @@ -3595,8 +3603,9 @@ public class PApplet extends Applet InputStream is = openStream(filename); if (is != null) return loadBytes(is); - System.err.println(filename + " is missing or inaccessible, make sure " + - "the it's been added to your sketch and is readable."); + System.err.println("The file \"" + filename + "\" " + + "is missing or inaccessible, make sure " + + "it's been added to your sketch and is readable."); return null; } @@ -3632,7 +3641,9 @@ public class PApplet extends Applet InputStream is = openStream(filename); if (is != null) return loadStrings(is); - System.err.println(filename + " is missing or inaccessible."); + System.err.println("The file \"" + filename + "\" " + + "is missing or inaccessible, make sure " + + "it's been added to your sketch and is readable."); return null; } diff --git a/core/done.txt b/core/done.txt index 90858e153..04bae73a1 100644 --- a/core/done.txt +++ b/core/done.txt @@ -4,6 +4,7 @@ X add notes to faq about video fix X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=VideoCamera;action=display;num=1134871549 X look into code that fixes crash on camera.settings() X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=VideoCamera;action=display;num=1139376484 +X finish dxf writer that'll work with recordRaw() 0107 core diff --git a/core/todo.txt b/core/todo.txt index 034423ed0..bef392264 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -1,24 +1,30 @@ 0109 core +X loadImage("") produces weird error message +X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Programs;action=display;num=1136487954 _ still having strokeCap() problems _ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1134011764 +_ when an exception comes through during cameraEvent, not printed +_ need to show an actual stack trace (InvocationTargetEx) +_ because otherwise it's impossible to debug this stuff + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . _ registerSize() in arcball is causing trouble +_ some sort of infinite loop issue -_ loadImage(url) broken on windows +_ loadImage(url) having trouble with jpeg _ actually it's an issue with some types of jpeg files _ http://dev.processing.org/bugs/show_bug.cgi?id=279 _ png image loading problems _ http://dev.processing.org/bugs/show_bug.cgi?id=305 _ updatePixels() is slow to create a BufferedImage -_ therefore the incomplete rendering (mediatracker-type issue?) - -_ finish dxf writer that'll work with recordRaw() +_ therefore the incomplete rendering +_ could this be an issue fixed by a MediaTracker? more pdf/recording stuff _ figure out what's up with type on osx @@ -35,14 +41,6 @@ _ http://www.opengl.org/resources/tutorials/advanced/advanced97/notes/node112. _ lookat is now camera(), but not fixed in the docs _ add notes to the faq about the camera changes on the changes page -_ loadImage("") produces weird error message -_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Programs;action=display;num=1136487954 - -_ check min/max texture sizes when binding to avoid problems -_ minimum texture size may be 64x64 -_ maximum appears to be 2048, on macs maybe 512 -_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Contribution_3DOpenGL;action=display;num=1137130317 - _ more image file i/o in java 1.4 _ add dynamic loading of the jpeg, png, and gif(?) encoder classes _ http://dev.processing.org/bugs/show_bug.cgi?id=165 @@ -656,7 +654,12 @@ _ http://dev.processing.org/bugs/show_bug.cgi?id=127 PGraphicsGL _ move to new implementation of jsr231 with new classes and launcher +_ check min/max texture sizes when binding to avoid problems +_ minimum texture size may be 64x64 +_ maximum appears to be 2048, on macs maybe 512 +_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Contribution_3DOpenGL;action=display;num=1137130317 _ make a note about the anti-aliasing types in the faq +_ polygon vs line etc.. may want to enable lines but disable polys _ y may be flipped in modelX/Y/Z stuff on opengl _ opengl doesn't work in applets _ http://dev.processing.org/bugs/show_bug.cgi?id=166 diff --git a/todo.txt b/todo.txt index 7d49fb701..92ac34141 100644 --- a/todo.txt +++ b/todo.txt @@ -1,5 +1,12 @@ 0109 pde +_ new set of windows quicktime issues introduced in 102+ +_ seems to be ignoring any paths that contain spaces +_ http://dev.processing.org/bugs/show_bug.cgi?id=299 + +_ fix windows make.sh (or move back to Makefile) +_ currently rewrites exe on each build, even if not updated + _ svg loader is on the list for 1.0 _ maybe include as part of PApplet (casey thinks so) _ svg output, make simple version of PGraphicsSVG based on PGraphicsPDF @@ -8,9 +15,6 @@ _ fix linux dist script to work more like the exported apps _ no relative paths, etc _ http://dev.processing.org/bugs/show_bug.cgi?id=298 -_ new set of quicktime issues introduced in 102+ -_ http://dev.processing.org/bugs/show_bug.cgi?id=299 - . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .