ICEpdf
  1. ICEpdf
  2. PDF-728

Problem loading JBIG2 image: InvocationTargetException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.5
    • Fix Version/s: 5.0.6
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All

      Description

      There are two issues seen with the provided PDF file depending on the JBig2 library used.

      With the Jpedal libraries the following error stack trace is thrown when rendering page 7(Issue similar to PDF-675):

      WARNING: Problem loading JBIG2 image:
      java.lang.reflect.InvocationTargetException
      at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.icepdf.core.pobjects.ImageStream.jbig2Decode(ImageStream.java:786)
      at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:373)
      at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:306)
      at org.icepdf.core.pobjects.graphics.SmoothScaledImageReference.call(SmoothScaledImageReference.java:95)
      at org.icepdf.core.pobjects.graphics.SmoothScaledImageReference.call(SmoothScaledImageReference.java:39)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.IndexOutOfBoundsException: bitIndex < 0: -1400
      at java.util.BitSet.clear(BitSet.java:532)
      at java.util.BitSet.set(BitSet.java:458)
      at org.jpedal.jbig2.image.JBIG2Bitmap.setPixel(JBIG2Bitmap.java:1022)
      at org.jpedal.jbig2.image.JBIG2Bitmap.setPixel(JBIG2Bitmap.java:1026)
      at org.jpedal.jbig2.image.JBIG2Bitmap.combine(JBIG2Bitmap.java:841)
      at org.jpedal.jbig2.image.JBIG2Bitmap.readTextRegion(JBIG2Bitmap.java:749)
      at org.jpedal.jbig2.segment.region.text.TextRegionSegment.readSegment(TextRegionSegment.java:301)
      at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.readSegments(JBIG2StreamDecoder.java:432)
      at org.jpedal.jbig2.decoders.JBIG2StreamDecoder.decodeJBIG2(JBIG2StreamDecoder.java:174)
      at org.jpedal.jbig2.JBIG2Decoder.decodeJBIG2(JBIG2Decoder.java:148)
      ... 13 more

      With the Levigo library included, the same error that is reported in PDF-727 is thrown when rendering the first page.

        Issue Links

          Activity

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #40800 Mon Apr 14 12:46:09 MDT 2014 patrick.corless PDF-728 passing of segment data from global dictionary into image decoder.
          Files Changed
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/ImageStream.java

            People

            • Assignee:
              Patrick Corless
              Reporter:
              Arran Mccullough
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: