You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2025/04/04 13:40:00 UTC
[jira] [Resolved] (PDFBOX-5981) error "read() returns -1, assumed position: 8192, actual position: 8192"
[ https://issues.apache.org/jira/browse/PDFBOX-5981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr resolved PDFBOX-5981.
-------------------------------------
Resolution: Fixed
> error "read() returns -1, assumed position: 8192, actual position: 8192"
> ------------------------------------------------------------------------
>
> Key: PDFBOX-5981
> URL: https://issues.apache.org/jira/browse/PDFBOX-5981
> Project: PDFBox
> Issue Type: Bug
> Components: IO
> Affects Versions: 3.0.4 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 3.0.5 PDFBox, 4.0.0
>
>
> I was analyzing page content streams as a whole with {{page.getContents().readAllBytes()}} and got many log messages like this:
> ERROR io.RandomAccessInputStream.read:101 - read() returns -1, assumed position: 8192, actual position: 8192
> And it stops reading, i.e. we have a data loss.
> The cause is that an EOF is returned for 0 length.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org