Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 6.3.2
    • Fix Version/s: 6.3.3
    • Component/s: Core/Parsing, Imaging
    • Labels:
      None
    • Environment:
      any

      Description

      Can not load jbig2 image of submitted file. The file contains quite a few jbig2 image all of which fail to decode with the following stack trace:
      java.lang.reflect.InvocationTargetException
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at org.icepdf.core.pobjects.graphics.images.JBig2Decoder.decodeJbig2(JBig2Decoder.java:161)
      at org.icepdf.core.pobjects.graphics.images.JBig2Decoder.decode(JBig2Decoder.java:80)
      at org.icepdf.core.pobjects.graphics.images.ImageStream.getImage(ImageStream.java:94)
      at org.icepdf.core.pobjects.graphics.images.references.ImageStreamReference.call(ImageStreamReference.java:74)
      at org.icepdf.core.pobjects.graphics.images.references.ImageStreamReference.<init>(ImageStreamReference.java:56)
      at org.icepdf.core.pobjects.graphics.images.references.ImageReferenceFactory.getImageReference(ImageReferenceFactory.java:120)
      at org.icepdf.core.util.content.AbstractContentParser.consume_Do(AbstractContentParser.java:693)
      at org.icepdf.core.util.content.NContentParser.parse(NContentParser.java:292)
      at org.icepdf.core.pobjects.Page.init(Page.java:436)
      at org.icepdf.ri.common.views.AbstractPageViewComponent$PageImageCaptureTask.call(AbstractPageViewComponent.java:413)
      at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: java.lang.RuntimeException: Can't instantiate segment class
      at org.apache.pdfbox.jbig2.SegmentHeader.getSegmentData(SegmentHeader.java:402)
      at org.apache.pdfbox.jbig2.JBIG2Page.createNormalPage(JBIG2Page.java:179)
      at org.apache.pdfbox.jbig2.JBIG2Page.createPage(JBIG2Page.java:151)
      at org.apache.pdfbox.jbig2.JBIG2Page.composePageBitmap(JBIG2Page.java:142)
      at org.apache.pdfbox.jbig2.JBIG2Page.getBitmap(JBIG2Page.java:122)
      at org.apache.pdfbox.jbig2.JBIG2ImageReader.read(JBIG2ImageReader.java:221)
      at java.desktop/javax.imageio.ImageReader.read(ImageReader.java:938)
      ... 19 more
      Caused by: java.lang.NullPointerException
      at org.apache.pdfbox.jbig2.segments.TextRegion.initSymbols(TextRegion.java:814)
      at org.apache.pdfbox.jbig2.segments.TextRegion.getSymbols(TextRegion.java:246)
      at org.apache.pdfbox.jbig2.segments.TextRegion.parseHeader(TextRegion.java:148)
      at org.apache.pdfbox.jbig2.segments.TextRegion.init(TextRegion.java:907)
      at org.apache.pdfbox.jbig2.SegmentHeader.getSegmentData(SegmentHeader.java:397)
      ... 25 more

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: