question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ActionScript Release Task: Task generates java.lang.OutOfMemoryError

See original GitHub issue

Hello Josh,

I have an issue when trying to build a release via the "ActionScript: compile release - asconfig.json" task. Everything works fine with debug builds.

Here is the error I get during the build:

> Executing task: C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe -jar c:\Users\Adolio\.vscode\extensions\bowlerhatllc.vscode-nextgenas-0.18.0\bin\asconfigc.jar --sdk c:\AIR\AIR_SDK_32_0 --debug=false --project e:\Development\Air\Starling-Sandbox\asconfig.json <

Loading configuration: c:\AIR\AIR_SDK_32_0\frameworks\air-config.xml

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Unknown Source)
        at java.io.ByteArrayOutputStream.grow(Unknown Source)
        at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)
        at java.io.ByteArrayOutputStream.write(Unknown Source)
        at SevenZip.Compression.RangeCoder.Encoder.ShiftLow(Encoder.java:60)
        at SevenZip.Compression.RangeCoder.Encoder.EncodeDirectBits(Encoder.java:80)
        at SevenZip.Compression.LZMA.Encoder.CodeOneBlock(Encoder.java:1188)
        at SevenZip.Compression.LZMA.Encoder.Code(Encoder.java:1284)
        at com.adobe.flash.swf.io.LZMACompressor.compress(LZMACompressor.java:138)
        at com.adobe.flash.swf.io.SWFWriter.writeTo(SWFWriter.java:2695)
        at com.adobe.flash.swf.io.SWFWriter.writeTo(SWFWriter.java:2762)
        at com.adobe.flash.compiler.clients.MXMLC.writeSWF(MXMLC.java:807)
        at com.adobe.flash.compiler.clients.MXMLC.compile(MXMLC.java:564)
        at com.adobe.flash.compiler.clients.MXMLC.mainNoExit(MXMLC.java:242)
        at com.adobe.flash.compiler.clients.MXMLC.mainNoExit(MXMLC.java:196)
        at com.adobe.flash.compiler.clients.MXMLC.staticMainNoExit(MXMLC.java:167)
        at com.adobe.flash.compiler.clients.MXMLC.main(MXMLC.java:144)
The terminal process terminated with exit code: 1

Best, Aurélien

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
joshtynjalacommented, Aug 30, 2019

FYI: In today’s update, VSCode no longer sets -Xmx512m automatically when compiling. This may cause the out of memory error to return. However, you can now pass custom arguments to the Java Virtual Machine when compiling. In your VSCode settings, add the following value to restore the previous behavior:

{
	"as3mxml.asconfigc.jvmargs": "-Xmx512m"
}
0reactions
neminovnocommented, May 16, 2019

@joshtynjala Great. Thanks. I will test it after next update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flash Builder build ios ipa ends in java out of memory error
I'm using Flash Builder 4.7 with Adobe AIR 3.6 set into an Apache Flex 4.9.1 SDK;. HW system is: iMac, 2,7 GHz Intel...
Read more >
ActionScript 3.0 Developer's Guide - Adobe Support
keeping tasks, and then uses another class named AnalogClockFace to actually display the time. Here is the code that defines and initializes ...
Read more >
Solved: Re: vRO 8.1 scriptable task with PowerShell error ...
vRO 8.1 scriptable task with PowerShell error: Function was stopped. Most likely because it hit an OOM (out of memory) condition. Jump to...
Read more >
How to fix out of memory errors by increasing available memory
Step 1: Increase Available Memory · Increase Xmx in small increments (eg 512mb at a time), until you no longer experience the OutOfMemory...
Read more >
Resolve the "No space left on device" error in Spark on ...
Job aborted due to stage failure: Task 31 in stage 8.0 failed 4 times, ... calling spill() on org.apache.spark.util.collection.unsafe.sort.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found