I am having trouble with a build, I was hoping someone can help.

We have a project with 2,774 files totaling 33.2 MB in size for the source.

Our build machine is a Linux box (8GB of memory) running the 4.14.1 SDK. We
use ant and flex tasks to execute our builds.

One of the guys on our team just added 50 .as files to the project and the
builds started failing with the following output.

run.mxmlc:
    [mxmlc] Loading configuration file
/opt/magnantech/gen/scratch_102_104_106/insdevcfg.xml
    [mxmlc] Error: null
    [mxmlc]

BUILD FAILED
/opt/magnantech/gen/scratch_102_104_106/build.xml:319: mxmlc task failed.

If we remove the 50 files the project builds again OK on the build machine.

If we pull the project locally and build using the same SDK through
Intellij on windows, the build works fine with the 50 additional .as files.

The ant task looks like this:

<mxmlc fork="yes" file="./flex_src/insDev.mxml"
    output="./../${deployment}/WebContent/insDev_${buildnumber}.swf"
    actionscript-file-encoding="UTF-8"
    keep-generated-actionscript="false"
    debug="false"
    optimize="true">

    <default-frame-rate>30</default-frame-rate>
    <load-config filename="./insdevcfg.xml"/>
    <source-path path-element="${FLEX_HOME}/frameworks" />
    <compiler.source-path path-element="./flex_src" />
</mxmlc>


This had me wondering if maybe ant was running out of memory, I looked at
setting ANT_OPTS=-Xmx2098M, this did nothing.

I then searched the web and found a couple links saying if you get out of
memory issues you can try fork="yes" which we already do and set the
maxmemory attribute. I tried adding maxmemory="2096m" and this also did
nothing to improve the situation.

<mxmlc fork="yes" maxmemory="2096m" file="./flex_src/insDev.mxml"
    output="./../${deployment}/WebContent/insDev_${buildnumber}.swf"
    actionscript-file-encoding="UTF-8"
    keep-generated-actionscript="false"
    debug="false"
    optimize="true">

    <default-frame-rate>30</default-frame-rate>
    <load-config filename="./insdevcfg.xml"/>
    <source-path path-element="${FLEX_HOME}/frameworks" />
    <compiler.source-path path-element="./flex_src" />
</mxmlc>


Any thoughts? I guess our next step could be to split our project up into a
few modules and see if that solves the problem? I am not sure I am getting
an our of memory exception, the error message Error: null is not exactly
descriptive.

Thanks,
Justin


*Justin Magnan*
*President & CTO*

*Andovia*
10 Tower Office Park, Suite 202
Woburn, MA 01801


*Office: *+1 (978) 296-4490

*Mobile: *+1 *(*617) <978%29%20835-9508>* 308-8354*

*Fax: *+1 (978) 296-4570

justin.mag...@andovia.com <tom.aufi...@andovia.com>

Reply via email to