org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 1 return by command: stream -define registry:temporary-path=#{nuxeo.tmp.dir} -quiet -map rgb -storage-type char -extract #{tileWidth}x#{tileHeight}+#{offsetX}+#{offsetY} #{inputFilePath}[0] - | convert -depth 8 -size #{tileWidth}x#{tileHeight} rgb:- #{outputFilePath} convert: unexpected end-of-file `-': No such file or directory @ error/rgb.c/ReadRGBImage/230.

nuxeo.com | 2 months ago
  1. 0

    ImageMagick errors building nuxeo-platform-imaging-core | Nuxeo Answers | Quandora

    nuxeo.com | 2 months ago
    org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 1 return by command: stream -define registry:temporary-path=#{nuxeo.tmp.dir} -quiet -map rgb -storage-type char -extract #{tileWidth}x#{tileHeight}+#{offsetX}+#{offsetY} #{inputFilePath}[0] - | convert -depth 8 -size #{tileWidth}x#{tileHeight} rgb:- #{outputFilePath} convert: unexpected end-of-file `-': No such file or directory @ error/rgb.c/ReadRGBImage/230.

    Root Cause Analysis

    1. org.nuxeo.ecm.platform.commandline.executor.api.CommandException

      Error code 1 return by command: stream -define registry:temporary-path=#{nuxeo.tmp.dir} -quiet -map rgb -storage-type char -extract #{tileWidth}x#{tileHeight}+#{offsetX}+#{offsetY} #{inputFilePath}[0] - | convert -depth 8 -size #{tileWidth}x#{tileHeight} rgb:- #{outputFilePath} convert: unexpected end-of-file `-': No such file or directory @ error/rgb.c/ReadRGBImage/230.

      at org.nuxeo.ecm.platform.commandline.executor.api.ExecResult.<init>()
    2. org.nuxeo.ecm
      TestImagingConvertPlugin.testCrop
      1. org.nuxeo.ecm.platform.commandline.executor.api.ExecResult.<init>(ExecResult.java:62)
      2. org.nuxeo.ecm.platform.commandline.executor.service.executors.ShellExecutor.exec(ShellExecutor.java:83)
      3. org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent.execCommand(CommandLineExecutorComponent.java:173)
      4. org.nuxeo.ecm.platform.picture.magick.utils.ImageCropper.crop(ImageCropper.java:47)
      5. org.nuxeo.ecm.platform.picture.core.im.IMImageUtils$1.callImageMagick(IMImageUtils.java:133)
      6. org.nuxeo.ecm.platform.picture.core.im.IMImageUtils$ImageMagickCaller.call(IMImageUtils.java:65)
      7. org.nuxeo.ecm.platform.picture.core.im.IMImageUtils.crop(IMImageUtils.java:135)
      8. org.nuxeo.ecm.platform.picture.ImagingComponent.crop(ImagingComponent.java:108)
      9. org.nuxeo.ecm.platform.picture.convert.CropPictureConverter.convert(CropPictureConverter.java:61)
      10. org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:199)
      11. org.nuxeo.ecm.platform.picture.core.test.TestImagingConvertPlugin.testCrop(TestImagingConvertPlugin.java:154)
      11 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    4. JUnit
      InvokeMethod.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      4 frames
    5. org.nuxeo.runtime
      FeaturesRunner$BeforeMethodRunStatement.evaluate
      1. org.nuxeo.runtime.test.runner.FeaturesRunner$15.evaluate(FeaturesRunner.java:467)
      2. org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeMethodRunStatement.evaluate(FeaturesRunner.java:346)
      2 frames
    6. JUnit
      RunBefores.evaluate
      1. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      1 frame
    7. org.nuxeo.runtime
      RuntimeFeature$2$1.evaluate
      1. org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeSetupStatement.evaluate(FeaturesRunner.java:362)
      2. org.nuxeo.runtime.test.runner.FeaturesRunner$AfterMethodRunStatement.evaluate(FeaturesRunner.java:393)
      3. org.nuxeo.runtime.test.runner.FeaturesRunner$AfterTeardownStatement.evaluate(FeaturesRunner.java:412)
      4. org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:525)
      5. org.nuxeo.runtime.test.runner.RuntimeDeployment$DeploymentStatement.evaluate(RuntimeDeployment.java:270)
      6. org.nuxeo.runtime.test.runner.RuntimeFeature$2$1.evaluate(RuntimeFeature.java:124)
      6 frames
    8. JUnit
      ParentRunner$2.evaluate
      1. org.junit.rules.RunRules.evaluate(RunRules.java:20)
      2. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      3. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      4. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      5. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      6. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      7. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      8. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      9. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      9 frames
    9. org.nuxeo.runtime
      FeaturesRunner$BeforeClassStatement.evaluate
      1. org.nuxeo.runtime.test.runner.FeaturesRunner$AfterClassStatement.evaluate(FeaturesRunner.java:285)
      2. org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:525)
      3. org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeClassStatement.evaluate(FeaturesRunner.java:268)
      3 frames
    10. JUnit
      JUnitCore.run
      1. org.junit.rules.RunRules.evaluate(RunRules.java:20)
      2. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      3. org.junit.runners.Suite.runChild(Suite.java:127)
      4. org.junit.runners.Suite.runChild(Suite.java:26)
      5. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      6. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      7. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      8. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      9. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      10. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      11. org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      12. org.junit.runner.JUnitCore.run(JUnitCore.java:138)
      12 frames
    11. SureFire JUnitCore Runner
      JUnitCoreProvider.invoke
      1. org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113)
      2. org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:85)
      3. org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
      4. org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)
      4 frames
    12. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      3 frames