[kaffe] Bug Report

Richard Stahl richard.stahl at imec.be
Wed Dec 11 06:52:13 PST 2002


Hello,

I am using Kaffe for expetimenting with the VM implementation yet I 
encountered another problem with its graphics. I am compiling and 
running it on Linux 2.4.9-13 with gcc version 2.95.3.

I do something like this:

g.drawImage(EL_ARR[ak_nr].Picture, 0, 0, this);
//where g = Graphics ...
//      EL_ARR.Picture = Image ...
//      this = Applet ...

and I do not get any graphics on the screen yet I get this exception:

java.lang.ArithmeticException
	at java.awt.image.DirectColorModel.getBlue(DirectColorModel.java:82)
         at 
java.awt.image.DirectColorModel.getRGB(DirectColorModel.java:101)
         at java.awt.ImageLoader.setPixels(Image.java:660)
         at 
java.awt.image.MemoryImageSource.transferPels(MemoryImageSource.java:171)
         at 
java.awt.image.MemoryImageSource.startProduction(MemoryImageSource.java:158)
         at java.awt.ImageLoader.loadSync(Image.java:553)
         at java.awt.Image.loadImage(Image.java:316)
         at java.awt.NativeGraphics.drawImage(NativeGraphics.java:207)
         at MPEG_Play.update(MPEG_Play.java:386)
         at java.awt.Panel.processPaintEvent(Panel.java:63)
         at java.awt.PaintEvt.dispatch(PaintEvt.java:31)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:35)

Does anybody has encoutered this problem or fixed it already? Could you 
please let me know how to fix it or what might be the problem in there?

Thank you very much in advance.

Best regards,

Richard





More information about the kaffe mailing list