[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/27835] New: ArrayIndexOutOfBoundsException in CarioGraphics2D
From: |
hendrich at informatik dot uni-hamburg dot de |
Subject: |
[Bug swing/27835] New: ArrayIndexOutOfBoundsException in CarioGraphics2D.fillRect |
Date: |
31 May 2006 10:01:56 -0000 |
I just tested my image-viewer application with classpath cvs 2006.05.31. Apart
from the repaint issue (#27833) and the JSplitPane scrolling problems, I get
the following exception:
java.lang.ArrayIndexOutOfBoundsException: While writing data elements, x=120,
y=
119, width=120, height=120, scanlineStride=120, offset=14400,
data.getSize()=144
00, data.getOffset()=0: java.lang.ArrayIndexOutOfBoundsException: 14400
at
java.awt.image.SinglePixelPackedSampleModel.setDataElements(SinglePixelPac
kedSampleModel.java:372)
at java.awt.image.WritableRaster.setDataElements(WritableRaster.java:120)
at java.awt.image.BufferedImage.setRGB(BufferedImage.java:622)
at
gnu.java.awt.peer.gtk.BufferedImageGraphics.updateBufferedImage(BufferedIm
ageGraphics.java:126)
at
gnu.java.awt.peer.gtk.BufferedImageGraphics.fill(BufferedImageGraphics.jav
a:162)
at gnu.java.awt.peer.gtk.CairoGraphics2D.fillRect(CairoGraphics2D.java:872)
at
niffler.ThumbnailsManager.createThumbnailImage(ThumbnailsManager.java:477)
at
niffler.ThumbnailsManager.checkCreateThumbnail(ThumbnailsManager.java:246)
at
niffler.ThumbnailsManager$BackgroundLoader.run(ThumbnailsManager.java:692)
-W- BackgroundLoader: FAILED
'/windows/C/temp/Pentax-DL/2006_05_25-altona-rathau
s-zenitar/IMGP1353_pt.JPG'
Looks like an off-by-one error in CairoGraphics2D or BufferedImageGraphics,
but I don't have a simple testcase. Perhaps the data reported by the exception
is enough to hunt the bug?
BTW, previous versions of classpath would just die somewhere when trying to
create the thumbnail images (jamvm deadlocked and I never got useful
stacktraces) , so the above exception is a clear improvement.
Best, Norman
--
Summary: ArrayIndexOutOfBoundsException in
CarioGraphics2D.fillRect
Product: classpath
Version: 0.92
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: swing
AssignedTo: roman at kennke dot org
ReportedBy: hendrich at informatik dot uni-hamburg dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27835
- [Bug swing/27835] New: ArrayIndexOutOfBoundsException in CarioGraphics2D.fillRect,
hendrich at informatik dot uni-hamburg dot de <=