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

Pdfjs - Loading damaged pdf causes crash #412

Open
jrynhart opened this issue Sep 18, 2024 · 2 comments
Open

Pdfjs - Loading damaged pdf causes crash #412

jrynhart opened this issue Sep 18, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@jrynhart
Copy link
Contributor

Warning before app crash: "Warning: Indexing all pdfs"

pdfjs may be throwing this, investigate handling the error

@jrynhart jrynhart added the bug Something isn't working label Sep 18, 2024
@jrynhart jrynhart self-assigned this Sep 18, 2024
@jrynhart
Copy link
Contributor Author

The message "Warning: Indexing all pdfs" concludes the log file entries before an app restart (occurred 4X) and this message can be reproduced, by loading the object that was loaded prior to the message appearing.

Example: 943b0b55-c968-4c46-8771-7e565d78a121
This is a tif, not pdf. The object is 404 when loaded by the universal viewer, potentially causing some internal problem. the UV pdf lib (pdf.combined.js ) is logging the message.

This tif is not found in duracloud (404). The jpg derivative is not present in the storage folder.

A crash has not been reproduced. Testing pdf files has not reproduced the message or crash.

Will monitor for future issues, and potentially upgrade UV to v4.0.25 (current is v3.1.4)

@jrynhart
Copy link
Contributor Author

jrynhart commented Sep 19, 2024

Can reproduce crash when loading a corrupted pdf file

Found exception thrown from node lib page-count > pdf-parse > pdf.js
Handled exception in pdfUtils.js lib
Ref#3ce3091ba27d6263303b8684a14f1846f08ab3e8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant