openequella / openEQUELLA

Core openEQUELLA sources
https://openequella.github.io/
Apache License 2.0
42 stars 44 forks source link

Support Ghostscript 9.50+ on Windows #1528

Closed cbeach47 closed 4 years ago

cbeach47 commented 4 years ago

Describe the bug Image Magic fails to thumbnail a simple PDF with Ghostscript 9.50 on Windows.

This works on Ubuntu with Image Magic 6.8.9-9 Q16 x86_64 2019-11-12.

Ghostscript 9.25 (possibly 9.26) worked to thumbnail PDFs with this install on Windows and the Image Magic version.

To Reproduce Steps to reproduce the behavior:

On Windows Install Ghostscript 9.50 Install Image Magic Contribute a simple PDF to oEQ No thumbnail is generated, and an error is thrown in the logs.

Expected behavior A thumbnail should be generated for the PDF

Stacktrace

ERROR
ThumbingCallable
Error generating thumbnail
java.lang.RuntimeException: Exec process returned -1073740791. StdOut:

    StdErr:

     at com.tle.common.util.ExecUtils$ExecResult.ensureOk(ExecUtils.java:221)
     at com.tle.core.imagemagick.ImageMagickServiceImpl.getImageDimensions(ImageMagickServiceImpl.java:213)
     at com.tle.core.imagemagick.ImageMagickServiceImpl.generateThumbnailAdvanced(ImageMagickServiceImpl.java:86)
     at com.tle.core.imagemagick.ImageMagickServiceImpl.generateStandardThumbnail(ImageMagickServiceImpl.java:291)
     at com.tle.pdf.thumbnail.PdfThumbnailGenerator.generateThumbnail(PdfThumbnailGenerator.java:40)
     at com.tle.core.workflow.thumbnail.service.impl.ThumbingCallable.genThumb(ThumbingCallable.java:237)
     at com.tle.core.workflow.thumbnail.service.impl.ThumbingCallable.makeThumbs(ThumbingCallable.java:170)
     at com.tle.core.workflow.thumbnail.service.impl.ThumbingCallable$$EnhancerByGuice$$17701c2.CGLIB$makeThumbs$0(<generated>)
     at com.tle.core.workflow.thumbnail.service.impl.ThumbingCallable$$EnhancerByGuice$$17701c2$$EnhancerByGuice$$18cec8e8.invoke(<generated>)
     at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
     at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72)
     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
     at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72)
     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
     at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72)
     at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52)
     at com.tle.core.workflow.thumbnail.service.impl.ThumbingCallable$$EnhancerByGuice$$17701c2.makeThumbs(<generated>)
     at com.tle.core.workflow.thumbnail.service.impl.ThumbingCallable$1.call(ThumbingCallable.java:92)
     at com.tle.core.workflow.thumbnail.service.impl.ThumbingCallable$1.call(ThumbingCallable.java:89)
     at com.tle.core.institution.impl.RunAsInstitutionImpl.execute(RunAsInstitutionImpl.java:61)
     at com.tle.core.institution.impl.RunAsInstitutionImpl.executeAsSystem(RunAsInstitutionImpl.java:73)
     at com.tle.core.workflow.thumbnail.service.impl.ThumbingCallable.call(ThumbingCallable.java:87)
     at com.tle.core.workflow.thumbnail.service.impl.ThumbingCallable.call(ThumbingCallable.java:54)
     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     at java.lang.Thread.run(Thread.java:748) 

Platform:

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.