FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Bug Fixes, Implemented Suggestions
(Moderator: fry)
   0046: non-existant images crash the editor
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: 0046: non-existant images crash the editor  (Read 352 times)
Glen Murphy

WWW Email
0046: non-existant images crash the editor
« on: Dec 9th, 2002, 5:58am »

The following code will spew error messages into the P5 message pane, and then P5 will cease to respond to mouseclicks and so on (I have to kill the javaw.exe process to get any further). I'm not sure if it's a general response to null pointer exceptions, but this is the first time I've seen it.
 
//////////////////
 
void setup() {
  size(400,300);
  BImage img_bg;
  img_bg = loadImage("basel.gif");
  image(img_bg, 0, 0);
  }
 
//////////////////
 
(base1.gif does not exist.)
« Last Edit: Dec 9th, 2002, 5:59am by Glen Murphy »  
fry


WWW
Re: 0046: non-existant images crash the editor
« Reply #1 on: Dec 9th, 2002, 6:04pm »

this seems related to your other problem.. is there a relevant set of spew in lib/stdout.txt or lib/stderr.txt that includes a stack trace of what happened?
 
Glen Murphy

WWW Email
Re: 0046: non-existant images crash the editor
« Reply #2 on: Dec 9th, 2002, 9:32pm »

From stderr.txt:
 
//////////////
 
Uncaught error fetching image:
java.lang.NullPointerException
 at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:99)
 at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:10
 at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java :251)
 at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:16
 at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
 
//////////////
 
I have just realised that JRE 1.4.1 is installed on my system (installed after installing P5-0046), if that helps.
 
Glen Murphy

WWW Email
Re: 0046: non-existant images crash the editor
« Reply #3 on: Dec 9th, 2002, 9:36pm »

(those smileys are both eight-close brackets)
 
fry


WWW
Re: 0046: non-existant images crash the editor
« Reply #4 on: Dec 10th, 2002, 12:32am »

ah, thanks.. yeah, it's supposed to be catching the exception, but maybe i can tighten that up a bit. also that it should fail more gracefully than locking up the machine.. i'll see what i can do about that for 47.
 

 
(that's just a bracket too)
« Last Edit: Dec 10th, 2002, 12:35am by fry »  
fry


WWW
Re: 0046: non-existant images crash the editor
« Reply #5 on: Mar 5th, 2003, 10:30pm »

fixed in 0052, which will be available within the next few hours from the download location. let us know if it's still broken.
 
Pages: 1 

« Previous topic | Next topic »