User Tag List

Results 1 to 6 of 6

Thread: please correct java heap in next swf update

  1. #1
    Clicker SWF Export Module

    Join Date
    May 2010
    Location
    Tennessee, USA
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    please correct java heap in next swf update

    I got this error again after downloading build 251:

    Loading configuration file C:\Program Files (x86)\Multimedia Fusion Developer 2\Data\Runtime\Flash\Flex\frameworks\flex-config.xml
    Error: Java heap space

    java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Unknown Source)
    at java.io.ByteArrayOutputStream.write(Unknown Source)
    at flash.swf.RandomAccessBuffer.write(RandomAccessBuf fer.java:90)
    at flash.swf.SwfEncoder.writeUI16(SwfEncoder.java:59)
    at flash.swf.TagEncoder.encodeTagHeader(TagEncoder.ja va:305)
    at flash.swf.TagEncoder.encodeTag(TagEncoder.java:254 )
    at flash.swf.TagEncoder.exportAssets(TagEncoder.java: 1929)
    at flash.swf.tags.ExportAssets.visit(ExportAssets.jav a:38)
    at flash.swf.MovieEncoder.export(MovieEncoder.java:12 8)
    at flex2.compiler.API.encode(API.java:4077)
    at flex2.tools.Compiler.mxmlc(Compiler.java:270)
    at flex2.tools.Compiler.main(Compiler.java:53)


    The fix, from Francois, is:
    The error comes from the fact that the flex compiler does not have enough heap space to compile such a large application. You can increase the heap space.

    I a text editor (not a word processor, something like Notepad.exe), open the file located :
    <MMF2 directory>\data\runtime\flash\flex\bin\jvm.config

    On the line "java.args", replace -Xmx384m by -Xmx1024m

    I was wondering if this could be added to the next build update for swf exporter?
    I mean, I can do this manually every update but it's kind of a pain.

    Thanks

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: please correct java heap in next swf update

    Good idea.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fanotherpg's Avatar
    Join Date
    Jul 2006
    Location
    High Wycombe, Buckinghamshire, UK
    Posts
    3,663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: please correct java heap in next swf update

    And what about updating flex-config file so we don't need to update it with most of Flash extensions?

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: please correct java heap in next swf update

    The original flex config is set to compile for Flash 9. I think that we should keep that if it works!

  5. #5
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: please correct java heap in next swf update

    That just sets the minimum build version though, so it shouldn't be a problem to change it to 10? :confused:
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: please correct java heap in next swf update

    Yes, no problem to change it...

Similar Threads

  1. Java Heap Space Error
    By Hazard159 in forum SWF/Flash Export Module Version 2.0
    Replies: 5
    Last Post: 10th May 2013, 06:03 AM
  2. CORRECT way to Toggle!
    By LB in forum File Archive
    Replies: 11
    Last Post: 16th July 2010, 12:28 AM
  3. Is this correct?
    By Keli in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 10th December 2008, 11:18 PM
  4. You can correct the problem of +2 GB
    By josemiguel in forum Install Creator and Patch Maker
    Replies: 3
    Last Post: 22nd November 2007, 02:11 PM
  5. does not even install to the correct drive
    By neat_Kliker2 in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 1st July 2006, 10:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •