Flex :: Spot Memory Leaks In Profiler?

Jul 20, 2009

I have an AIR/Flex app I made, I have a few people testing it and everyone is reporting that after leaving it running for a while, it is making all there machines run very slow. It runs fine at first so this must be a memory leak somewhere. I used the profiler on this and the only thing that shows as using a substantial amount of memory is MethodQueueElement which is not a class I wrote, and I have no idea what it does, I am assuming its part of the Flex framework. I am not familiar with using a profiler so I am not sure what all I shuld be looking at, that was the only class that was high on "memory" and it said it had over 100,000 instances. If this is my problem what can I do to fix it?

View 1 Replies


Similar Posts:


Flex :: Detect Memory Leaks In Flash?

Feb 11, 2010

How do you know if your compiled SWF file has a memory leak?

Are there tools, a firebug setting, etc... to see if there is a problem? I cannot find much in the debug Flash player besides file size and loading time.

I have a large Flash application that I maintain and suspect that is using way too much memory so I wanted to measure the amount of RAM being used while it executes to find key areas to optimize.

View 3 Replies

Flex :: Track Down Memory Leaks In The Application?

Feb 14, 2011

I've been trying to track down memory leaks in our application, and keep finding myself back looking at Spark components as the culprit.

Many classes in Spark use RichEditableText for displaying their text properties (ComboBox,TextInput).RichEditableText has a local textContainerManager property, and frequently calls compose() on this.Here's the relevant abridged extract from TextContainerManager

// Line 282 - 292:
static private var stringFactoryDictionary:Dictionary = new Dictionary(true);
static private function inputManagerStringFactory(config:IConfiguration):StringTextLineFactory
{

[code]...

Line 1242 is the crucial line here, as it gives the static dictionary a reference to our component.(Note - I've checked this with the debugger to confirm which branch of the ternary gets executed.) This would prevent the instance from ever being garbage collected.

Eg: Static dictionary has a value with a reference to the instance -- instance cannot be GC'd.In turn, this would prevent any other instances which have a reference to the instance of TextContainerManager from being GC'd also.While this theory certainly matches what I'm seeing in our app, I can't beleive that there really is a memory leak in such a low-level spark component.

View 1 Replies

Flex :: Cairgrom ModuleLoader Memory Leaks?

Mar 23, 2012

I also found this topic but it doesn't fix my problem other topicI have a module loader that load other swc's but when I look at the memory off the application it seems that each time a module gets loaded the previous module doesn't get unloaded and so the memory increases..

This is how I load the modules:
<module:ModuleViewLoader id="moduleViewLoader" moduleManager="{presenter.deviceModuleManager}"

[code].....

View 1 Replies

ActionScript 3.0 :: Identifying Memory Leaks?

Feb 23, 2007

I have an AS3 application which seems to be leaking memory slowly while running. I've been looking for a profiler for Flex 2 / AS3 and haven't been able to find one yet, in fact I saw posts from people at Adobe saying they were working on it but no release in the short term!

Does anyone have any more news on this, or more usefully have any information on a profiler or other way it is possible to find memory allocation and usage during runtime of an AS3 application? It would really help me to identify what areas of my application are leaking memory.

View 4 Replies

ActionScript 3.0 :: Memory Leaks Eventlisteners And New Sounds?

Oct 13, 2010

Memory leaks eventlisteners and new sounds. I have written up a media player code, which does what it is supposed to do, but the System.totalMemory steadily increases with time.My code essentially consists of nested calls using EvenListeners that trigger initiation of new sounds. I call up mp3 files that load and start play and on EventCOMPLETE load the next file Example of code snippet:

ActionScript Code:

function LoadNextTheme(e:Event = null):void // set next theme
{
if (A_play)  {

[code]....

What parts of this kind of code keeps adding to total system memory?And how can I best stop that leak?

View 1 Replies

ActionScript 3.0 :: Unexplainable String Memory Leaks?

Dec 23, 2010

I developed a game in AS2, and got a decent sponsorship deal, but I had to convert it to AS3 for them. I've been working my way through and it's pretty much done, but I've found I'm getting big memory leaks. I'm not sure if they were there in the AS2 version, but I need to clear them out in either case. I couldnt get the flex/flash builder 4 profiler to work, but I did manage to get this profiler working: (ok I can't post links, but put flashpreloadprofiler into google and you'll find it)

It does seem useful for working out where all the memory is being allocated. It lists "String" as a large contributing factor, and I've narrowed half of that down to this one simple function, and I can't understand why it would cause memory leaks. I wrote a function to check if a movieclip exists on stage, in order to then do things like hittest against it without errors if it doesn't exist. Here's the function:

[Code]...

View 3 Replies

ActionScript 3.0 :: Memory Leaks Eventlisteners And New Sounds

Oct 13, 2010

Memory leaks eventlisteners and new sounds.I have written up a media player code, which does what it is supposed to do, but the System.totalMemory steadily increases with time.My code essentially consists of nested calls using EvenListeners that trigger initiation of new sounds. I call up mp3 files that load and start play and on EventCOMPLETE load the next file.[code]What parts of this kind of code keeps adding to total systemmemory?

View 3 Replies

ActionScript 2.0 :: Memory Leaks When Loading In External Swfs

Dec 8, 2009

I have a problem in that i have a holder swf which loads in other swf's externally. My problem is that the holder loads all the movies in correctly but the memory usage of the swf just keeps going up and up even though i am trying to remove the movieclip after each has finished it's run.

[Code]..

View 0 Replies

ActionScript 2.0 :: Memory Leaks In Loading / Unloading Pictures

Nov 15, 2011

I load image from url like this
Code:
imageholder = this.attachMovie("imageholder", "image", this.getNextHighestDepth());
imageholder.swapDepths(selectMenu);
loader.loadClip(uri, imageholder.bigImage_mc);
this== root, imageholder is MC that contains empty MC named bigImage_mc, selectMenu needs to be in front of loaded image (2nd line) and loader is MovieClipLoader()

Image is unloaded and removed like this
Code:
loader.unloadClip(imageholder.bigImage_mc);
imageholder.swapDepths(selectMenu);
removeMovieClip(imageholder);
but when I unload image it doesn't free any memory, and when i load new image it increase memory usage...

I even tried
Code:
System.gc();
System.gc();
after removeMovieClip(); as I found this on some website... but with no improvement

View 3 Replies

ActionScript 3.0 :: Garbage Collecting - Make Sure There Are No Memory Leaks?

Feb 9, 2010

What's necessary to do when removing an object to make sure there are no memory leaks? Do you have to remove all children? Or just remove all event listeners? Or both?

View 1 Replies

Flash :: ActionScript 3 Profiler & Memory Analysis Tool

Dec 9, 2009

I'm using Adobe Flash CS 4 and would like to know are there any profiler or memory analysis tools available for it ? (actionscript 3). I know there are available tools for Flex, but are there for Flash CS 4 instead?

View 3 Replies

Flash :: Builder 4.5 Profiler Not Finding Memory Leak?

Oct 11, 2011

I'm working with a large modular app, and most of the swfs were made in Flash Professional. When I load the app in the Flash Builder Profiler, the memory usage appropriately goes up and down as I add and remove modules. When I flip between two modules many times, I end up with the current memory in the Profiler more or less where I started at around 2 megs. System.totalMemory, however, shows that the flash player has only been allocating memory and is currently using 106 megs. Is there a certain bug known to do this, or is there a better way to detect memory leaks? I'm using the latest flash player debug version.

Note: The SWF modules are all permitting debugging, and the Profiler picks up objects in them.

View 1 Replies

ActionScript 3.0 :: Loading / Unloading External SWF - Prevent Memory Leaks

Sep 19, 2011

Im creating a flash projector which has a holder swf with an empty movieclip. A series of external SWFs are loaded into the empty movieclip on the push of a button. Once the clip has been loaded, other external SWFs can be replaced in the empty movieclip at the push of a button. As memory leaks and garbage collection seem to be an issue, I was wondering the most memory efficient way of loading, unloading and replacing these external swfs so that memory leaks are kept to an absolute minimum.

View 1 Replies

ActionScript 3.0 :: Memory Leaks - Variable Reference Inside A Function Or Outside It?

Mar 11, 2009

I wonder what the most common reasons for memory leaks in AS3 are.First thing what I am not sure about is: is it better to have a variable reference inside a function or outside it. Will the variable be null-d automaticly inside a function or when do I have to null it and when not?I have massive problems with my game with memory leaks. I noticed I reference some of the clips of the timeline even inside my debugging clip to display propertys and this was causing collecting huge amount of memory.But even before I go into the game with bigger objects the System.memory is slowly growing and growing.I just have a socket connection and some interval loops and enter_frame events.

View 5 Replies

Differences Between FDT Profiler And Flash Builder Profiler?

May 12, 2011

I'm currently hunting a memory leak related to XML objects. FDT's profiler shows results that match my expectations while Adobe's profiler doesn't show any XML objects at all.

Are there any differences between Adobe's profiler that comes with Flash Builder and FDT's profiler or is that a configuration issue?

View 1 Replies

Flex :: Profiler Doesn't Do Anything?

Mar 1, 2010

My Flex application has some memory problems which I'd like to find using the profiler. However, when I run the profiler from Flex Builder, nothing happens. The appication is run the regular way, but nothing is profiled. The Profiling perspective doesn't event open, and when I open the Profiling perspective, no memory usage is displayed.
Can anyone help me out here?

View 1 Replies

Flex :: Find A Bandwidth Profiler

Mar 21, 2010

I was trying to find a bandwidth profiler in flex like there used to be one in Flash but couldn't really find one. Is there a way, that I can do bandwidth profiling of my local swf?I'm using Flex Bulider with a AS3 project.

View 2 Replies

ActionScript 3.0 :: Use The Flex Profiler On A Live Project?

Nov 17, 2009

... by which I mean a project that's sitting on a web server somewhere.

View 1 Replies

ActionScript 3.0 :: Translating A FlashDevelop Project Into Flex For Use With The Profiler?

Nov 17, 2009

I'm having trouble; the Facebook API that I'm using throws a whole bunch of errors where it has [Bindable] and such. I'm a bit stuck.

View 6 Replies

Flex4 :: Does Flash Builder 4 Profiler Work With Flex 4.5 Project?

May 17, 2011

I'm trying to use the Profiler for the first time so I don't know much about it. But it doesn't seem to work.I run my project under profiler, it says it is running, but no window shows up. Nothing. I can see the project's icon down there but I see no window at all.Can this be cause by the fact that I'm using Flex 4.5? You can the app in the dock and it shows its live objects, but I don't see the apps' window and cannot interact with it. The app is just a simple 400x400 window with some black shapes in it.

View 2 Replies

Flex :: Hold And Continue FOR - LOOP From The Same Spot?

Sep 6, 2011

I got a for/foreach loop the calls a function inside of it. The prolem is that the function being-called doesnt fininsh it's job before the loop goes over again/ Here is my code:

[Code].....

As you can see i want to add an item (notfriend) in MYFRIENDS unction, "notfriend" is defined inside the loop, but by the time "MYFRIENDS" function finish loading the item already changes to the next item even though i was originally refering to the previous item. Is there a way to maybe hold the FORloop until "myfriends" function finish loading.

I wanted to use Eventlistener on "myfriends" function , but then what do i do to stophold the loop? all i know is BREAK-which destroyes the FOR-LOOP and CONTINUE-which continue the loop from the next iterate.

View 2 Replies

Flex :: Flash - Total Memory Usage And TaskManager Memory Usage Are Different?

Aug 24, 2010

I wrote an application in flash AS3, and when I trace from flash the total memory usage of the total application is only about 9MB, But at the same time Task Manager Shows the memory usage as 110MB. Around 100MB difference.Flash Trace Method System.totalMemory difference of the Trace from the Beginning of the application to end of the application.

View 2 Replies

ActionScript 3.0 :: StageHeight Bug With Bandwidth Profiler?

Mar 16, 2010

I just noticed a workaround something that's been annoying me for a long time. Occasionally my projects vertically line up funny if clip y-coords or heights are based on frame 1 stageHeight. I always thought it was a load-time duration or something like that, but it turns out to be bandwidth profiler (CS4 authoring). Try this on frame 1 of a new, empty project:
 
this.addEventListener(Event.ENTER_FRAME, this.entf); function entf(evt:Event):void{ trace(this.stage.stageHeight); }
 
When bandwidth profiler is on, the first frame reports -100 the real stageHeight. Now to avoid the problem I just turn off bandwidth profiler. Is it just a bug?

View 2 Replies

Professional :: Lag / Bandwith Profiler Cs5 Change?

Apr 11, 2011

Making a simple demonstration with three buttons which gotoAndStop on 3 different frames using AS3.  Have done this lots of time with CS4 without issue.  When I publish/preview my work and load the .swf it is blank for a split second and then loads frame 1 of my timeline (but says it is on frame 2 of my movie - in the bandwith profiler).  When I try to look at the bandwith profiler it shows my page 1 as page 2, and when I click around the buttons my flash file does load the different frames correctly, but doesn't display them on the bandwith profiler - everything just stays on frame 2. Every time I try to drag the slider back to frame 1 it plays to frame 2.  Everything should be on frame 1.

Can someone tell me what I am doing wrong, or what I need to do for instantanous loading of content (this is very very light content, should be immediate) and how I get my bandwith profiler to show the navigation to different frames as I click around? Tried to look and find scenes - can't find that dialog either, did they ditch it?  Am I running into this new built in preloader?  How can I disable it?

View 1 Replies

Actionscript 3 :: Greensock LoaderMax Memory - Clean The Memory Which Been Occupied By The Previous Queue

Jan 31, 2012

I have a bit trouble with LoaderMax memory occupy, i have a queue, and i am keep loading images depend on user's action. if they click load more and it keep load, but i would like to clean the memory which been occupied by the previous queue (i have remove all the children been added by the loading previously). is there a way i can do it? the behavior like this.

[Code]...

View 1 Replies

IDE :: Bandwidth Profiler :: Show What Is Loading In Any Given Frame?

Jan 11, 2010

I have made a preloader that is in the same swf as my main Movie.I went and set all my linked movieclips to *not* export in the first frame.However, I seem to still have quite a bit loading in my first frame (64kB) and I can't quite figure out what it is? The only movieclips I have set to export in my first frame is my preloader movieclips ("container" and "preload bar") both of which are simple shapes I made in flash.

View 1 Replies

ActionScript 3.0 :: Memory Monitor That Allows To See The Memory Leaked And Find Its Location?

Sep 26, 2010

I have an FPS monitor running and notice that I am getting choppiness here and there, bringing my game from 40 to 27 fps and back and forth at certain stages. I have an idea of where it is happening, but do not know for sure. I looked up quite a few memory monitors but haven't found anything decent yet. Is there a memory monitor that allows you to see the memory leaked and find its location? If not, how about just he memory leaked?

View 4 Replies

Flex :: Removing Flex DisplayObjects From View AND Memory Pool

Feb 15, 2011

There is a Flex app with 7 main views. And there is a memory issue when navigating between views.All these views were in a ViewStack, but due to some involving 3D objects I assumed it was too much to have it all in the display list. I'm now clearing all children from the stack and adding/removing them when needed. This gave a small performance increase, but still becomes unresponsive with use. The strange thing is, with this and the original method, the CPU climbs with use but eventually levels out somewhere. Now I'm creating new instances of each screen when they are navigated to and setting the previous variable to null. Now it looks like CPU is spiking when the view is created, but leveling out to something much much lower than it was. This felt like progress, but now the available memory keeps climbing where it wasn't before....

My understanding was calling remove child or remove all children would mark the object for deletion when the garbage collector next ran. I can't see any other references to the instance. My code is along the lines of [code]I have a function for each button to add a new instance like the above.The only thing I can see and feel silly asking but need confirmation, is each view extends a class called "Screen", this class contains a singleton reference to some core components.[code]Would this trick the garbage collector into thinking it was still needed? General advice on clearing Objects from the memory pool would awesome!!! I've never needed to analyze the Flash Player in such depth.I think it's an error with sound drivers, removing all sound and shes purring like a kitten. Works on my machine fine with windows XP, but not on the touch pad the application is crashing on with windows 7 (unsure of the drivers looking into them now) Now I'm thinking its not the drivers, tried 3 different versions, all with no improvement. I did discover the sound was fading in and out with the TweenLite lib. Doesn't look like there are any memory leaks in TweenLite as it works fine on other machines. Just the use of volumeEasingFunction seems to consume increasing amounts of CPU until it freaks out. It is crappy hardware running windows 7, which doesn't help.

View 1 Replies

Flex - Can't Find Huge Memory Leak In A Flex 4.6 Web Application?

Mar 16, 2012

I have a Flex 4.6 web game which displays 2 Lists with virtual layouts with 2 custom item renderers. The renderers consist mainly of BitmapImages displaying user avatars + few Labels.

The Lists are being updated often over TCP socket with gzipped JSON data. I merge that data into 2 ArrayCollections serving as dataProviders for the Lists. This seems to work well, the Lists do not flicker and are updated correctly (I've monitored debug traces a lot to get it right).

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved