[confirm] - Possible memory leak with MPaudiorenderer

Discussion in 'MP 1.3.0 Beta & RC' started by Lichloathe, January 19, 2013.

  1. Lichloathe
    • Premium Supporter

    Lichloathe MP Donator

    Joined:
    July 25, 2007
    Messages:
    88
    Likes Received:
    46
    Gender:
    Male
    Ratings:
    +58 / 0
    Home Country:
    Australia Australia
    Show System Specs
    Ok, I have been using MP 1.3.0B for a while now and I was noticing a few crashes here and there with what looks like System.OutOfMemoryException errors. The other day I noticed that when I ended the mediaportal.exe process it had consumed 1.1GB of memory so that let me to do some tests.



    It seems that if I choose any renderer other that MPAudiorenderer (Reclock or Default) there doesn't seem to be any issues.

    As I write this I am doing another test watching a movie, with a few more plugins disabled, the memory usage in task manager continues to get larger.

    I have attached my logs from two days ago just after a System.OutOfMemoryException: error. At the time the process was using 1.1GB.

    I have tried different settings for MPAudiorenderer with no difference.

    Any help would be greatly appreciated.

    Please note, my TV doesn't handle 24Hz hence the need for MPAudiorenderer and I use AC3Encoding.
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,297
    Likes Received:
    6,249
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,270 / 9
    Home Country:
    France France
    Show System Specs
    It looks like a memory leak somewhere @tourettes any idea ? :)

    edit : Just read again the name of topic and i feel Idiot lol
     
    Last edited: January 19, 2013
    • Like Like x 1
  4. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    Have you tried disabling the AC3 encoding? Also does the leak seem to happen with all video files you are playing or just with some specific types of content?

    Has anyone else seen anything that could point to a memory leak direction in MediaPortal Audio Renderer?
     
  5. Lichloathe
    • Premium Supporter

    Lichloathe MP Donator

    Joined:
    July 25, 2007
    Messages:
    88
    Likes Received:
    46
    Gender:
    Male
    Ratings:
    +58 / 0
    Home Country:
    Australia Australia
    Show System Specs
    G'day tourettes, thanks for looking at this.
    I have only been trying with 23.976hz mkv's so far. I'll try some other files when I get back home tonight.
    As far as I remember I did try with AC3 turned off but just to be sure I'll try again.
    Thanks
     
  6. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    I would say it is AC3 encoding related leak:

    Please try to confirm that the leak happens only with the AC3 encoding enabled. Odd that no one else has reported the issue earlier, in any case we need to fix that for 1.3.0 RC.
     
    • Like Like x 1
  7. Lichloathe
    • Premium Supporter

    Lichloathe MP Donator

    Joined:
    July 25, 2007
    Messages:
    88
    Likes Received:
    46
    Gender:
    Male
    Ratings:
    +58 / 0
    Home Country:
    Australia Australia
    Show System Specs
    I was thinking the same thing and was sure it was an issue with my system only. I'll check tonight for you, approx 5 hours time.
     
  8. Quarter
    • Super User

    Quarter Super User

    Joined:
    June 21, 2010
    Messages:
    722
    Likes Received:
    110
    Gender:
    Male
    Location:
    Queenstown
    Ratings:
    +141 / 2
    Home Country:
    New Zealand New Zealand
    Show System Specs
  9. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
  10. Lichloathe
    • Premium Supporter

    Lichloathe MP Donator

    Joined:
    July 25, 2007
    Messages:
    88
    Likes Received:
    46
    Gender:
    Male
    Ratings:
    +58 / 0
    Home Country:
    Australia Australia
    Show System Specs
    Ok, I have just tested a movie, 23.976hz mkv with AC3 encoding disabled, and yes it looks like there is still a memory issue (10MB rise in approx 7mins).
    I'll let it play through and check after the movie finishes, however I'll be catching some shut eye so I'll post logs etc in the morning if you need (timezone GMT+8) :sleep:
    Tomorrow I'll do some thorough testing and post more logs.
     
  11. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    Logs wont help - leaks can be fixed only if I'm able to reproduce those. With the AC3 encoding I was able to find two leaks which the memory allocation tracking was able to show.

    Minimal process memory rise / fluctuation is normal, especially for the managed (C#) applications where the garbage colletor wont instantly start to free the unused memory.

    I'll provide a fixed audio renderer soon (AC3 leak fix).
     
    • Like Like x 4
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!