Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29089

Fix TestPictureResize tests with ImageMagick 6.9.10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Image Management

      Description

      It seems that since the merge of ImageMagick 6.9.10 (https://github.com/nuxeo/jx-platform-builders/commit/279756ca18503a04a32e7f3a9c058786f4a43beb), the TestPictureResize tests are failing on all environments on Jenkins X, see https://jenkins.platform.dev.nuxeo.com/job/nuxeo/job/nuxeo/job/master/468

      Run unit tests / Run dev unit tests / org.nuxeo.ecm.platform.picture.core.test.TestPictureResize.testResizer
      Run unit tests / Run dev unit tests / org.nuxeo.ecm.platform.picture.core.test.TestPictureResize.testResizerForDoc
      
      2020-05-11 10:35:53,010 [main] ERROR [IMImageUtils$ImageMagickCaller] ImageMagick failed on command: resizer
      org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 1 return by command: convert -define registry:temporary-path=#{nuxeo.tmp.dir} -quiet -background white -flatten -depth #{targetDepth} #{inputFilePath}[0] jpg:- | convert - -resize #{targetWidth}x#{targetHeight} #{outputFilePath}
      
      	at org.nuxeo.ecm.platform.commandline.executor.api.ExecResult.<init>(ExecResult.java:62) ~[classes/:?]
      	at org.nuxeo.ecm.platform.commandline.executor.service.executors.ShellExecutor.exec(ShellExecutor.java:76) ~[classes/:?]
      	at org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent.execCommand(CommandLineExecutorComponent.java:173) ~[classes/:?]
      	at org.nuxeo.ecm.platform.picture.magick.utils.ImageResizer.resize(ImageResizer.java:69) ~[classes/:?]
      	at org.nuxeo.ecm.platform.picture.core.im.IMImageUtils$2.callImageMagick(IMImageUtils.java:157) ~[classes/:?]
      	at org.nuxeo.ecm.platform.picture.core.im.IMImageUtils$ImageMagickCaller.call(IMImageUtils.java:67) ~[classes/:?]
      	at org.nuxeo.ecm.platform.picture.core.im.IMImageUtils.resize(IMImageUtils.java:159) ~[classes/:?]
      	at org.nuxeo.ecm.platform.picture.ImagingComponent.resize(ImagingComponent.java:107) ~[classes/:?]
      	at org.nuxeo.ecm.platform.picture.convert.ResizePictureConverter.convert(ResizePictureConverter.java:65) ~[classes/:?]
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:339) ~[classes/:?]
      	at org.nuxeo.ecm.platform.picture.operation.PictureResize.run(PictureResize.java:106) ~[classes/:?]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:175) ~[classes/:?]
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:180) ~[classes/:?]
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:151) ~[classes/:?]
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:218) ~[classes/:?]
      	at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[classes/:?]
      	at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[classes/:?]
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:215) ~[classes/:?]
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115) ~[classes/:?]
      	at org.nuxeo.ecm.platform.picture.core.test.TestPictureResize.testResizer(TestPictureResize.java:98) ~[test-classes/:?]
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h