Uploaded image for project: 'XMLGraphicsCommons'
  1. XMLGraphicsCommons
  2. XGC-100

runing ImageViewer example faili with some tiff files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.1
    • None
    • image codecs
    • None
    • OS: Windows 7, Core i7-2620M, 8GB

    Description

      When trying 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)

      Attachments

        1. IMG_with_Err.tif
          56 kB
          juan bedoya

        Activity

          People

            Unassigned Unassigned
            jbedoyag juan bedoya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: