WEB Memory Leak in .swf file

Discussion in 'OT Technology' started by Azazel28, Mar 19, 2009.

  1. Azazel28

    Azazel28 New Member

    Joined:
    Apr 23, 2006
    Messages:
    1,455
    Likes Received:
    0
    Location:
    Maricopa, AZ
    Is anyone here pretty proficient in flash?

    I have an issue with a memory leak and for the life of me I can not figure out what exactly is the issue here. I have a both a CS3 and a CS4 version of the .fla and neither publications solve the issue (I debugged as much as I could).

    To create some of the smooth transitions I am using a plugin for flash called flasheff, however it was the first thing I believed was causing the issue (even though I have used it numerous times in the past for smaller projects). After deleting the plugin for the library, I then republished the swf file and still had the same memory leak (however the leak was slighly slower, but after 15-20 minutes your browser would quickly increase to using up 200+ Megabyes of Vitural Memory, even though it starts using 60MB). Their is minimal AS, most of the animations were either manually tweened or done using the plugin. The AS is in the preloader and the navigation..primarily.

    After about an hour it will eventually crash your browser. I know the majority of the people are not going to be playing it for any hour or so, but individuals have already contacted me about this issue.

    If anyone might be able to take a look at my .fla file I would really appreciate it.
     
  2. MikeTheVike1

    MikeTheVike1 OT Supporter

    Joined:
    Aug 29, 2002
    Messages:
    5,840
    Likes Received:
    0
    I could look at it on Monday, but I don't have Flash at home.
     
  3. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    send me a link.
     
  4. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
  5. Azazel28

    Azazel28 New Member

    Joined:
    Apr 23, 2006
    Messages:
    1,455
    Likes Received:
    0
    Location:
    Maricopa, AZ
    I appreciate it guys.
     
  6. Ender0910

    Ender0910 woot!

    Joined:
    Jun 1, 2004
    Messages:
    3,039
    Likes Received:
    0
    Location:
    Redmond/Bay Area
    Get FlexBuilder 3 which has a nice profiling tool which can help you locate leaks
     
  7. Azazel28

    Azazel28 New Member

    Joined:
    Apr 23, 2006
    Messages:
    1,455
    Likes Received:
    0
    Location:
    Maricopa, AZ
    I will look into that, thanks.
     
  8. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    worked on this for an hour tonight, its definitatelty inside the mainmc.mc. I will figure it out.
     
  9. intrktevo

    intrktevo New Member

    Joined:
    Oct 18, 2004
    Messages:
    5,781
    Likes Received:
    0
    Location:
    UCF
    i'll have to look into this. been using flex a ton at work lately
     
  10. Azazel28

    Azazel28 New Member

    Joined:
    Apr 23, 2006
    Messages:
    1,455
    Likes Received:
    0
    Location:
    Maricopa, AZ
    That is pretty much the main conclusion I came up with as well, I just couldn't freaking find it. I don't know if it is because of how I nested the files or what.
     
  11. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    why dont you load the jpegs using the loader component. Same timeline, same length, same size, but, i KNOW that a blank frame after the loader component will unload the jpg from memory.
    Its like the jpgs inside the mainmc are not unloading from mem. I tried removing and rebuilding the masks etc and nothing.
    I removed all the effects plugins and those had no affect on the mem as well or the buttons, they arent the issue.
    If i get angry enough im gonna fucking rebuilt the entire mc LOL
     
  12. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    i will fix this, its pissing me off now.
     
  13. Azazel28

    Azazel28 New Member

    Joined:
    Apr 23, 2006
    Messages:
    1,455
    Likes Received:
    0
    Location:
    Maricopa, AZ
    LoL, Don't waste all your time man. It would make me feel bad. I spent about 20+ hours trying to isolate it as well as figure out WTF is going on....I was confused as all bloody fuck.

    I do hope you find out what exactly is the problem, so I know what "not to do" on my next flash project.
     
  14. Azazel28

    Azazel28 New Member

    Joined:
    Apr 23, 2006
    Messages:
    1,455
    Likes Received:
    0
    Location:
    Maricopa, AZ
    Any new news from the front lines of battle with this memory leak?
     
  15. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    Ok, I cant expend anymore time on this.
    Rebuild your mainmc transitions using the loader component and no masks.
    For some strange reason its not unloading the images from memory even though the frames end and they restart.
    The flasheff effects arent causing them so those arent the worry.\
     
  16. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    Sorry bro, no matter what happens that mainmovie needs to be rebuilt and either I do it or your bro does it and I just dont have it in me to do it this evening.
     
  17. Azazel28

    Azazel28 New Member

    Joined:
    Apr 23, 2006
    Messages:
    1,455
    Likes Received:
    0
    Location:
    Maricopa, AZ
    I appreciate all your help, I will see if I can get some free time to rebuild this thing...figure out why in the hell the mainMC just won't unload those damn images.
     

Share This Page