Topic: [SOLVED] Memory leak warning keeps coming out

I'm using SVP 3.1.1 with 3.1.2 pre-patch

A message box comes out occasionally when playing videos,
and if I shut it down it keeps coming out.

Warning: there's a memory leak in the video player: 1862 MB
To prevent the closing of the player due to lack of memory a script restarted improve smoothness.

But I have 8GB RAM and memory consuming doesn't look high.

Error log

13:25:29.431; Start: SVPMgr 3.1.1 starts...
13:25:29.431; Start: read settings file settings.ini
13:25:29.431; Start: load language file - English. Duration: 4001 ms
13:25:33.432; Start: clear Logs folder
13:25:33.432; Start: SVPMgr folders prepare. Duration: 15 ms
13:25:33.447; Start: performance graphs prepare
13:25:33.447; Start: read settings file SVPMgr.ini
13:25:33.447; Start: monitors settings detection. Duration: 984 ms
13:25:34.431; Start: disable LNG-file write when UAC enabled
13:25:34.431; Start: change SVP-manager priority
13:25:34.431; Start: register hotkeys
13:25:34.433; Start: check launched instance of SVP-manager
13:25:34.433; Start: check Avisynth installed. Duration: 8 ms
13:25:34.441; Start: get versions of modules used
ffdshow.ax/avisynth.dll: 1.2.4450.0/2.6.0.3
svpflow1/2.dll: 1.2.0.0/1.3.0.0
svpflow_cpu/gpu.dll: 1.7.1.0/1.7.2.0
13:25:34.442; Start: refresh autostart state in registry
13:25:34.442; Start: some more work with registry
13:25:34.445; Start: create menu. Duration: 6 ms
13:25:34.451; Start: update settings file settings.ini. Duration: 299 ms
13:25:34.750; Start: update monitor settings
13:25:34.750; Start: prepare "About the program" window. Duration: 8 ms
13:25:34.758; Start: enable ffdShow waiting mode
13:25:34.759; RefreshSVP begin
13:25:34.761; RefreshSVP end: Waiting for ffdshow video
13:25:34.761; Start: prepare to work is complete
13:27:59.794; GetDimensionAndFPS_Grab start. Duration: 513 ms
13:28:00.307; GetDimensionAndFPS_Grab start. Duration: 501 ms
13:28:00.808; GetDimensionAndFPS_Grab start. Duration: 151 ms
13:28:00.959; GetDimensionAndFPS_Grab result: 1920 1080 23.976
13:28:00.960; T1T: prepare
13:28:00.963; T1T: begin
13:28:00.965; T1T: GetAllMediaParams
13:28:00.966; T1T: SettingsPrepare. Duration: 6 ms
13:28:00.972; T1T: Preparing smooth playback...
13:28:00.972; T1T: WriteAllMediaParamsToIni
13:28:00.973; application launch...
command: O:\Program Files (x86)\SVP\SVPMgr
parameters: main "O:\Users\River\AppData\Roaming\SVP 3.1\" 1920 1080 23.976 1920 1080 5 2
write to log: True. Duration: 515 ms
13:28:01.488; T1T: SVPMgr main. Duration: 16 ms
13:28:01.504; T1T: Playback
23.976 * (5 : 2) = 59.94 fps
13:28:01.504; SetPriorityPlayer: 2. Duration: 2173 ms
13:28:03.677; this is changing FalseVFR_Dwn. ffdShow-framerate: 15.774 SVP Index:1.01/0.97
13:28:04.613; this is changing FalseVFR_Dwn. ffdShow-framerate: 12.23 SVP Index:1.01/1.60
13:28:05.549; this is changing FalseVFR_Up. ffdShow-framerate: 18.863 SVP Index:1.01/1.60
13:28:06.485; this is changing FalseVFR_Up. ffdShow-framerate: 21.753 SVP Index:1.01/1.24
13:28:07.422; this is changing FalseVFR_Up. ffdShow-framerate: 22.988 SVP Index:0.97/1.11
13:28:08.358; this is changing FalseVFR_Up. ffdShow-framerate: 23.534 SVP Index:1.01/1.06
13:28:08.639; Error: Warning: there's a memory leak in the video player: 1862 MB
To prevent the closing of the player due to lack of memory a script restarted improve smoothness.. Duration: 7697 ms
13:28:16.336; RefreshSVP begin
13:28:16.336; RefreshSVP end: Waiting for ffdshow video

Re: [SOLVED] Memory leak warning keeps coming out

I'm using
LAV Filter 0.50.5
ffdshow tryouts rev4450
AV Splitter 1.2.2.7
mpc-hc 1.6.2.4832
MadVR 0.82.5
reclock 1.8.7.9
xy-VSfilter 3.0.0.8

Re: [SOLVED] Memory leak warning keeps coming out

river
SVP uses 32 bit players. It means 2 GB limit for all DirectShow chain: player - splitter - decoders - ffdshow avisynth + SVP libraries - renderer.
Each of them wants some meory to work.

1. You can reduce memory use of them. For example: Comparing of memory consumption of different decoders.
2. You can change some SVP settings to reduce memory use.
3. And, of course, you can disable memory control function: hidden setting ReloadAVSFactor=0

Re: [SOLVED] Memory leak warning keeps coming out

Thanks. Now I've disabled it
But I tested playing video without SVP, and memory is below 400MB
In SVPMgr.ini I find that AVSmem=1024
Is this the reason?

Re: [SOLVED] Memory leak warning keeps coming out

river
AVSmem=1024
You can change this value. Maybe you will get some memory use reducing.
But I think reason is threads count and SVP hard settings.
I can say more precisely if you place here your additional info file content from SVP menu.

Re: [SOLVED] Memory leak warning keeps coming out

Last processed file parameters:
Filename: [Yousei-raws] Gosick 02 [BDrip 1920x1080 x264 FLAC].mkv
Frame size and frame rate: 1920x1080 pixels, 23.976 fps

Detected screen parameters
Screen size and refresh rate: 1920x1080 pixels, 50 Hz

Video smoothing info
Smooth factor: 2:1
Resulting video frame rate: 47.952 fps
Repeat 2 frames every sec (without ReClock)

Selected profile: 1920x1080@24

Profile settings of video processing
[ExMethod=MSmoothFps_3]        Frames interpolation mode: Adaptive (default)
[ExAlgo=13]            SVP shader: 13. Standart (default)
[Bicubic=0]            Motion vectors interpolation mode: Bilinear
[ExMulti=2:1:2]            Target frame rate: Double source frame rate (2x)
[ExBlockSize=32x32:2]        Motion vectors grid: 24 px. Large 2
[ExRecalc=65000:8]        Decrease grid step: To small step 6-8 px.
[TypeDist=Hex:-6:SATD]        Search radius: Small
[ExPel=1]            Motion vectors precision: One pixel
[Badsad=1000:-24]        Wide search: Average (default)
[ExSadml=1000]            Artifacts masking: Strongest
[ExBlend=false]            Processing of scene changes: Repeat frame (default)
[ExDwnResize=0]            Decrease frame size: Disabled (default)
[ExConvertFps=false]        Blend frames to screen refresh rate:false

Settings by menu
[svp_libflowgpu=0]        GPU-acceleration (OpenCL): false
[ExThreads=0]            Processing threads: Auto
[HandCrop=None]            Frame crop: Disabled
[Borderlight=None]        Black bars lighting: Disabled
[VDelay=0]            Video delay: 0 ms
[ExDemo=0]            Demonstration mode: false
[ExTearingTest=0]        Tearing test: false
[EFrameDoubling=0]        Variable frame rate repair: false
[StopSmoothDelayOnRewind=0]    Turn off on seek: Turn off and on quickly

Thanks in advance

Re: [SOLVED] Memory leak warning keeps coming out

river

Processing threads: Auto

Sorry, I can't find your config description (I need CPU model name).
And what GPU you have? Why you don't using its acceleration?

Decrease grid step: To small step 6-8 px.

This is the most likely cause. Increase this value and you will see lesser memory use.

Re: [SOLVED] Memory leak warning keeps coming out

my CPU is Xeon 1230 v2
with Hyper-threading it's 8 threads

Re: [SOLVED] Memory leak warning keeps coming out

river
4 core CPU with HT with "threads:auto" setting gives 9 SVP-threads. It is not very high value to heavy memory use. You are not need to change it.

Re: [SOLVED] Memory leak warning keeps coming out

Now I kind of understand why
I reinstalled Avisynth 2.5.8 and everything works fine
I was using Avisynth 2.6 MT previously

Re: [SOLVED] Memory leak warning keeps coming out

river
Yeah.. It is simple. Only avisynth 2.5.8 MT SVP edition has memory optimizations for SVP use. wink

ffdshow.ax/avisynth.dll: 1.2.4450.0/2.6.0.3

Sorry, I didn't notice it before.

Re: [SOLVED] Memory leak warning keeps coming out

It means the problem is solved? hmm

Re: [SOLVED] Memory leak warning keeps coming out

Yes, It's solved.