Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Severe performance problem with some (Geo)PDF files #123

Open
hexagontomn opened this issue Jul 29, 2020 · 2 comments
Open

Severe performance problem with some (Geo)PDF files #123

hexagontomn opened this issue Jul 29, 2020 · 2 comments

Comments

@hexagontomn
Copy link

Example file:
ENAME H-5 23 APR 2020.pdf

When opening this file in the IcePDF viewer, it takes almost 15 full minutes to render. Stack dumps taken during the wait consistently show this:

"ICEpdf-thread-pool" #30 daemon prio=5 os_prio=0 cpu=757125.00ms elapsed=777.59s tid=0x00000221dc217800 nid=0x44b8 runnable  [0x000000b9117fd000]
   java.lang.Thread.State: RUNNABLE
        at sun.awt.geom.AreaOp.pruneEdges(java.desktop@14.0.1/AreaOp.java:407)
        at sun.awt.geom.AreaOp.calculate(java.desktop@14.0.1/AreaOp.java:159)
        at java.awt.geom.Area.pathToCurves(java.desktop@14.0.1/Area.java:195)
        at java.awt.geom.Area.transform(java.desktop@14.0.1/Area.java:528)
        at org.icepdf.core.pobjects.graphics.GraphicsState.updateClipCM(GraphicsState.java:586)
        at org.icepdf.core.util.content.AbstractContentParser.consume_cm(AbstractContentParser.java:419)
        at org.icepdf.core.util.content.OContentParser.parse(OContentParser.java:239)
        at org.icepdf.core.pobjects.Page.init(Page.java:438)
        - locked <0x00000000c813e848> (a org.icepdf.core.pobjects.Page)
        at org.icepdf.ri.common.views.AbstractPageViewComponent$PageImageCaptureTask.call(AbstractPageViewComponent.java:413)
        at java.util.concurrent.FutureTask.run(java.base@14.0.1/FutureTask.java:264)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@14.0.1/ThreadPoolExecutor.java:1130)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@14.0.1/ThreadPoolExecutor.java:630)
        at java.lang.Thread.run(java.base@14.0.1/Thread.java:832)

Other tools (tested Acrobat Viewer and Chrome) display the file in a matter of seconds.

We have plenty of other files which do not trigger this problem, so perhaps there is some sort of dodgy construct in this particular one that IcePDF can't handle well?

@pcorless
Copy link
Owner

pcorless commented Aug 18, 2020

Thanks for the file, taking a look. And sorry for the late reply, I didn't see this issue come in.

@gtache
Copy link
Contributor

gtache commented Sep 3, 2020

By the way, ICEpdf is not the only one struggling with this type of file, Evince also takes a long time to open it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants