Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-14980

<mxmlc fork="true" ... /> gives error: "The args attribute is deprecated. Please use nested arg elements."

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: Adobe Flex SDK 3.0 (Release)
    • Fix Version/s: None
    • Component/s: Ant Tasks
    • Labels:
      None
    • Environment:
      Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

      Description

      After building 5 swc files and 5 swf files, out of memory error happens on building 6th swf file as following:
      [mxmlc] Error: PermGen space
      [mxmlc]
      [mxmlc] java.lang.OutOfMemoryError: PermGen space
      [mxmlc] at java.lang.String.intern(Native Method)
      [mxmlc] at macromedia.abc.AbcParser.scanCpool(Unknown Source)
      [mxmlc] at macromedia.abc.AbcParser.parseAbc(Unknown Source)
      [mxmlc] at flex2.compiler.abc.Compiler.parse1(Compiler.java:179)
      [mxmlc] at flex2.compiler.API.parse1(API.java:2306)
      [mxmlc] at flex2.compiler.API.parse1(API.java:2259)
      [mxmlc] at flex2.compiler.API.batch2(API.java:367)
      [mxmlc] at flex2.compiler.API.batch(API.java:1108)
      [mxmlc] at flex2.compiler.API.compile(API.java:1281)
      [mxmlc] at flex2.compiler.API.compile(API.java:1201)
      [mxmlc] at flex2.tools.Compiler.mxmlc(Compiler.java:240)
      [mxmlc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [mxmlc] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [mxmlc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [mxmlc] at java.lang.reflect.Method.invoke(Unknown Source)
      [mxmlc] at flex.ant.FlexTask.executeInProcess(FlexTask.java:311)
      [mxmlc] at flex.ant.FlexTask.execute(FlexTask.java:244)
      [mxmlc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      [mxmlc] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      [mxmlc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [mxmlc] at java.lang.reflect.Method.invoke(Unknown Source)
      [mxmlc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      [mxmlc] at org.apache.tools.ant.Task.perform(Task.java:348)
      [mxmlc] at org.apache.tools.ant.Target.execute(Target.java:357)
      [mxmlc] at org.apache.tools.ant.Target.performTasks(Target.java:385)
      [mxmlc] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      [mxmlc] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
      [mxmlc] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
      [mxmlc] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
      [mxmlc] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
      [mxmlc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      [mxmlc] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

      All this build happens within one single ANT VM.
      I have tried -Xms768M -Xmx1024M -XX:MaxPermSize=512m.
      But no luck.

      I've been able to work around out of memory with <mxmlc fork="true" ... />.
      By doing so, I am getting following warning message:
      "[mxmlc] The args attribute is deprecated. Please use nested arg elements."

      I am also getting same problem with <compc fork="true" ... />.

      This must be fixed up before fork is totally deprecated.

        Attachments

          Activity

            People

            • Assignee:
              adobejira Adobe JIRA
              Reporter:
              adobejira Adobe JIRA
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: