Christopher Livsey created FLEX-33415: -----------------------------------------
Summary: Cannot set compression in Embed tag Key: FLEX-33415 URL: https://issues.apache.org/jira/browse/FLEX-33415 Project: Apache Flex Issue Type: Bug Components: Embedded Asset Transcoding Affects Versions: Adobe Flex SDK 4.6 (Release) Environment: Flash Builder 4.7 on Windows 7 Reporter: Christopher Livsey Steps to reproduce: 1. Use the Embed tag above a class variable to embed a png [Embed(source = "Image.png", mimeType = "image/png", compression="true")] private static var _imageClass:Class; NOTE: This occurs with or without specifying the mimeType as long as compression is being set to "true" 2. Save/Compile the Code 3. Note the compiler errors: Internal error in ABC generator subsystem, when generating code for: C:\Users\clivsey\Adobe Flash Builder 4.7\TestProject\src\TestProject.as: java.lang.NullPointerException at com.adobe.flash.compiler.internal.embedding.transcoders.JPEGTranscoder.equals(JPEGTranscoder.java:220) at com.adobe.flash.compiler.internal.embedding.EmbedData.equals(EmbedData.java:522) at java.util.WeakHashMap.eq(Unknown Source) at java.util.WeakHashMap.get(Unknown Source) at com.adobe.flash.compiler.internal.workspaces.Workspace.getCanonicalEmbedData(Workspace.java:933) at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.getEmbedData(EmbedCompilationUnitFactory.java:120) at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.getCompilationUnit(EmbedCompilationUnitFactory.java:62) at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilationUnit(EmbedNode.java:116) at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilationUnit(EmbedNode.java:126) at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilationUnit(EmbedNode.java:43) at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.collectEmbedDatas(EmbedCompilationUnitFactory.java:136) at com.adobe.flash.compiler.internal.as.codegen.ABCGenerator.generate(ABCGenerator.java:184) at com.adobe.flash.compiler.internal.units.ASCompilationUnit.handleABCBytesRequest(ASCompilationUnit.java:374) at com.adobe.flash.compiler.internal.units.CompilationUnitBase.processABCBytesRequest(CompilationUnitBase.java:870) at com.adobe.flash.compiler.internal.units.CompilationUnitBase.access$300(CompilationUnitBase.java:107) at com.adobe.flash.compiler.internal.units.CompilationUnitBase$4$1.call(CompilationUnitBase.java:309) at com.adobe.flash.compiler.internal.units.CompilationUnitBase$4$1.call(CompilationUnitBase.java:305) at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call(RequestMaker.java:228) at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call(RequestMaker.java:222) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) TestProject.as /TestProject/src line 0 Flex Problem Internal error in outgoing dependency subsystem, when generating code for: C:\Users\clivsey\Adobe Flash Builder 4.7\TestProject\src\TestProject.as: java.lang.NullPointerException at com.adobe.flash.compiler.internal.embedding.transcoders.JPEGTranscoder.equals(JPEGTranscoder.java:220) at com.adobe.flash.compiler.internal.embedding.EmbedData.equals(EmbedData.java:522) at java.util.WeakHashMap.eq(Unknown Source) at java.util.WeakHashMap.get(Unknown Source) at com.adobe.flash.compiler.internal.workspaces.Workspace.getCanonicalEmbedData(Workspace.java:933) at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.getEmbedData(EmbedCompilationUnitFactory.java:120) at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.getCompilationUnit(EmbedCompilationUnitFactory.java:62) at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilationUnit(EmbedNode.java:116) at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilationUnit(EmbedNode.java:126) at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilationUnit(EmbedNode.java:43) at com.adobe.flash.compiler.internal.units.CompilationUnitBase.updateEmbedCompilationUnitDependencies(CompilationUnitBase.java:946) at com.adobe.flash.compiler.internal.units.ASCompilationUnit.handleOutgoingDependenciesRequest(ASCompilationUnit.java:458) at com.adobe.flash.compiler.internal.units.CompilationUnitBase.processOutgoingDependenciesRequest(CompilationUnitBase.java:886) at com.adobe.flash.compiler.internal.units.CompilationUnitBase.access$500(CompilationUnitBase.java:107) at com.adobe.flash.compiler.internal.units.CompilationUnitBase$6$1.call(CompilationUnitBase.java:378) at com.adobe.flash.compiler.internal.units.CompilationUnitBase$6$1.call(CompilationUnitBase.java:374) at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call(RequestMaker.java:228) at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call(RequestMaker.java:222) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) TestProject.as /TestProject/src line 0 Flex Problem Actual Results: Setting compression to true generates a compiler error. Expected Results: I expected to be able to compress embedded images with Flash Builder. Workaround (if any): None. Additonal Notes: Trying to explicitly set compression to false: [Embed(source = "Image.png", mimeType = "image/png", compression="false")] private static var _imageClass:Class; Generates the following error: The attribute compression can't be used with the mime type: image/png Switching the mimeType to jpeg in this case: [Embed(source = "Image.png", mimeType = "image/jpeg", compression="false")] private static var _imageClass:Class; Generates the following error: The attribute compression can't be used with the mime type: image/jpeg -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira