1 (edited by Hero1711 05-09-2012 07:43:29)

Topic: [FIXED] Player memory leak SVP 3.1.2

Hello, firstly I want to thank the dev team for making a wonderful project. I am on SVP 3.1.2 and experiencing "Warning: there's a memory leak in the video player". I have set ReloadAVSFactor=0; patched the mpc-hd.exe to use 4GB of RAM. But the message still pops up. There is also something I want to report, sometimes the player can register up to 2895MB (as in the screen shot); when it does that once, even if I close the MPC, SVP and then open them up again (without restarting Windows), the player can register 2895MB again; but if I restart Windows, it registers ~1871MB, and the warning message pops up again. I have attached the LastErrorLog and the screen shot when the player register 2895MB of memory.

System:
OS: Windows 8 Pro RTM 64bit.
CPU: Intel Core i7-2920XM.
RAM: 4x8GB at 1333MHz.
GPU: AMD Radeon 6990M 2GB GDDR5 in CrossFireX. (I am not currently using GPU acceleration in LAV Video because only DXVA2 copy-back works with SVP, but it gives me green video due to a bug in the current AMD driver)

I installed the SVP 3.1.2 full pack.

Post's attachments

LastErrorLog.txt 3.17 kb, 600 downloads since 2012-09-05 

SVP.png, 10.17 kb, 484 x 333
SVP.png 10.17 kb, 494 downloads since 2012-09-05 

Re: [FIXED] Player memory leak SVP 3.1.2

Hero1711
Did you restart SVP after editing Hidden settings file?

3 (edited by Hero1711 05-09-2012 08:16:02)

Re: [FIXED] Player memory leak SVP 3.1.2

Yes I did, and I had tested it many times, even restarting Windows. I saw that SVP did read the SVPMgr.ini file as I also changed AVSmem=2048 and when I checked the Last used AVS script, I saw SetMemoryMax(2048).

Edit: I have something to add. Sometimes, after a memory leak warning message (I pressed OK on the message), the player registers higher memory. It was able to register 2902MB not 2895MB (and maybe that was not the final value because it has not reached 2000 yet).

Re: [FIXED] Player memory leak SVP 3.1.2

...I am not a pro but i try to help tongue
I have experienced "Warning: there's a memory leak in the video player" before (gone after recovering win7 due to virus)
would you try to uninstall everything related to SVP
reinstall SVP and also those necessary program include inside the full pack
esp. Avisynth 2.5.8 MT provided

Re: [FIXED] Player memory leak SVP 3.1.2

Yes I did that too, 3 times sad.

Re: [FIXED] Player memory leak SVP 3.1.2

Hero1711
You did something wrong. Check yourself.

I just now successfully turned off Memory leak messages:
1. Install SVP 3.1.2, choose "Option-Reset settings" and "Change Interface type-Expert"
2. Open Hidden settings: tray menu - Information - Hidden settings
3. Find and change setting value: ReloadAVSFactor=0
4. Close Hidden settings file and save it
5. Exit SVP Manager and rut it again

Hero1711
sometimes the player can register up to 2895MB (as in the screen shot);
It is not a bug. It is some magic of count this value. The value is not precise. You must be don't worried while player works without crashes with VC++ error.

7 (edited by Hero1711 06-09-2012 04:48:04)

Re: [FIXED] Player memory leak SVP 3.1.2

MAG79
This is what I did according to your instructions:
1. Remove SVP.
2. Restart Windows.
3. Re-install SVP 3.1.2, choose "Change Interface type-Expert" (I did not see "Option-Reset settings", screenshot attached).
4. Open Hidden settings: tray menu - Information - Hidden settings.
5. Find and change setting value: ReloadAVSFactor=0
6. Close Hidden settings file and save it.
7. Exit SVP Manager and run it again.

I have recorded my screen from step 4 to step 7 and then make the player reach high memory usage by seeking and going in and out full screen mode, the message appeared. This time after clicking OK, the player registered 2902MB, but it rarely did that, normally there would be multiple error messages till the player registered ~2900MB (Do not mind the awful video played on the player because I capped the recording fps and bitrate to save file size):
http://www.mediafire.com/?bsz7x16zm5so26e (8.35MB)

I knew the hidden settings were loaded because as I said, I also changed AVSmem=2048 and when I checked the Last used AVS script, I saw SetMemoryMax(2048).

About the ~2900MB, how can I make this permanent? I have 32GB of RAM, 3GB for the player is not a problem.

Post's attachments

SVPSetup.png, 24.07 kb, 513 x 399
SVPSetup.png 24.07 kb, 483 downloads since 2012-09-06 

Re: [FIXED] Player memory leak SVP 3.1.2

Hero1711
Option reset settings is available when installed SVP is detected.
I will try to view you movie, but I don't promise I can view it from my phone. Now I am in trip. I will be home next week.

You can read about memory issues and try VMMap utility to get more info about true memory use by player process.

9 (edited by Hero1711 06-09-2012 05:45:26)

Re: [FIXED] Player memory leak SVP 3.1.2

MAG79
I have uploaded to youtube so you can view on your phone: http://www.youtube.com/watch?v=MmRaFIc0LOM (The max resolution is 1080p).

Re: [FIXED] Player memory leak SVP 3.1.2

Hero1711 say please, what program did you use for capturing desktop?

11 (edited by Hero1711 06-09-2012 10:28:23)

Re: [FIXED] Player memory leak SVP 3.1.2

%username%
I used Microsoft Expression Encoder 4 Screen Capture to capture the desktop, then I used Microsoft Expression Encoder 4 to encode it. But it will not record full screen applications (as you can see in my clip, the video output of the player froze in full screen mode, but actually it didn't freeze, it was just that the recorder couldn't capture).

Re: [FIXED] Player memory leak SVP 3.1.2

Bump, any solutions yet?

Re: [FIXED] Player memory leak SVP 3.1.2

Hero1711
How many threads set in SVP? may be decrease it helps?

Re: [FIXED] Player memory leak SVP 3.1.2

Hero1711
I was far from home. Now I came back.

Try this fix.
Download archive, exit SVP Manager, unpack SVPMgr.exe to SVP folder, run SVP Manager.

Please check if ReloadAVSFactor=0 works now.

Post's attachments

SVPMgr_ReloadAVSFactor_Fix.zip 337.36 kb, 865 downloads since 2012-09-13 

Re: [FIXED] Player memory leak SVP 3.1.2

Seems like it got fixed for now. But I will test more and report later.