Details
-
Type: Bug
-
Status: Open
-
Priority: 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
-
Support Case References:
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)
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)
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.