AW: mxmlc error null with "large" project

2016-09-20 Thread Christofer Dutz
Well if it's fork=no you use the VM of the Build therefore you provide the VM 
args to Ant, if you have fork=yes, it creates a dedicated VM for the 
compilation and you have to manually pass in arguments to the creation of that 
VM ...


... you could also try the Maven build ;-)


Chris


Von: Justin Mclean <jus...@classsoftware.com>
Gesendet: Montag, 19. September 2016 23:19:01
An: dev@flex.apache.org
Betreff: Re: mxmlc error null with "large" project

HI,

I do have a vague memory that it picks up the memory argument in different 
spots depending if you have fork=“yes” or fork=“no”.

Justin


Re: mxmlc error null with "large" project

2016-09-19 Thread Justin Magnan
Alex,

Modifying the mxmlc jvm arguments did the trick.

Using "mxmlc jvmargs" in a google search found
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fd9.html
which lead to the answer.

Thanks for the help.

Justin


On Mon, Sep 19, 2016 at 1:13 AM, Alex Harui  wrote:

>
> On 9/18/16, 7:02 PM, "Justin Magnan"  wrote:
>
> >I am having trouble with a build, I was hoping someone can help.
> >
> >
> >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.
> >
> > >output="./../${deployment}/WebContent/insDev_${buildnumber}.swf"
> >actionscript-file-encoding="UTF-8"
> >keep-generated-actionscript="false"
> >debug="false"
> >optimize="true">
> >
> >30
> >
> >
> >
> >
> >
> >
> >Any thoughts?
>
> I think there are jvmargs you can set to give mxmlc more memory.
>
> Modules should help you in several ways, from reducing build times as well
> as load times.
>
>
> HTH,
> -Alex
>
>


Re: mxmlc error null with "large" project

2016-09-18 Thread Alex Harui

On 9/18/16, 7:02 PM, "Justin Magnan"  wrote:

>I am having trouble with a build, I was hoping someone can help.
>
>
>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.
>
>output="./../${deployment}/WebContent/insDev_${buildnumber}.swf"
>actionscript-file-encoding="UTF-8"
>keep-generated-actionscript="false"
>debug="false"
>optimize="true">
>
>30
>
>
>
>
>
>
>Any thoughts? 

I think there are jvmargs you can set to give mxmlc more memory.

Modules should help you in several ways, from reducing build times as well
as load times.


HTH,
-Alex



mxmlc error null with "large" project

2016-09-18 Thread Justin Magnan
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:



30






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.



30






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