webp codec doesn't work on arm arch
Description
Environment
Activity
Pothys - MitrahSoft 5 June 2024 at 15:03Edited
I’ve checked this ticket with the Lucee version 6.1.0.175-SNAPSHOT and Image extension 2.0.0.28-SNAPSHOT. This issue still occurs.
Pothys - MitrahSoft 27 July 2023 at 14:23
I’ve checked this ticket in Lucee version 6.0.0.522-SNAPSHOT and Image extension 2.0.0.25. when running the GetWriteableImageFormats() test on both the local run and the build run, I got this "Multiple exceptions (java.lang.IllegalArgumentException:Unsupported dimensions for ICNS, only multiples of 2 from 16 to 1024 supported: 100x100; org.apache.commons.imaging.ImageWriteException:Invalid/unsupported source width 100 and height 100; FileStore The specified format has no associated registered ImageCodec.)" error.
Stack Trace:
lucee.runtime.exp.NativeException: Multiple exceptions (java.lang.IllegalArgumentException:Unsupported dimensions for ICNS, only multiples of 2 from 16 to 1024 supported: 100x100; org.apache.commons.imaging.ImageWriteException:Invalid/unsupported source width 100 and height 100; FileStore The specified format has no associated registered ImageCodec.) at org.lucee.extension.image.coder.MultiCoder.write(MultiCoder.java:215) at org.lucee.extension.image.coder.MultiCoder.write(MultiCoder.java:176) at org.lucee.extension.image.ImageUtil.writeOut(ImageUtil.java:144) at org.lucee.extension.image.Image.writeOut(Image.java:1022) at
org.lucee.extension.image.functions.ImageWrite.call(ImageWrite.java:62) at
org.lucee.extension.image.functions.ImageWrite.invoke(ImageWrite.java:75) at
lucee.runtime.functions.FunctionHandlerPool.invoke(FunctionHandlerPool.java:40) at
test.testcases.test_cfc$cf$2.udfCall(/test/testcases/test.cfc:102) at
lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112) at
lucee.runtime.type.UDFImpl._call(UDFImpl.java:348) at
lucee.runtime.type.UDFImpl.call(UDFImpl.java:223) at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:699) at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:587) at
lucee.runtime.ComponentImpl.call(ComponentImpl.java:1962) at
lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787) at
lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:780) at
lucee.runtime.util.VariableUtilImpl.callFunction(VariableUtilImpl.java:771) at
lucee.runtime.interpreter.ref.func.UDFCall.getValue(UDFCall.java:64) at
lucee.runtime.interpreter.CFMLExpressionInterpreter.interpret(CFMLExpressionInterpreter.java:229) at
lucee.runtime.functions.dynamicEvaluation.Evaluate._call(Evaluate.java:110) at
lucee.runtime.functions.dynamicEvaluation.Evaluate.call(Evaluate.java:103) at
lucee.runtime.functions.dynamicEvaluation.Evaluate.call(Evaluate.java:43) at
testbox.system.basespec_cfc$cf.udfCall2(/testbox/system/BaseSpec.cfc:575) at
testbox.system.basespec_cfc$cf.udfCall(/testbox/system/BaseSpec.cfc) at
lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112) at
lucee.runtime.type.UDFImpl._call(UDFImpl.java:348) at
lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213) at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:700) at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:587) at
lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1981) at
lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866) at
lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1796) at
testbox.system.runners.unitrunner_cfc$cf.udfCall(/testbox/system/runners/UnitRunner.cfc:146) at
lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112) at
lucee.runtime.type.UDFImpl._call(UDFImpl.java:348) at
lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213) at
lucee.runtime.type.scope.UndefinedImpl.callWithNamedValues(UndefinedImpl.java:805) at
lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866) at
lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1796) at
testbox.system.runners.unitrunner_cfc$cf.udfCall(/testbox/system/runners/UnitRunner.cfc:61) at
lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112) at
lucee.runtime.type.UDFImpl._call(UDFImpl.java:348) at
lucee.runtime.type.UDFImpl.call(UDFImpl.java:223) at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:699) at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:587) at
lucee.runtime.ComponentImpl.call(ComponentImpl.java:1962) at
lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787) at
lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1777) at
testbox.system.testbox_cfc$cf.udfCall1(/testbox/system/TestBox.cfc:357) at
testbox.system.testbox_cfc$cf.udfCall(/testbox/system/TestBox.cfc) at
lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112) at
lucee.runtime.type.UDFImpl._call(UDFImpl.java:348) at
lucee.runtime.type.UDFImpl.call(UDFImpl.java:223) at
lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:787) at
lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787) at
lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1777) at
testbox.system.testbox_cfc$cf.udfCall1(/testbox/system/TestBox.cfc:165) at
testbox.system.testbox_cfc$cf.udfCall(/testbox/system/TestBox.cfc) at
lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112) at
lucee.runtime.type.UDFImpl._call(UDFImpl.java:348) at
lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213) at
lucee.runtime.type.scope.UndefinedImpl.callWithNamedValues(UndefinedImpl.java:805) at
lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866) at
lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1796) at
testbox.system.testbox_cfc$cf.udfCall1(/testbox/system/TestBox.cfc:96) at
testbox.system.testbox_cfc$cf.udfCall(/testbox/system/TestBox.cfc) at
lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112) at
lucee.runtime.type.UDFImpl._call(UDFImpl.java:348) at
lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213) at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:700) at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:587) at
lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1981) at
lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866) at
lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1796) at
testbox.system.basespec_cfc$cf.udfCall2(/testbox/system/BaseSpec.cfc:392) at
testbox.system.basespec_cfc$cf.udfCall(/testbox/system/BaseSpec.cfc) at
lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112) at
lucee.runtime.type.UDFImpl._call(UDFImpl.java:348) at
lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213) at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:700) at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:595) at
lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1990) at
lucee.runtime.ComponentSpecificAccess.callWithNamedValues(ComponentSpecificAccess.java:156) at
lucee.runtime.ComponentPageImpl.callWDDX(ComponentPageImpl.java:638) at
lucee.runtime.ComponentPageImpl.call(ComponentPageImpl.java:209) at
lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1058) at
lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:950) at
lucee.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:65) at
lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:45) at
lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2494) at
lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2480) at
lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2451) at
lucee.runtime.engine.Request.exe(Request.java:45) at
lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1218) at
lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1164) at
lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97) at
lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at
org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:394) at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:770) at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415) at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at
java.lang.Thread.run(Unknown Source) Caused by: MultiException[java.io.IOException: java.lang.IllegalArgumentException:Unsupported dimensions for ICNS, only multiples of 2 from 16 to 1024 supported: 100x100, java.io.IOException: org.apache.commons.imaging.ImageWriteException:Invalid/unsupported source width 100 and height 100, java.io.IOException: FileStore The specified format has no associated registered ImageCodec.] ... 119 more Caused by: java.io.IOException: java.lang.IllegalArgumentException:Unsupported dimensions for ICNS, only multiples of 2 from 16 to 1024 supported: 100x100 at
com.twelvemonkeys.imageio.plugins.icns.IconResource.typeFromWidthForeign(IconResource.java:430) at
com.twelvemonkeys.imageio.plugins.icns.IconResource.typeFromImage(IconResource.java:384) at
com.twelvemonkeys.imageio.plugins.icns.ICNSImageWriter.writeToSequence(ICNSImageWriter.java:148) at
com.twelvemonkeys.imageio.plugins.icns.ICNSImageWriter.write(ICNSImageWriter.java:88) at
org.lucee.extension.image.coder.AImageIOInterface.writeImage(AImageIOInterface.java:279) at
org.lucee.extension.image.coder.AImageIOInterface.write(AImageIOInterface.java:142) at
org.lucee.extension.image.coder.MultiCoder.write(MultiCoder.java:203) ... 118 more Caused by: java.io.IOException: org.apache.commons.imaging.ImageWriteException:Invalid/unsupported source width 100 and height 100 at
org.apache.commons.imaging.formats.icns.IcnsImageParser.writeImage(IcnsImageParser.java:263) at
org.apache.commons.imaging.formats.icns.IcnsImageParser.writeImage(IcnsImageParser.java:42) at
org.apache.commons.imaging.Imaging.writeImage(Imaging.java:916) at
org.lucee.extension.image.coder.ApacheImagingCoder.write(ApacheImagingCoder.java:133) ... 119 more Caused by: java.io.IOException: FileStore The specified format has no associated registered ImageCodec. at
javax.media.jai.JAI.createNS(JAI.java:1091) at
javax.media.jai.JAI.create(JAI.java:977) at
javax.media.jai.JAI.create(JAI.java:1625) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
org.lucee.extension.image.JAIUtil.create(JAIUtil.java:122) at
org.lucee.extension.image.JAIUtil.write(JAIUtil.java:87) at
org.lucee.extension.image.coder.JAICoder.write(JAICoder.java:41) ... 119 more
Zac Spitzer 10 July 2023 at 10:45
@Michael Offner as twelve monkeys supports WEBP, I’d say we ditch the old codec?
Details
Assignee
Michael OffnerMichael OffnerReporter
Zac SpitzerZac SpitzerPriority
NewNew Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Details
Details
Assignee
Reporter
Priority
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
[java] [script] test.functions.GetWriteableImageFormats (skipped) [java] [script] java.lang.Exception: No native library found for os.name=Mac, os.arch=aarch64, paths=[/Users/zac/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.] [java] [script] at com.luciad.imageio.webp.NativeLoader.loadNativeLibrary(NativeLoader.java:271) [java] [script] at com.luciad.imageio.webp.NativeLoader.initialize(NativeLoader.java:66) [java] [script] at com.luciad.imageio.webp.WebP.<clinit>(WebP.java:40) [java] [script] at com.luciad.imageio.webp.WebPEncoderOptions.<clinit>(WebPEncoderOptions.java:20) [java] [script] at com.luciad.imageio.webp.WebPWriteParam.<init>(WebPWriteParam.java:30) [java] [script] at com.luciad.imageio.webp.WebPWriter.getDefaultWriteParam(WebPWriter.java:38) [java] [script] at org.lucee.extension.image.coder.AImageIOInterface.writeImage(AImageIOInterface.java:269) [java] [script] at org.lucee.extension.image.coder.AImageIOInterface.write(AImageIOInterface.java:142)