ICEpdf
  1. ICEpdf
  2. PDF-1123

Error Processing Type 4 definition - EmptyStackException

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 6.2, 6.2.1_P01, 6.2.2
    • Fix Version/s: 6.4
    • Component/s: Core/Rendering
    • Labels:
      None
    • Environment:
      All

      Description

      With the provided PDF file, the following error stack trace is thrown:

      WARNING: Error Processing Type 4 definition
      java.util.EmptyStackException
      at java.util.Stack.peek(Stack.java:102)
      at org.icepdf.core.pobjects.functions.postscript.OperatorFactory$12.eval(OperatorFactory.java:238)
      at org.icepdf.core.pobjects.functions.postscript.Lexer.operandStart(Lexer.java:234)
      at org.icepdf.core.pobjects.functions.postscript.Lexer.parse(Lexer.java:115)
      at org.icepdf.core.pobjects.functions.Function_4.calculate(Function_4.java:94)
      at org.icepdf.core.pobjects.graphics.ShadingPattern.calculateValues(ShadingPattern.java:255)
      at org.icepdf.core.pobjects.graphics.ShadingType2Pattern.calculateColour(ShadingType2Pattern.java:253)
      at org.icepdf.core.pobjects.graphics.ShadingType2Pattern.calculateColorPoints(ShadingType2Pattern.java:202)
      at org.icepdf.core.pobjects.graphics.ShadingType1Pattern.init(ShadingType1Pattern.java:129)
      at org.icepdf.core.util.content.AbstractContentParser.commonFill(AbstractContentParser.java:1912)
      at org.icepdf.core.util.content.AbstractContentParser.consume_f(AbstractContentParser.java:1112)
      at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
      at org.icepdf.core.pobjects.Form.init(Form.java:197)
      at org.icepdf.core.util.content.AbstractContentParser.consume_Do(AbstractContentParser.java:563)
      at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
      at org.icepdf.core.pobjects.Page.init(Page.java:399)
      at org.icepdf.ri.common.views.AbstractPageViewComponent$PageImageCaptureTask.call(AbstractPageViewComponent.java:410)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      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:745)

        Activity

        Hide
        Patrick Corless added a comment -

        The warning error in this can be ignored as the colour space has fallback code to get the colour from an alternate colour space. We are seeing no colour space issues with the rendered output. We could move the logging level to finest to avoid any customer concerns.

        Show
        Patrick Corless added a comment - The warning error in this can be ignored as the colour space has fallback code to get the colour from an alternate colour space. We are seeing no colour space issues with the rendered output. We could move the logging level to finest to avoid any customer concerns.
        Hide
        Patrick Corless added a comment -

        I've checked in logging level change but will leave this bug open as further work is needed to verify the function processing issue.

        Show
        Patrick Corless added a comment - I've checked in logging level change but will leave this bug open as further work is needed to verify the function processing issue.

          People

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

            Dates

            • Created:
              Updated: