You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xmlgraphics.apache.org by "juan bedoya (JIRA)" <ji...@apache.org> on 2015/10/08 13:59:26 UTC

[jira] [Updated] (XGC-100) runing ImageViewer example faili with some tiff files

     [ https://issues.apache.org/jira/browse/XGC-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

juan bedoya updated XGC-100:
----------------------------
    Description: 
When traing to load the ImageViewer example with some tiff files the library fail to load it. I was able to load other tiff files generated by the same source.
This is the stack trace when fail:
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0
	at org.apache.xmlgraphics.image.codec.tiff.TIFFFaxDecoder.nextLesserThan8Bits(TIFFFaxDecoder.java:1417)
	at org.apache.xmlgraphics.image.codec.tiff.TIFFFaxDecoder.decodeT6(TIFFFaxDecoder.java:964)
	at org.apache.xmlgraphics.image.codec.tiff.TIFFImage.getTile(TIFFImage.java:839)
	at org.apache.xmlgraphics.image.rendered.AbstractRed.copyToRaster(AbstractRed.java:615)
	at org.apache.xmlgraphics.image.codec.tiff.TIFFImage.copyData(TIFFImage.java:739)
	at org.apache.xmlgraphics.image.rendered.AbstractRed.getData(AbstractRed.java:551)
	at sun.java2d.SunGraphics2D.drawRenderedImage(Unknown Source)
	at org.apache.xmlgraphics.image.loader.impl.ImageConverterBitmap2G2D$Graphics2DImagePainterImpl.paint(ImageConverterBitmap2G2D.java:70)
	at image.loader.ViewerFrame$1.paintComponent(ViewerFrame.java:79)
	at javax.swing.JComponent.paint(Unknown Source)
	at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
	at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
	at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
	at java.awt.Container.paint(Unknown Source)
	at java.awt.Window.paint(Unknown Source)
	at sun.awt.RepaintArea.paintComponent(Unknown Source)
	at sun.awt.RepaintArea.paint(Unknown Source)
	at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
	at sun.awt.windows.WWindowPeer.handleEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

  was:
When traing to load the ImageViewer example with some tiff files the library fail to load it.
This is the stack trace:


> runing ImageViewer example faili with some tiff files
> -----------------------------------------------------
>
>                 Key: XGC-100
>                 URL: https://issues.apache.org/jira/browse/XGC-100
>             Project: XMLGraphicsCommons
>          Issue Type: Bug
>          Components: image codecs
>    Affects Versions: 2.0.1
>         Environment: OS: Windows 7, Core i7-2620M, 8GB 
>            Reporter: juan bedoya
>
> When traing to load the ImageViewer example with some tiff files the library fail to load it. I was able to load other tiff files generated by the same source.
> This is the stack trace when fail:
> Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0
> 	at org.apache.xmlgraphics.image.codec.tiff.TIFFFaxDecoder.nextLesserThan8Bits(TIFFFaxDecoder.java:1417)
> 	at org.apache.xmlgraphics.image.codec.tiff.TIFFFaxDecoder.decodeT6(TIFFFaxDecoder.java:964)
> 	at org.apache.xmlgraphics.image.codec.tiff.TIFFImage.getTile(TIFFImage.java:839)
> 	at org.apache.xmlgraphics.image.rendered.AbstractRed.copyToRaster(AbstractRed.java:615)
> 	at org.apache.xmlgraphics.image.codec.tiff.TIFFImage.copyData(TIFFImage.java:739)
> 	at org.apache.xmlgraphics.image.rendered.AbstractRed.getData(AbstractRed.java:551)
> 	at sun.java2d.SunGraphics2D.drawRenderedImage(Unknown Source)
> 	at org.apache.xmlgraphics.image.loader.impl.ImageConverterBitmap2G2D$Graphics2DImagePainterImpl.paint(ImageConverterBitmap2G2D.java:70)
> 	at image.loader.ViewerFrame$1.paintComponent(ViewerFrame.java:79)
> 	at javax.swing.JComponent.paint(Unknown Source)
> 	at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
> 	at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
> 	at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
> 	at java.awt.Container.paint(Unknown Source)
> 	at java.awt.Window.paint(Unknown Source)
> 	at sun.awt.RepaintArea.paintComponent(Unknown Source)
> 	at sun.awt.RepaintArea.paint(Unknown Source)
> 	at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
> 	at sun.awt.windows.WWindowPeer.handleEvent(Unknown Source)
> 	at java.awt.Component.dispatchEventImpl(Unknown Source)
> 	at java.awt.Container.dispatchEventImpl(Unknown Source)
> 	at java.awt.Window.dispatchEventImpl(Unknown Source)
> 	at java.awt.Component.dispatchEvent(Unknown Source)
> 	at java.awt.EventQueue.dispatchEvent(Unknown Source)
> 	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
> 	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> 	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> 	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> 	at java.awt.EventDispatchThread.run(Unknown Source)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org