Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 805231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:03:06+00:00 2026-05-15T00:03:06+00:00

I’m making a change to a set of code for a Flex project that

  • 0

I’m making a change to a set of code for a Flex project that I didn’t write and was set up to compile using ant tasks. I assume that the codebase was stable at the last checkin but I’m running into memory issues when trying to build a project using MXMLC and ant (see stack trace below). Before, I was just getting an out of memory error. I tried using a different machine and got this more verbose exception (including problems with the image fetcher). I’ve tried using various versions of the SDK, I’ve tried replacing the <mxmlc> tag with <exec executable="mxmlc"> with no luck. Here is my java version in case that has anything to do with it:

» java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)

Any help would be appreciated. Thanks!

Buildfile: build.xml

compileSWF:
     [echo] Compiling main.swf... 
    [mxmlc] Loading configuration file /Applications/Adobe Flash Builder 4 Plug-in/sdks/4.0.0beta2/frameworks/flex-config.xml
    [mxmlc] Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
    [mxmlc]     at java.awt.image.PixelGrabber.setDimensions(PixelGrabber.java:360)
    [mxmlc]     at sun.awt.image.ImageDecoder.setDimensions(ImageDecoder.java:62)
    [mxmlc]     at sun.awt.image.JPEGImageDecoder.sendHeaderInfo(JPEGImageDecoder.java:71)
    [mxmlc]     at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
    [mxmlc]     at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:119)
    [mxmlc]     at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:246)
    [mxmlc]     at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
    [mxmlc]     at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
    [mxmlc] /src/com/amtrak/components/map/MapAsset.mxml: Error: exception during transcoding: Failed to grab pixels for image /src/assets/embed_assets/images/zoomed_map_wide.jpg
    [mxmlc] 
    [mxmlc] /src/com/amtrak/components/map/MapAsset.mxml: Error: Unable to transcode /assets/embed_assets/images/zoomed_map_wide.jpg.
    [mxmlc] 
    [mxmlc] Error: Java heap space
    [mxmlc] 
    [mxmlc] java.lang.OutOfMemoryError: Java heap space
    [mxmlc]     at java.util.ArrayList.<init>(ArrayList.java:112)
    [mxmlc]     at macromedia.asc.util.ObjectList.<init>(ObjectList.java:30)
    [mxmlc]     at macromedia.asc.parser.ArgumentListNode.<init>(ArgumentListNode.java:30)
    [mxmlc]     at macromedia.asc.parser.NodeFactory.argumentList(NodeFactory.java:116)
    [mxmlc]     at macromedia.asc.parser.NodeFactory.argumentList(NodeFactory.java:97)
    [mxmlc]     at flex2.compiler.mxml.ImplementationGenerator.generateBinding(ImplementationGenerator.java:563)
    [mxmlc]     at flex2.compiler.mxml.ImplementationGenerator.generateBindingsSetupFunction(ImplementationGenerator.java:864)
    [mxmlc]     at flex2.compiler.mxml.ImplementationGenerator.generateBindingsSetup(ImplementationGenerator.java:813)
    [mxmlc]     at flex2.compiler.mxml.ImplementationGenerator.generateInitializerSupportDefs(ImplementationGenerator.java:1813)
    [mxmlc]     at flex2.compiler.mxml.ImplementationGenerator.generateClassDefinition(ImplementationGenerator.java:1005)
    [mxmlc]     at flex2.compiler.mxml.ImplementationGenerator.<init>(ImplementationGenerator.java:201)
    [mxmlc]     at flex2.compiler.mxml.ImplementationCompiler.generateImplementationAST(ImplementationCompiler.java:498)
    [mxmlc]     at flex2.compiler.mxml.ImplementationCompiler.parse1(ImplementationCompiler.java:196)
    [mxmlc]     at flex2.compiler.mxml.MxmlCompiler.parse1(MxmlCompiler.java:168)
    [mxmlc]     at flex2.compiler.CompilerAPI.parse1(CompilerAPI.java:2851)
    [mxmlc]     at flex2.compiler.CompilerAPI.parse1(CompilerAPI.java:2804)
    [mxmlc]     at flex2.compiler.CompilerAPI.batch2(CompilerAPI.java:446)
    [mxmlc]     at flex2.compiler.CompilerAPI.batch(CompilerAPI.java:1274)
    [mxmlc]     at flex2.compiler.CompilerAPI.compile(CompilerAPI.java:1488)
    [mxmlc]     at flex2.compiler.CompilerAPI.compile(CompilerAPI.java:1375)
    [mxmlc]     at flex2.tools.Mxmlc.mxmlc(Mxmlc.java:282)
    [mxmlc]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [mxmlc]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [mxmlc]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [mxmlc]     at java.lang.reflect.Method.invoke(Method.java:597)
    [mxmlc]     at flex.ant.FlexTask.executeInProcess(FlexTask.java:280)
    [mxmlc]     at flex.ant.FlexTask.execute(FlexTask.java:225)
    [mxmlc]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [mxmlc]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [mxmlc]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [mxmlc]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [mxmlc]     at java.lang.reflect.Method.invoke(Method.java:597)

BUILD FAILED
/src/build.xml:49: mxmlc task failed
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T00:03:06+00:00Added an answer on May 15, 2026 at 12:03 am

    Give the Java-VM more heap-space, e.g.

    java -Xmx1024M
    

    or whatever you need :-). Under Linux (and probably other Unixes), that could do the trick with the ant binary:

    ANT_OPTS="-Xmx1024M" ant 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.