I've tried all sorts. Currently using: *-Xms1024m* *-Xmx2048m* *-XX:MaxPermSize=512m* *-XX:PermSize=512m*
Simon On 8 July 2013 16:01, Alex Harui <[email protected]> wrote: > Have you tried increasing available heap? > > http://stackoverflow.com/questions/14143753/java-heap-error-in-flash-builde > r-4-6 > > On 7/8/13 7:46 AM, "simon gladman" <[email protected]> wrote: > > >Thanks Alex, > > > >Flash Builder 4.7 (latest version - I uninstalled and reinstalled > >earlier), > >the SDK is 4.9.1 (1447119). The logs says... > > > >*!ENTRY org.eclipse.core.jobs 4 2 2013-07-08 14:33:36.889* > >*!MESSAGE An internal error occurred during: "Building workspace".* > >*!STACK 0* > >*java.lang.OutOfMemoryError: Java heap space* > >* at java.util.Arrays.copyOf(Arrays.java:2786)* > >* at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:71)* > >* at flash.swf.RandomAccessBuffer.write(RandomAccessBuffer.java:101)* > >* at flash.swf.SwfEncoder.writeUI16(SwfEncoder.java:71)* > >* at flash.swf.TagEncoder.encodeTagHeader(TagEncoder.java:311)* > >* at flash.swf.TagEncoder.defineBinaryData(TagEncoder.java:330)* > >* at flash.swf.tags.DefineBinaryData.visit(DefineBinaryData.java:37)* > >* at flash.swf.MovieEncoder.define(MovieEncoder.java:231)* > >* at flash.swf.MovieEncoder.export(MovieEncoder.java:139)* > >* at > >flex2.compiler.PersistenceStore.writeAssets(PersistenceStore.java:922)* > >* at > >flex2.compiler.PersistenceStore.writeCompilationUnit(PersistenceStore.java > >:875) > >* > >* at > >flex2.compiler.PersistenceStore.writeCompilationUnits(PersistenceStore.jav > >a:662) > >* > >* at flex2.compiler.PersistenceStore.write(PersistenceStore.java:310)* > >* at > >flex2.compiler.CompilerAPI.persistCompilationUnits(CompilerAPI.java:4766)* > >* at > >flex2.compiler.CompilerAPI.persistCompilationUnits(CompilerAPI.java:4741)* > >* at flex2.tools.oem.internal.OEMUtil.save(OEMUtil.java:180)* > >* at flex2.tools.oem.Application.save(Application.java:619)* > >* at > >com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.saveState(ASBui > >lder.java:870) > >* > >* at > >com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.saveState(A > >SItemBuilder.java:119) > >* > >* at > >com.adobe.flexbuilder.project.compiler.BuilderManager.maybeRemoveOldestBui > >lder(BuilderManager.java:171) > >* > >* at > >com.adobe.flexbuilder.project.compiler.BuilderManager.getBuilder(BuilderMa > >nager.java:199) > >* > >* at > >com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.pre > >Build(FlexIncrementalBuilder.java:464) > >* > >* at > >com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildIt > >em(FlexProjectBuilder.java:705) > >* > >* at > >com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildWo > >rkers(FlexProjectBuilder.java:592) > >* > >* at > >com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(F > >lexProjectBuilder.java:406) > >* > >* at > >com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.bui > >ld(FlexIncrementalBuilder.java:171) > >* > >* at > >org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728) > >* > >* at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)* > >* at > >org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java > >:199) > >* > >* at > >org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java > >:239) > >* > >* at > >org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) > >* > >* at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)* > > > >Simon > > > > > >On 8 July 2013 15:30, Alex Harui <[email protected]> wrote: > > > >> Which exact versions of FlashBuilder and Apache Flex? > >> > >> What does the FlashBuilder log have to say? > >> > >> -Alex > >> > >> On 7/8/13 6:51 AM, "simon gladman" <[email protected]> wrote: > >> > >> >Hi All, > >> > > >> >I have a project which is making FlashBuilder with the > >> >latest Apache Flex behave very oddly. > >> > > >> >The attached project is actually a rebuilt version of a previous one. > >>When > >> >I first started coding, it was fine, then suddenly I start getting > >>*Java > >> >heap space* errors and FB stops working. Interestingly, the first FXP > >> >export is only 3.8MB but after the heap space errors, the FXP export > >>jumps > >> >up to 135MB (!). > >> > > >> >I've done loads of stuff with workers without any problems. I can't see > >> >what's different about this. > >> > > >> >Any suggestions appreciated. The smaller FXP is here: > >> >www.flexmonkey.co.uk/x_SwarmChemistry2.fxp > >> > > >> > > >> >Thanks, > >> > > >> >Simon > >> > > >> >-- > >> >*flexmonkey.co.uk | @FlexMonkey <https://twitter.com/FlexMonkey> | +44 > >> (0) > >> >7973 669691* > >> > >> > > > > > >-- > >*flexmonkey.co.uk | @FlexMonkey <https://twitter.com/FlexMonkey> | +44 > (0) > >7973 669691* > > -- *flexmonkey.co.uk | @FlexMonkey <https://twitter.com/FlexMonkey> | +44 (0) 7973 669691*
