Adobe AIR memory leak loading SWFs

I was plagued by a memory leak that would crash my application after a few hours. The application had worked fine in the past but now was having issues and I thought it might have to do with using newer SDK's.
In the end I discovered that if I loaded external swf that had been compiled in debug mode, they would not clear completely on unload and cause a memory leak.
Compiling in release mode fixed the issue. Spent 3 days trying to figure it out.

Any chance you can check that out with the latest AIR?
Either way, it sounds like a bug, please report it at http://bugbase.adobe.com/ and then report the bug number here. 
If you're able to provide a reproducable case that would really increase the chance that we can do something about it.
Thanks,
roymeo

Similar Messages

  • Adobe Aire memory leak?

    Hello everyone,
    I am a windows xp home user with the lates flash player installed.
    I been noticing some were memory usage when i use the adobe air flash player. Im not sure if anyone els notice this problem,
    but when ever i launch a software called streamdesk. my memory suddenly jumps to 1.10 gb of memory. but,when i restart my computer my memory is back to normal. is anyone els seeing this problem? if so,we to report it to adobe air so they can fix it...

    Adobe, can you hear me?
    Not guaranteed when posting here.  Try below instead.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Having said that, this is not a problem I see on any of the four Windows machines I work on.  And it's not a problem commonly reported here.  So my inclination is to suggest that something may be funky with your install.

  • Memory Leak in .swf

    Memory Leak issue with CS4
    Using CS4, we have a memory leak and I can not find the
    source of the problem.
    http://tiny.cc/O7D3e here is the
    link to the testing site. If you take a look at your task manager
    you will see it your RAM will continue to increase even after two
    or three cycles. It does not stabilize.
    We are using FlashEff | Flash Effects Component in order to
    generate the smooth transitions. However, I have done some
    debugging and even completely deleted the plug n from the file and
    it still continually leaks memory. Does anyone have any possible
    solutions or causes for this.

    One idea - there is a separate stack of memory in the flash
    player where loaded classes in separate application domains exist,
    and these classes are not being garbage collected....however, there
    is a line in adobe's documentation here:
    http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000327.html
    under "Usage C" :
    quote:
    Having a new application domain also allows you to unload all
    the class definitions for garbage collection, if you can ensure
    that you do not continue to have references to the child SWF.
    Given that, as far as I can see from this code, there is no
    reference to the loaded .swf maintained....it seems to me like the
    loaded data (graphical assets AND classes) should be garbage
    collected - but, while you WILL see a slight drop in memory after
    the removal of the SWF, the overall memory continues to increase
    the more you do it. Could Adobe be mistaken?

  • AIR crashes on loading swf with 'Imported for runtime sharing' fonts

    Hello everybody,
    I have a trouble with an AIR application developped with Flex but the error seems to come from the Flash/AIR, after some searches a staff member (Flex harUI) said me that I could find more help for my trouble here.
    I'm developping an AIR application which loads an external swf. This swf contains 'Imported for runtime sharing' fonts from another swf to reduce its size.
    When the AIR application has finished to load (see message below) the whole application crashes without giving any error message except the usual "Process terminated unexpectedly" error message.
    End Loading: [SWF] C:\Users\dev02\myProject\index.swf - 83,930 bytes after decompression
    Error Message:
    Process terminated unexpectedly.
    Launch command details:  "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.6.0\bin\adl.exe" -runtime "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.6.0\runtimes\air\win" "C:\Users\dev02\Adobe Flash Builder 4\Languages_Editor\bin-debug\Language_Editor-app.xml" "C:\Users\dev02\Adobe Flash Builder 4\Languages_Editor\bin-debug"
    I use Flash Builder 4 (build 272416) with sdk 4.6.
    Full discussion here.
    I tried to load the external swf with the most basics codes, it works with a Flash web app but not with a Flex/AIR app or a Flash/AIR app.
    Thanks for the help !

    Thanks for the anwser.
    In fact, I cannot specify a swc because my main application is an editor of sub-applications where each one has its own library.
    The bug remains when sharing a simple MovieClip too.
    Maybe, if I explain my project it will be a little more clear.
    I'm developping a multi-languages module / application.
    For each module, I have an external xml for texts. So in order to add a new language we don't need to recompile, just to change texts in the xml. But, I had to externalize my fonts, (imagine if each swf contains the whole characters set like latin, cyrillic, etc.).
    And then, I have my main text editor application above the module, which loads texts xmls and a preview of the page where we need to change the text. (This is where it crashes, during the process of loading the preview).
    My editor works great for translating, changing texts, modify images but without the preview, what is really frustrating.
    (not so ergonomic, I know...)
    I hope it will help you to understand my trouble.
    regards

  • Adobe air  won't load

    I need to see if someone can help. I believe I have adobe air through photoshop 7, however it will not load. I get a message saying that there was an error, and to try installing it again. The error message I get is Error# 2032. I no longer can find my photoshop cd and can't find a link to download Adobe Air. Any help would  be appreciated. Thanks.

    I'm assuming you have one of the MBP's with a discrete GPU? If so, there is a known issue with Adobe Air and MBPs with discrete GPUs. In order to get Air-related things to run without crashing, you must go to:
    System Preferences > Energy Saver
    From there, uncheck "Automatic Graphics Switching."
    Adobe Air should now work properly.

  • Memory leak with swf generated by Xcelsius 4.5?

    Hello,
    I've experienced some memory problems with swf generated with Xcelsius 4.5. I'm using Windows Vista and Internet Explorer 7.
    I noticed that every time I refresh my dashboard using the F5 key, the memory used by the Internet Explorer process increases (or doubles).So, in case I need to refresh my dashboard many times, the memory used by the browser becomes definitely too much and compromises my system stability.
    Does anyone have experienced this problem? Is this a memory leak? Is there a way to fix this problem?
    Thank you,

    That's the trick who does it, thank you!

  • Adobe Story memory leak

    I am running Adobe Story online in Windows 7 Ultimate, 64-bit, using the application on my desktop. In the Task Manager, the Memory for Adobe Story constantly increases. At the moment it's 160,000 KB and climbing. If I leave it open for any length of time, all functions in it slow way down, apparently the result of what appears to be a memory leak.
    Jeff Sengstack

    Adobe, can you hear me?
    Not guaranteed when posting here.  Try below instead.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Having said that, this is not a problem I see on any of the four Windows machines I work on.  And it's not a problem commonly reported here.  So my inclination is to suggest that something may be funky with your install.

  • Adobe Air 3.7 External SWF IOS

    im using Air 3.7 to call external swf from server to main swf  , but i got this warning after publishing Air for IOS "ActionScript contained in externally loaded SWF files will be ignored on IOS devices" please what i miss i know that the SDK 3.7 support this features all my extrnal swf contain actionscript 3 ??

    This warning is thrown by CS6 as CS6 was published when AIR iOS didn't have multiple SWFs support. Please ignore it as the feature will work in your app and SWFs will load on your iOS devices with AIR 3.7.
    Thanks,
    Nimisha

  • Adobe air won't load, on macbook pro

    I have an early 2011 Macbook pro, all was well till I tried to download latest Mac User on Zinio reader. This worked when I reopened zinio to read it
    it crashed. Have tried, even took machine to Apple store, all attempts to download adobe air fail. Does anyone have a fix????

    I'm assuming you have one of the MBP's with a discrete GPU? If so, there is a known issue with Adobe Air and MBPs with discrete GPUs. In order to get Air-related things to run without crashing, you must go to:
    System Preferences > Energy Saver
    From there, uncheck "Automatic Graphics Switching."
    Adobe Air should now work properly.

  • Accessing AIR API from loaded SWFs

    I am relatively new to AIR development and I can't get my head a round a little issue. I have an AIR application created in Flash CS5 that is just a shell that loads modules on demand, those modules are just SWF.
    I would like to access the AIR API directly from the classes of those SWF but of course they don't compile because in the publish settings they are just exported for Flash player 10 and don't see the AIR API. I tried adding airglobal.swc to the library hoping it would sort out the compiling problem but it doesn't and it generates many errors.
    I use to develop with MDM ZInc and I would just import the MDM SWC in any classes that would want access the MDM API, I am unsure how to proceed with AIR.
    Any help would be appreciated.
    Calwen

    Hi Calwen,
    here is basic sample how you could achieve that. Note: I'm using mxml syntax and components - but the *KEY* is api use of LoaderContext - not what real components are used to model UI.
    Say I have host:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/mx"
                                creationComplete="creationCompleteHandler(event)">
         <fx:Script>
              <![CDATA[
                   import mx.events.FlexEvent;
                   protected function creationCompleteHandler(event:FlexEvent):void
                        var loaderContext:LoaderContext = new LoaderContext();
                        loaderContext.allowCodeImport = true;
                        swfLoader.loaderContext = loaderContext;
                        swfLoader.load("app:/MyLoadedApp.swf");
              ]]>
         </fx:Script>
         <s:SWFLoader id="swfLoader" width="100%" height="100%"/>
    </s:WindowedApplication>
    MyLoadedApp is not created with air SDK at all - it is just flash.display.Sprite movie clip created with any compatible Flash compiler:
    package
         import flash.display.Sprite;
         import flash.events.*;
         import flash.text.TextField;
         import flash.utils.getDefinitionByName;
         public class MyLoadedApp extends Sprite
              public function MyLoadedApp()
                   addEventListener(Event.ADDED_TO_STAGE, initApp);
              protected function initApp(addedToStageEvent:Event):void
                   removeEventListener(Event.ADDED_TO_STAGE, initApp);
                   var clazz:Class = flash.utils.getDefinitionByName("flash.filesystem.File") as Class;
                   if(clazz)
                        // we could read documents directory (File.documentsDirectory) using class access
                        var directory:Object = clazz.documentsDirectory;
                        try
                             // and we could show browse dialog (now we are using instance - not class)
                             directory.addEventListener(Event.SELECT, directorySelectedHandler);
                             directory.browseForDirectory("Please select directory");
                        } catch (error:Error)
                             // handle error
                             var errorText:TextField = new TextField();
                             errorText.autoSize = "left";
                             errorText.text = error.message;
                             addChild(errorText);
              protected function directorySelectedHandler(selectEvent:Event):void
                   var directory:Object = selectEvent.target;
                   var files:Array = directory.getDirectoryListing();
                   var resultsTextField:TextField = new TextField();
                   resultsTextField.autoSize = "left";
                   resultsTextField.multiline = true;
                   resultsTextField.appendText(selectEvent.type+":\n");
                   for(var i:uint = 0; i < files.length; i++)
                        resultsTextField.appendText(files[i].name+"\n");
                   addChild(resultsTextField);
    This is not safe at all and loaded module can do everything I think (we talk about local modules from app storage, like in Zinc, right?)
    kind regards,
    Peter

  • Air memory leak?

    I have an application that runs all the time and listens to a blazeds channel as a consumer. When it gets a message, it draws some graphs, then captures those as byte arrays and sends them to the server to be saved as png files.  However it keeps crashing after running for several hours, sometimes more than a day.
    The app erases all of the charts which are drawn each time a new message is received.  This is done, via removeAllChildren().  From what I've read, adding and removing children may cause memory problems in AIR.  Is this true?  And if so, how can I get around it?  If not, what could be causing the problem?  Here is a screenshot of the console error for when the app crashes (I'm using Mac OS 10.5, Sentinel is the name of the application in the log):

    Well, System.gc doesn't work.  Does anyone have any ideas about how to fix this?

  • Adobe air download error loader configuration

    Trying to download free trial of
    Download a free trial of Acrobat XI Pro
    on my Macbook Pro (10.9.4)
    i'm getting :
    Sorry, an error has occurred.  This application cannot be installed because this installer has been mis-configured.  Please contact the application author for assistance.

    uninstall any old versions of acrobat/reader and then clean, Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs
    then try installing.

  • [advance question] loading a swf in adobe Air, which loads an image with "componentloader"

    Good evening all,
    I think this is a complex issue.
    I have adobe air application which loads a SWF I made.
    Inside this SWF I have used the "component LOADER" to load
    something with "ContentPath=image.jpg" for example.
    But the swf loaded in the Adobe air works, but does not load
    the "ContentPath image"...
    (it does load and display it when it this swf is run outside
    adobe Air)
    I need it to be dynamic like this, so if eventually I Include
    it in the package it won't help much...
    I just intend to replace an image background from this loaded
    swf file!
    Thanks!
    Edit:
    At this time of the editing, I fear and realize
    something....I have been using Actionscript2 for the .SWF file,
    could it be why it does not works???
    If its problematic, is there a simple way like telling it to
    read actionscript2, rather than transforming everything??
    edit2:
    I found this on the official AIR FAQ:
    Will Flash version 8 and below SWF files run in Adobe AIR?
    Yes. However, the Adobe AIR APIs are only exposed to Flash
    content via ActionScript 3 / AVM2, and thus Flash 8 / AVM1 SWFs
    will be able to run, but they will not have direct access to the
    Adobe AIR APIs.
    source:
    source
    faq Adobe
    it seems it should works!!??
    Edit3:
    nope I confirm at least some code made in Actionscript2
    works.
    I am sure this code needed to be changed for working in
    actionscript3, so "actionscript2" code works in Adobe Air.
    The problem of not loading my image must come from something
    else!!??

    Good Morning all!
    Hilarious....
    I tried so much to think maybe Adobe Air does not like a SWF
    using actionscript2, or it does not load any "external image from a
    swf", etc...
    None of that!
    I just in FLASH in the ComponentLoader....I did put simply
    the ContentPath at "myimage.jpg"....
    Of course I had to use the absolute path like
    "c:\\myfolder\\myimage.jpg"
    Of course aswell it works now!!!

  • Adobe Air won't install on android device.

    Just got a android phone to develop air apps on and guess what, the Adobe Air won't load.
    The phone (Virgin Mobile Optimus V = Mid-Tex Cellular LGE VM670) was just released.
    Does Adobe Air have minimum specs that have to be followed?
    Does the Adobe Air app have to updated with my phone to allow access on the android market .
    Some Air apps will show my phone, on others air apps do not (device ghosted) Including Adobe Air.
    Thanks

    I found this minimun specs:
    Android devices
    Google Android™ 2.2 operating system
    ARMv7-A processor with vector FPU
    OpenGL ES 2
    H.264 and AAC hardware decoders
    256MB of RAM
    The Optimus V has OS 2.2 and enough ram.
    Have to check the rest of the specs.
    The screen res is 320x480 and the processor is slow but has a gpu.
    I was surprised to see only 5 manufacturers certifided for Adobe Air Runtimes!
    There might be 50 manufacturers world wide making android devices.
    You would think the software would cater to the lowest common denomminator = minimun specs.
    I don't mind needing top of the line specs, that's OK makes sense, But not being able to sell an app
    because the manufacturer has not been certifided makes no sense.
    All manufacturers should have a top of the line device that meets the minimun spec.
    It limits your market.
    Sorry for the rant,
    want to buy a phone. Mint!

  • Adobe Air problem - Please assist?

    4 days ago on start-up I had a message that update was required for Adobe Air so I let it install.  Yesterday I noted my websites were missing graphics, videos on You tube not playing etc,  so I restarted computer and had message on start up re ADOBE AIR saying "The installation of this application is damaged - Try reinstalling or contacting publisher for help".
    As the latter is not an existing option as they say "no help with Air just look at forums for assistance"  this very non technical pensioner is asking for help as I have tried to do what I know by uninstalling and reinstalling THREE times now and still het the message and when I try to get into google it now tells me my profile cannot be used it belongs to a newer version - dont have a clue what I can do for this so any simple advice would be appreciated. 
    To be honest I dont even know if putting this is the right place but nothing anywhere seems to relate to problems with Air.  If I should be asking elsewhere perhaps somebody could point me in that direction as would hate a major problem as because of disability my computer my lifeline.
    Thank you.

    Thank you - apologies for delay with my health I have up and down days and the bad ones have my fingers refuse to behave on here.   I have to have Adobe Air installed for our BBC catch up TV programme BBC I Player The other day on switch on i had a message that adobe air needed to load a new version which is v  3.30.3650 and so i set it to run,  then 2 days later I start getting the message above that the application is damaged so i take it off and re-install.  while it was off I checked my bbc i player app and found the videos were pixelating then when I reinstalled the pixelating had stopped.  Im operating a fairly new desktop vaio on windows 7.  I have taken the system back up to 3 weeks now way before the air update when the problem started but its still happening, telling me its damaged, remove and re-install I feel like Im in Groundhog Day every morning!
    So anyone who can help would be like an angel.  Thanks

Maybe you are looking for