Skip to content
This repository was archived by the owner on Jan 7, 2019. It is now read-only.

generate_thumbs.py hängt an einem bestimmten Attachment #114

Open
marians opened this issue Sep 19, 2013 · 4 comments
Open

generate_thumbs.py hängt an einem bestimmten Attachment #114

marians opened this issue Sep 19, 2013 · 4 comments

Comments

@marians
Copy link
Owner

marians commented Sep 19, 2013

Es handelt sich um die Datei http://offeneskoeln.de/attachments/2/5/pdf393752.pdf der Vorlage http://offeneskoeln.de/dokumente/0008-2013/ .

In der alten Version ist es offenbar gelungen, die Thumbnails für das Dokument zu erzeugen.

Mit der aktuellen Version bleibt das Script bei diesem Anhang hängen. Die ersten 22 von 27 Seiten werden dabei offensichtlich erzeugt.

@marians
Copy link
Owner Author

marians commented Sep 19, 2013

GPL Ghostscript 9.07 unter MacOS gibt bei Seite 23 der Datei einen "Segmentation fault" aus und bricht ab.

Die Variante auf meinem Server (GPL Ghostscript 8.71) arbeitet einfach immer weiter und benötigt 100% CPU.

@marians
Copy link
Owner Author

marians commented Sep 19, 2013

748c678 enthält einen Versuch, die Unterprozesse in einem eigenen Thread laufen zu lassen und mit einer Maximaldauer zu versehen. Bei mir lokal funktioniert das schon mal.

@marians
Copy link
Owner Author

marians commented Sep 19, 2013

Scheint auch auf dem Server zu funktionieren. Vorgegebene Wartezeit ist 10 Sekunden. Mit --timeout kann die Dauer an der Kommandozeile erhöht werden (Angabe in Sekunden).

@marians marians closed this as completed Sep 19, 2013
@marians marians reopened this Sep 20, 2013
marians added a commit that referenced this issue Sep 20, 2013
@marians
Copy link
Owner Author

marians commented Sep 20, 2013

Mit 0be9785 scheint es nun tatsächlich zu funktionieren, dass der Unterprozess nach Ablauf der konfigurierten Wartezeit beendet wird. Damit kann allerdings die Ausgabe von STDOUT und STDERR nicht mehr ausgelesen werden. Siehe http://thraxil.org/users/anders/posts/2008/03/13/Subprocess-Hanging-PIPE/ für Details.

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

No branches or pull requests

1 participant