User Tag List

Results 1 to 6 of 6

Thread: Memory Leak in FireFly ?

  1. #1
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    defisym's Avatar
    Join Date
    Jun 2017
    Location
    Asia
    Posts
    106
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Angry Memory Leak in FireFly ?

    I found this issue by accident.
    leak.mfa
    The example .MFA is based on firefly example : Basics - Splitscreen.
    Application.jpg
    Add a new event :
    Code:
    * timer > 2000
    	storyboard controls : Restart the application
    Sometimes people use this action to start a new game.
    Build the application (sorry but the .exe exceeds the limitation of .zip file size) and run it, then look into task manager :
    First run : about 20MB
    StartUP.png
    After restart several times : more than 110MB
    ForAWhile.png
    I have tried the same thing in a traditional 2D game without firefly , but did't notice any leak.
    So is this a bug, or there is something wrong with my settings?

  2. #2
    Clicker Fusion 2.5Android Export Module

    Join Date
    Sep 2010
    Posts
    538
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'm having the same problem. I even tried to destroy every object and remove every material from the cache object stop the firefly engine and then destroy it but it stills chews 150 mb of RAM and is increased every time I restart the frame or application. No idea what's causing it :-/

  3. #3
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    defisym's Avatar
    Join Date
    Jun 2017
    Location
    Asia
    Posts
    106
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I think it might because they forget to release some of allocated memory in DestroyRunObject() routine (like other extensions)...
    As we all know, 3D engine is much more complicated .......

  4. #4
    Clicker Fusion 2.5Android Export Module

    Join Date
    Sep 2010
    Posts
    538
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Weird thing is that I made a second frame, added a firefly engine, a camera and the character and did an event to stop the engine and destroy everything and then restart the frame...then I had no memory increase....I don't know what's going on there

  5. #5
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    defisym's Avatar
    Join Date
    Jun 2017
    Location
    Asia
    Posts
    106
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Klownzilla View Post
    Weird thing is that I made a second frame, added a firefly engine, a camera and the character and did an event to stop the engine and destroy everything and then restart the frame...then I had no memory increase....I don't know what's going on there
    I think the leak is mainly due to FireFly 2D Text Object, I still got a leak even I stop the engine and destroy everything. if remove it from the frame, although memory usage is still growing, but this time it grows very slow, about 0.1MB~0.3MB per restart.I think I can safely ignore it if grows in this rate.
    But......if you don't destroy everything you got, you still can see the leak, whether there is a 2D Text in frame or not.
    Please check this:
    leak_V2.mfa

  6. #6
    Clicker Fusion 2.5Android Export Module

    Join Date
    Sep 2010
    Posts
    538
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Interesting! I'll take a look at this tonight

Similar Threads

  1. Memory Leak?
    By Storsorgen in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 25th October 2013, 06:22 PM
  2. Memory leak fixed Ini++ v1.5
    By Jax in forum Released Extensions
    Replies: 8
    Last Post: 28th July 2013, 06:34 AM
  3. Bug - Memory leak with Sub-Apps
    By UrbanMonk in forum Hardware Accelerated Runtime
    Replies: 24
    Last Post: 22nd October 2009, 01:13 PM
  4. Memory leak?
    By Blue66 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd March 2009, 10:57 AM

Posting Permissions

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