Menu

#15 Memory leak

1.5
closed
None
2015-11-11
2015-11-07
No

I again have memory leak.
Xubuntu 15.10
r992 (from source) and r1006 (from .deb)
Even with empty project after several minutes swap (but not memory) starts to grow endless until total halt.

Related

Tickets: #15

Discussion

1 2 > >> (Page 1 of 2)
  • DJonsson

    DJonsson - 2015-11-07

    You can try backing up and the deleting the
    /home/[username]/.config/bhbn/GLMixer.conf file.

     
  • Oleg Yegorov

    Oleg Yegorov - 2015-11-08

    Well, on computer with r1052 it works fine.
    But on notebook with r1006 even after deletting GLMixer.conf file it still increases swap at speed 5-10 MB/sec.

     
  • DJonsson

    DJonsson - 2015-11-08

    Have you tried deleting /home/[username]/.config/bhbn/GLMixer.conf file?

    I've found in the past, that deleting GLMixer.conf sometimes cures the
    the sort of resource leak you describe.

     
  • DJonsson

    DJonsson - 2015-11-08

    Now having 1052r running

    Red 25%

    Can verify memory is high in the red with deleted conf and even when
    loaded with no session.

    Yellow 25 %

    Lowering my rendering to from 60+fps to 24fps, I get yellow at 25%

     
    • Bruno Herbelin

      Bruno Herbelin - 2015-11-08

      I am not sure I understand what these red and yellow stats mean : could you please elaborate?

       
  • Oleg Yegorov

    Oleg Yegorov - 2015-11-08

    Several reinstalls with conf deletting didn't help. Swap still fast grows. It happens on notebook with r1006. I cannot try r1052 (latest at this moment) because it still crashes on Intel grafics.
    On computer with NVidia grafics and r1052 everytings is OK.
    How can I help to find the reason?

     
    • Bruno Herbelin

      Bruno Herbelin - 2015-11-08

      You did help already : it seems related to the opengl drivers with intel, and how glmixer handles the textures.
      I have a stable program with nvidia desktop PC (1h playing with stable RAM, no swap) but it might be thanks to a particular feature of nvidia (how drivers handles memory for example) and not generic.

      Please send your glxinfo.

       
      • Oleg Yegorov

        Oleg Yegorov - 2015-11-08

        Sent it in 13th ticket.

         
  • DJonsson

    DJonsson - 2015-11-08

    Red and Yellow relate to the memory use/resource bar in GLMixer main mixer area.

    See attached

     
    • Bruno Herbelin

      Bruno Herbelin - 2015-11-08

      The bar on the corner indicates FPS and is shown if you request display of framerate (in preference) or as a warning if the FPS is lower than required (e.g. request 60 fps but get 30).

      Glmixer is not monitoring memory usage. This would be a good idea, but might be difficult :(...

       
      • DJonsson

        DJonsson - 2015-11-08

        Thanks for the reminder.

        RAM/CPU indicators for the Xubuntu/Ubuntu exist and solve the problem of
        watching resources. I've loaded one now and will correct my comments
        about ram leaks later with further testing.

        On 11/8/2015 12:25 PM, Bruno Herbelin wrote:

        The bar on the corner indicates FPS and is shown if you request
        display of framerate (in preference) or as a warning if the FPS is
        lower than required (e.g. request 60 fps but get 30).

        Glmixer is not monitoring memory usage. This would be a good idea, but
        might be difficult :(...


        [tickets:#15] http://sourceforge.net/p/glmixer/tickets/15/ Memory leak

        Status: open
        Milestone: 1.5
        Created: Sat Nov 07, 2015 07:22 PM UTC by Oleg Yegorov
        Last Updated: Sun Nov 08, 2015 10:59 AM UTC
        Owner: nobody

        I again have memory leak.
        Xubuntu 15.10
        r992 (from source) and r1006 (from .deb)
        Even with empty project after several minutes swap (but not memory)
        starts to grow endless until total halt.


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/glmixer/tickets/15/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Tickets: #15

  • Bruno Herbelin

    Bruno Herbelin - 2015-11-08
    • status: open --> accepted
    • assigned_to: Bruno Herbelin
     
  • Oleg Yegorov

    Oleg Yegorov - 2015-11-08

    I can run r1053 on ASUS K43E with Intel grafics.
    But several minutes after swap starts to grow as earlier.

     
  • Bruno Herbelin

    Bruno Herbelin - 2015-11-08

    Please compile r1055 in Debug : the program will automatically create a log file at runtime with detailed analysis of memory buffers used for reading video files.

    1. run glmixer without any video
    2. open a session or open video files
    3. close session
    4. wait a few seconds (to let time to finish log files)

    Then, open the CSV log file in your home directory (name is date and time of creation).
    The last line (if session was closed properly) should be zeros if no memory leaks when playing videos.

    (see example log : loading 1 session, closing session, waiting a little, open a file, delete source, wait a little).

     
  • Oleg Yegorov

    Oleg Yegorov - 2015-11-08

    r1055
    With video swap was encreasing. After closing session swap has stopped.

     
  • Bruno Herbelin

    Bruno Herbelin - 2015-11-09

    Thanks. Logs show that there is no apparently no memory leak when playing video. We can discard this hypothesis for now.

    Could you indicate what is in the session when it hapens?
    Could you show me how you measure the memory/swap consumption?

     
  • Oleg Yegorov

    Oleg Yegorov - 2015-11-09

    Ok. I can record video with my desktop. After work, 6-8 hours later.

     
  • Oleg Yegorov

    Oleg Yegorov - 2015-11-09

    Well, there's my session record. After 0:30 you can jump to 3:50.
    And one more: after closing GLMixer swap continues to grow but much, much slower...
    For experiment I'm going to reinstall my system.

     
  • Bruno Herbelin

    Bruno Herbelin - 2015-11-09

    Unbeleavable ! Really difficult to understand what is happening !!

    I just loaded 4 movies in 1 session and let it play for 10 minutes : RAM for process glmixer never exceeded 800MB. I also made a session with 2 photos with scratch mask, set to 26 FPS, just to do the same as you... its has been half hour since it started and nothing happens...

    I would suspect another process is waking up and doing this... Could you please run the system monitor to show per-process activity? or run top in a console ?

    if you confirm that glmixer process is the one extending its RAM usage without apparent reason, i would need full preference (~.config/bhbn folder) and session to try to reproduce it.

     
  • Oleg Yegorov

    Oleg Yegorov - 2015-11-09

    Second recording. Swap starts at 04:00.
    Even with an empty GLMixer session.
    Will reinstall system and test again.

     
  • Oleg Yegorov

    Oleg Yegorov - 2015-11-09

    Forgot to attach video =)

     
  • Oleg Yegorov

    Oleg Yegorov - 2015-11-09

    Tested on computer with NVidia - OK.
    Tested on notebook with fresh Xubuntu 15.10, without updates - OK.
    Will update system and carefully install some programs. With tests...

     
    • Bruno Herbelin

      Bruno Herbelin - 2015-11-10

      Your video shows glmixer use 1105948 VIRP at 0:38 and the same 5 minutes
      later 1104084 at 5:32. The memory consumption is not inside the glmixer
      process.

      What I can imagine though is a problem in the opengl drivers (it wouldn't
      have been noticed because programs rarely use many PBOs and FBOs as glmixer
      does, except maybe big 3D games). Xorg process seems to be quite RAM hungry
      you might want to watch it closely.

      upon reinstall, make sure you note which version of graphics drivers and
      kernel modules you use.

      Good luck.

      On Mon, Nov 9, 2015 at 10:05 PM, Oleg Yegorov olegorov@users.sf.net wrote:

      Tested on computer with NVidia - OK.
      Tested on notebook with fresh Xubuntu 15.10, without updates - OK.
      Will update system and carefully install some programs. With tests...


      Status: accepted
      Milestone: 1.5
      Created: Sat Nov 07, 2015 07:22 PM UTC by Oleg Yegorov
      Last Updated: Mon Nov 09, 2015 08:17 PM UTC
      Owner: Bruno Herbelin

      I again have memory leak.
      Xubuntu 15.10
      r992 (from source) and r1006 (from .deb)
      Even with empty project after several minutes swap (but not memory) starts
      to grow endless until total halt.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/glmixer/tickets/15/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Bruno Herbelin, Ph.D.
      EPFL Center for Neuroprosthetics
      Campus Biotech, H4.
      Chemin des Mines, 9
      CH-1202 Genève

      mobile: +41 79 398 10 17
      office: +41 21 693 06 95

      http://cnp.epfl.ch

       

      Related

      Tickets: #15

      • DJonsson

        DJonsson - 2015-11-10

        Later this week, I'll be able to test this on 15.10.

        Maybe related or not - I've noticed turning off Network LAN/Wifi,
        and closing all other apps does increase the stability of
        GLMixer, especially when pushing the application with
        non-compressed lossless material.

        Networking on with Browsers open on multiple tabs
        have been a repeatable scenario for a lockup or crash.

        Perhaps it goes without saying and it might be explored in live performance
        (mission critical) situations to temporarily shut down as many
        background services as possible, ie.. Samba, PulseAudio, Network/Wifi,
        Sane...

        On 11/10/2015 9:11 AM, Bruno Herbelin wrote:

        Your video shows glmixer use 1105948 VIRP at 0:38 and the same 5 minutes
        later 1104084 at 5:32. The memory consumption is not inside the glmixer
        process.

        What I can imagine though is a problem in the opengl drivers (it wouldn't
        have been noticed because programs rarely use many PBOs and FBOs as
        glmixer
        does, except maybe big 3D games). Xorg process seems to be quite RAM
        hungry
        you might want to watch it closely.

        upon reinstall, make sure you note which version of graphics drivers and
        kernel modules you use.

        Good luck.

        On Mon, Nov 9, 2015 at 10:05 PM, Oleg Yegorov olegorov@users.sf.net
        olegorov@users.sf.net wrote:

        Tested on computer with NVidia - OK.
        Tested on notebook with fresh Xubuntu 15.10, without updates - OK.
        Will update system and carefully install some programs. With tests...
        
        ------------------------------------------------------------------------
        
          * [tickets:#15] <http://sourceforge.net/p/glmixer/tickets/15/>
            http://sourceforge.net/p/glmixer/tickets/15/ Memory leak*
        
        /Status:/ accepted
        /Milestone:/ 1.5
        /Created:/ Sat Nov 07, 2015 07:22 PM UTC by Oleg Yegorov
        /Last Updated:/ Mon Nov 09, 2015 08:17 PM UTC
        /Owner:/ Bruno Herbelin
        
        I again have memory leak.
        Xubuntu 15.10
        r992 (from source) and r1006 (from .deb)
        Even with empty project after several minutes swap (but not
        memory) starts
        to grow endless until total halt.
        
        ------------------------------------------------------------------------
        
        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/glmixer/tickets/15/
        
        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/
        

        --
        Bruno Herbelin, Ph.D.
        EPFL Center for Neuroprosthetics
        Campus Biotech, H4.
        Chemin des Mines, 9
        CH-1202 Genève

        mobile: +41 79 398 10 17
        office: +41 21 693 06 95

        http://cnp.epfl.ch


        [tickets:#15] http://sourceforge.net/p/glmixer/tickets/15/ Memory leak

        Status: accepted
        Milestone: 1.5
        Created: Sat Nov 07, 2015 07:22 PM UTC by Oleg Yegorov
        Last Updated: Tue Nov 10, 2015 05:01 AM UTC
        Owner: Bruno Herbelin

        I again have memory leak.
        Xubuntu 15.10
        r992 (from source) and r1006 (from .deb)
        Even with empty project after several minutes swap (but not memory)
        starts to grow endless until total halt.


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/glmixer/tickets/15/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Tickets: #15

  • Oleg Yegorov

    Oleg Yegorov - 2015-11-09

    Almost all programs are back. Everything is OK. I don't know what it was =)
    I'll take laptop at work tomorrow and continue tests.

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB