You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Jira)" <ji...@apache.org> on 2020/06/20 15:53:00 UTC

[jira] [Comment Edited] (PDFBOX-4893) PDF file shows changing exceptions when opened with PDFDebugger

    [ https://issues.apache.org/jira/browse/PDFBOX-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17141116#comment-17141116 ] 

Andreas Lehmkühler edited comment on PDFBOX-4893 at 6/20/20, 3:52 PM:
----------------------------------------------------------------------

This is a concurrency issue. The on demand parser isn't threadsafe, yet. PDFDebugger does some asynchronous rendering and triggers some concurrent access to the source using the on demand parser, which explains why it sometimes works and produces randomly different exceptions if it doesn't work.

The new {{RandomAccessReadMemoryMappedFile}} is supposed to be threadsafe and works fine. I'm working on the other ones to improve them as well


was (Author: lehmi):
This is a concurrency issue. The on demand parser isn't threadsafe, yet. PDFDebugger does some asynchronous rendering and triggers some concurrent access to the source using the on demand parser, which explains why it sometimes works and produces randomly different exceptions if it doesn't work.

The new {{RandomAccessReadMemoryMappedFile}} seems to be threadsafe and works fine. I'm working on the other ones to improve them as well

> PDF file shows changing exceptions when opened with PDFDebugger
> ---------------------------------------------------------------
>
>                 Key: PDFBOX-4893
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4893
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Tilman Hausherr
>            Assignee: Andreas Lehmkühler
>            Priority: Major
>         Attachments: f8938 (blank, readonly).pdf
>
>
> File is from PDFBOX-4888. Opening it with PDFDebugger (in "show pages" mode, which is the default) shows different exceptions / errors each time. When opening with ExtractText or PDFToImage there is no problem.
> This happens with the current snapshot but also with
>  pdfbox-app-3.0.0-20200611.053723-1925.jar Thu Jun 11 05:37:24 UTC 2020



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org