Hi Roderick, It took us a good while but we found the root of the problem https://github.com/mayan-edms/mayan-edms/issues/23. The Python backend is now using pdftoppm to convert PDFs to PNG plus is also being called in a sub-process, fixing the problem. The patch is merged and will be in the next release (version 1.1).
There is current no solid solution for the segfaults in v1.0, maybe a backport of the patch could be made... Will look into it. On Tuesday, January 13, 2015 at 5:10:51 AM UTC-4, Roderick Smets wrote: > > Hey all, > > I've been having some problems with the graphical backends. When I use the > default python one (which I assume is based on Ghostscript) it crashes for > any new document I try to view. > > CLI output: > [13/Jan/2015 08:56:14] "GET > /api/v0/documents/documents/2/image/?size=50x50&rotation=0&version=2&page=1&zoom=100 > > HTTP/1.1" 200 1524 > > > > ##### 139750518601968 c_void_p(139750518601968) > > [13/Jan/2015 08:56:15] "GET > /api/v0/documents/documents/3/image/?size=50x50&rotation=0&version=3&page=1&zoom=100 > > HTTP/1.1" 500 16212 > > [13/Jan/2015 08:56:15] "GET /static/images/mimetypes/error.png HTTP/1.1" > 304 0 > > ##### 139750518601968 c_void_p(139750518601968) > > [13/Jan/2015 08:56:16] "GET > /api/v0/documents/documents/3/image/?size=50x50&rotation=0&version=3&page=1&zoom=100 > > HTTP/1.1" 500 100833 > > [13/Jan/2015 08:56:21] "GET /documents/3/view/ HTTP/1.1" 200 69156 > > [13/Jan/2015 08:56:21] "GET /static/images/ajax-loader.gif HTTP/1.1" 404 > 1674 > > [13/Jan/2015 08:56:21] "GET > /api/v0/documents/documents/3/image/?size=160x120&rotation=0&version=3&page=1&zoom=100 > > HTTP/1.1" 500 16205 > > Segmentation fault > > > > Does this have anything to do with which version of Ghostscript I'm using > (9.07 on CentOS7)? I assume these segfaults aren't standard. > > > So I tried out the other backends. ImageMagick gives kind of poor results > in page previews and thumbnails, lots of aliasing, but atleast it worked. > GraphicsMagick seems like an improvement aliasing-wise but has problems > handling some pages. > > > So on to my questions: > > 1. Does the python standard backend in general perform better? Is it worth > using over GraphicsMagick? > > 2. How would I go about getting it to work considering my current error? > -- --- You received this message because you are subscribed to the Google Groups "Mayan EDMS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
