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

GhostScript crashing on some PDF derivatives #583

Open
seth-shaw-asu opened this issue Sep 2, 2022 · 1 comment
Open

GhostScript crashing on some PDF derivatives #583

seth-shaw-asu opened this issue Sep 2, 2022 · 1 comment
Labels
AirTable bug Something isn't working devops Severity: low Primarily cosmetic issues.

Comments

@seth-shaw-asu
Copy link
Contributor

seth-shaw-asu commented Sep 2, 2022

GhostScript is "hangs" on some PDFs imagemagick is passing to it during thumbnail processing. This locks the apache/imagemagick thread Crayfish holds and blocks further derivative processing (since Karaf is configured to only process one message per queue at a time). This was discovered when reviewing some of the derivatives that failed to process identified #580.

This issue reports this as being known for the version of GhostScript we have (9.26; the latest available from Ubuntu). The suggested solution is either downgrading GhostScript or upgrading Imagemagick.

The downgrade of GhostScript on Ubuntu is not simple as there are package dependencies involved, nor is the imagemagick upgrade simgple as we rely on the Lyrasis version which includes JP2 support.

The work-around, in the meantime, is to restart karaf (so it drops the stuck derivative request) and apache (so it drops the hung gs thread) on the services server when this happens.

@seth-shaw-asu seth-shaw-asu added bug Something isn't working devops Severity: major Negatively affects large areas of the software; broken existing functionality. labels Sep 2, 2022
@seth-shaw-asu
Copy link
Contributor Author

We recently updated Crayfish/Houdini which included the capacity to limit the PDF source to just the first page. This appears to avoid the page/pages that GhostScript was choking on, allowing the thumbnail to generate correctly. 🎊
However, this is still an issue that should probably be resolved someday, so we should degrade its status to low.

@seth-shaw-asu seth-shaw-asu added Severity: low Primarily cosmetic issues. and removed Severity: major Negatively affects large areas of the software; broken existing functionality. labels Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AirTable bug Something isn't working devops Severity: low Primarily cosmetic issues.
Projects
None yet
Development

No branches or pull requests

2 participants