Memory leak in MPC HC codec? | Page 3

Discussion in 'Codecs, External Players' started by damaster, February 11, 2009.

  1. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    Ok, that pretty much confirms that this is a codec side leak. MP doesn't do anything different when HW acceleration is on.



    I'll move to some generic area.

    Windows Media Player :) That will play as long as you have haali splitter installed and most likely you do as MediaPortal is able to play .mkv files.
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. damaster

    damaster Portal Pro

    Joined:
    November 23, 2007
    Messages:
    412
    Likes Received:
    35
    Ratings:
    +35 / 0
    Home Country:
    Canada Canada
    As I suspected. Interestingly enough the changelog for version 1.1.604.0 of MPC-HC shows the following bug fix:
    - Memory leak in DXVA decoder (bug #1962448)

    I guess it wasn't fixed entirely.

    Thanks.

    I tried MPC-HC and Windows Media Player and even Windows Media Center. The MKVs didn't even show up in Media Center, and in MPC-HC/WMP they just wouldn't play for some strange reason. It was getting late last night and I didn't debug further. I'll try again tonight and see if I can reproduce it, but it seems moot since the other tests show quite clearly that this is likely not a problem specific to MediaPortal.
     
  4. stoked
    • Premium Supporter

    stoked MP Donator

    Joined:
    December 14, 2007
    Messages:
    297
    Likes Received:
    8
    Ratings:
    +8 / 0
    Home Country:
    Canada Canada
    damaster,

    Do you have any issues watching live TV? I seem to have a memory leak problem watching live TV but I'm not using the MPC-HC codec. I have nvidia video/audio. I'll have to do more troubleshooting.
     
  5. damaster

    damaster Portal Pro

    Joined:
    November 23, 2007
    Messages:
    412
    Likes Received:
    35
    Ratings:
    +35 / 0
    Home Country:
    Canada Canada
    No live TV, sorry. Try switching to another decoder and see if your memory leak goes away. You also need to be sure it's an actual memory leak by monitoring the private bytes usage of MediaPortal.
     
  6. damaster

    damaster Portal Pro

    Joined:
    November 23, 2007
    Messages:
    412
    Likes Received:
    35
    Ratings:
    +35 / 0
    Home Country:
    Canada Canada
    UPDATE: I managed to reproduce this issue with mplayerc.exe, so it is definitely a bug in the DirectShow filter MPC Video Decoder and not MediaPortal.

    Here is the ProcessExplorer performance graph showing the private bytes usage of mplayerc.exe:

    [​IMG]
     
    • Like Like x 1
  7. Vimes
    • Premium Supporter

    Vimes MP Donator

    Joined:
    January 19, 2009
    Messages:
    230
    Likes Received:
    33
    Location:
    Earth, for now
    Ratings:
    +33 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Just to repeat what damaster has noted....

    I ran with the MPCVideoDec DirectShow filter from My Videos and noted...

    [​IMG]

    I ran a 1080p file around 16 times in succession and noted on each occurance the memory retained increased using the above filter.

    Using the PowerDVD 8 decoder filter...

    [​IMG]

    ...the memory retention after running the same file remains constant at around a fifth of that of the MPC decoder, with no increase at each stop / start of running the file.
     
    • Like Like x 1
  8. damaster

    damaster Portal Pro

    Joined:
    November 23, 2007
    Messages:
    412
    Likes Received:
    35
    Ratings:
    +35 / 0
    Home Country:
    Canada Canada
    Much thanks for validating this! I thought I was the only nutcase who had encountered this and that there may have been something seriously wrong with my ATI-based system. I am very glad to see that you have an NVidia GPU and also encounter this memory leak.

    Would you be able to post your findings over here to help make the MPC HC devs more aware of this significant bug?: Media Player Classic Home Cinema - DXVA! - Page 317 - Doom9's Forum
     
  9. Vimes
    • Premium Supporter

    Vimes MP Donator

    Joined:
    January 19, 2009
    Messages:
    230
    Likes Received:
    33
    Location:
    Earth, for now
    Ratings:
    +33 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    You are welcome for the support :) Thanks for the thanks BTW.!

    Having noted that my hardware is different to yours I thought that would add a little more weight to what you have found.

    I have now posted my findings over at the forum you have linked to, having just recently rejoined Doom 9 due to forgetting my password.!
     
  10. damaster

    damaster Portal Pro

    Joined:
    November 23, 2007
    Messages:
    412
    Likes Received:
    35
    Ratings:
    +35 / 0
    Home Country:
    Canada Canada
    Awesome! I saw your post over at doom9. I hope this issue gets attention because I've gone back to using the PowerDVD 8 decoder, and I don't like it :( It doesn't play everything and doesn't have a software-decode mode back-off strategy as does the MPC decoder. But I can't use the MPC decoder because I leave MP running constantly for days at a time and my wife might be watching a bunch of different videos/episodes and then MP can't play videos at some point because of the memory leak. I then have to restart MP and that doesn't make for a very nice user experience, especially not for the wife.
     
  11. Vimes
    • Premium Supporter

    Vimes MP Donator

    Joined:
    January 19, 2009
    Messages:
    230
    Likes Received:
    33
    Location:
    Earth, for now
    Ratings:
    +33 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    I hope that it gets resolved too, although I must admit that for me it is not a problem that I would have easily noticed as the memory retention issue would not reflect my type of usage of MP. I imagine for those people, like yourself, whose stopping and starting of MP is quite minimal then the problem would manifest itself more often.

    Fingers crossed for you :)
     
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!