Bug 35683 - array bounds exception while scaling an image
Summary: array bounds exception while scaling an image
Status: UNCONFIRMED
Alias: None
Product: classpath
Classification: Unclassified
Component: classpath (show other bugs)
Version: unspecified
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-24 20:57 UTC by Dave Dyer
Modified: 2009-03-13 03:43 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Dyer 2008-03-24 20:57:01 UTC
Sorry, this is all the information available from the log - I don't know
if this is old or new software, but note the date, it's in current use.

[Mar 24 18:09:48] logFile request #140 from C1495 (guest#3) on S12 session 2
"[Java 1.4.2 GNU Classpath http://www.gnu.org/software/classpath/ 49.0 Linux i386 2.6.22-14-generic] (Game 11 threads)in game main loop java.lang.ArrayIndexOutOfBoundsException: 11880 last message was  211 imnamed guest1499 213.172.233.80 15199726 192.168.0.176 3  
java.lang.ArrayIndexOutOfBoundsException: 11880
   at java.awt.image.AreaAveragingScaleFilter.averagePixels(AreaAveragingScaleFilter.java:250)
   at java.awt.image.AreaAveragingScaleFilter.setPixels(AreaAveragingScaleFilter.java:140)
   at java.awt.image.BufferedImage$1.startProduction(BufferedImage.java:545)
   at java.awt.image.FilteredImageSource.startProduction(FilteredImageSource.java:112)
   at gnu.java.awt.peer.gtk.GtkImage.<init>(GtkImage.java:184)
   at gnu.java.awt.peer.gtk.GtkToolkit.createImage(GtkToolkit.java:244)
   at java.awt.Image.getScaledInstance(Image.java:206)
   at online.common.exCanvas.clearCachedImages(exCanvas.java)
   at online.common.exCanvas.ViewerRun(exCanvas.java)
   at online.common.commonCanvas.ViewerRun(commonCanvas.java)
   at yinsh.common.YinshGameViewer.ViewerRun(YinshGameViewer.java)
   at online.common.commonPanel.runStep(commonPanel.java)
   at online.common.commonGame.run(commonGame.java)
   at java.lang.Thread.run(Thread.java:740)
   at java.lang.VMThread.run(VMThread.java:120)
 "
end of C1495 (guest#3) S12
Comment 1 Dave Dyer 2008-04-27 01:49:18 UTC
Another instance caught in the wild.
[Apr 27 00:05:18] logFile request #89 from C1489 (guest#3) on S14 session 1
"[Java 1.4.2 GNU Classpath http://www.gnu.org/software/classpath/ 49.0 Linux i386 2.6.22-14-generic] (Game 11 threads)in game main loop java.lang.ArrayIndexOutOfBoundsException: 12099 last message was  205 guest 
java.lang.ArrayIndexOutOfBoundsException: 12099
   at java.awt.image.AreaAveragingScaleFilter.averagePixels(AreaAveragingScaleFilter.java:250)
   at java.awt.image.AreaAveragingScaleFilter.setPixels(AreaAveragingScaleFilter.java:140)
   at java.awt.image.BufferedImage$1.startProduction(BufferedImage.java:545)
   at java.awt.image.FilteredImageSource.startProduction(FilteredImageSource.java:112)
   at gnu.java.awt.peer.gtk.GtkImage.<init>(GtkImage.java:184)
   at gnu.java.awt.peer.gtk.GtkToolkit.createImage(GtkToolkit.java:244)
   at java.awt.Image.getScaledInstance(Image.java:206)
   at online.common.exCanvas.clearCachedImages(exCanvas.java)
Comment 2 Dave Dyer 2008-04-27 01:52:08 UTC
If you want to experiment with reproducing this bug, play games
at Boardspace.net - these messages come from my image caching system
which produces scaled images as you resize the window.  Feel free
to contact me for any assistance, I'd like to see this fixed.

Comment 3 Dave Dyer 2009-03-13 03:43:33 UTC
Still present in Java 1.5.0, one year later. 


[Mar 13 00:26:37] logFile request #31 from C1485 (kyranee#7838) on S14 session 15
"[Java 1.5.0 GNU Classpath http://www.gnu.org/software/classpath/ 50.0 Linux i386 2.6.27-11-generic] (Game 14 threads)in game main loop java.lang.ArrayIndexOutOfBoundsException: 36800
java.lang.ArrayIndexOutOfBoundsException: 36800
   at java.awt.image.AreaAveragingScaleFilter.averagePixels(AreaAveragingScaleFilter.java:250)
   at java.awt.image.AreaAveragingScaleFilter.setPixels(AreaAveragingScaleFilter.java:140)
   at java.awt.image.BufferedImage$1.startProduction(BufferedImage.java:625)