1 (edited by aloola 15-03-2012 08:27:06)

Topic: [FIXED] SVP 3.1 eats a lot of memory

SVP 3.1 ate a lot of my RAM but I didn't watch anything, just run SVP in system tray =.=

at first it only uses ~15MB then increases 100MB 200MB then 400MB =.=, at ~150MB my CPU usage for it increase too ~10%
but when I play video the memory stop increasing

I uninstalled and reinstalled SVP but still got this problem sad

http://sadpanda.us/images/875509-EQ46EBB.jpg
http://sadpanda.us/images/875510-ANW3HVH.jpg
http://sadpanda.us/images/875511-78EV92C.jpg
http://sadpanda.us/images/875512-KEVQ0R8.jpg
http://sadpanda.us/images/875514-T6GI1EO.jpg
http://sadpanda.us/images/875530-LX2AX2W.jpg
sad

Post's attachments

1.jpg 299.85 kb, 257 downloads since 2012-03-15 

2.jpg 295.41 kb, 242 downloads since 2012-03-15 

3.jpg 294.92 kb, 219 downloads since 2012-03-15 

Re: [FIXED] SVP 3.1 eats a lot of memory

aloola
pictures are not availibal, please attach its to post (press Edit and you will see advanced editing form)

and avs-script + add.information + perfomance graph also required

3 (edited by aloola 15-03-2012 08:23:10)

Re: [FIXED] SVP 3.1 eats a lot of memory

Last processed file parameters:
Filename: [Kira-Fansub] Seitokai Yakuindomo Episode 02v3 (BD 1920x1080 x264 AAC) [F2BA8D1C].mkv
Frame size and frame rate: 1920x1080 pixels, 23.976 fps

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

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

Selected profile: 1920x1080@24

Profile settings of video processing
[ExMethod=MSmoothFps_0]        Frames interpolation mode: Uniform (max smoothenss)
[ExAlgo=23]            SVP shader: 23. Complicated
[ExMulti=MON]            Target frame rate: To screen refresh rate (default)
[ExBlockSize=16x16:1]        Motion vectors grid: 14 px. Average 1
[ExRecalc=0:0]            Decrease grid step: Disabled (default)
[TypeDist=Exh:-10:SATD]        Search radius: Average (default)
[ExPel=1]            Motion vectors precision: One pixel
[Badsad=2000:24]        Wide search: Strong
[ExSadml=0]            Artifacts masking: Disabled (default)
[ExBlend=false]            Processing of scene changes: Repeat frame (default)
[ExDwnResize=MON]        Decrease frame size: To screen size
[ExConvertFps=false]        Blend frames to screen refresh rate:false

Settings by menu
[svp_libflowgpu=1]        GPU-acceleration (OpenCL): true
[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=1]    Turn off on seek: Turn off by 1 sec






svp_scheduler=true
SetMemoryMax(1024)

LoadPlugin("C:\Program Files (x86)\SVP\plugins\svpflow1.dll")
LoadPlugin("C:\Program Files (x86)\SVP\plugins\svpflow2.dll")

SetMTMode(3,7)
ffdShow_source()
assert(width==1920 && height==1080,"Frame size "+string(width)+"x"+string(height)+" instead of 1920x1080")
SetMTMode(2)

super_params="{pel:1,scale:{up:0},gpu:1,rc:true}"
analyse_params="{block:{overlap:1},main:{search:{coarse:{distance:-10},bad:{sad:2000,range:24}}}}"
smoothfps_params="{num:5,den:2,algo:23,mask:{cover:80},scene:{mode:0}}"

super=SVSuper(super_params)
vectors=SVAnalyse(super, analyse_params)
smooth_video=SVSmoothFps(super, vectors, smoothfps_params, url="www.svp-team.com")
smooth_video
distributor()


14:36:38.440; Start: SVPMgr 3.1 starts...
14:36:38.440; Start: read settings file settings.ini
14:36:38.440; Start: load language file - English
14:36:38.441; Start: clear Logs folder
14:36:38.442; Start: SVPMgr folders prepare
14:36:38.446; Start: performance graphs prepare
14:36:38.446; Start: read settings file SVPMgr.ini
14:36:38.447; Start: monitors settings detection. Duration: 893 ms
14:36:39.340; Start: disable LNG-file write when UAC enabled
14:36:39.341; Start: change SVP-manager priority
14:36:39.341; Start: register hotkeys
14:36:39.342; Start: check launched instance of SVP-manager
14:36:39.342; Start: check Avisynth installed
14:36:39.347; Start: get versions of modules used
ffdshow.ax/avisynth.dll: 1.1.4369.0/2.5.8.6
svpflow1/2.dll: 1.0.0.0/1.1.0.0
svpflow_cpu/gpu.dll: 1.7.0.0/1.6.1.0
14:36:39.347; Start: refresh autostart state in registry
14:36:39.347; Start: some more work with registry
14:36:39.348; Start: create menu. Duration: 21 ms
14:36:39.369; Start: update settings file settings.ini. Duration: 224 ms
14:36:39.593; Start: update monitor settings
14:36:39.593; Start: prepare "About the program" window. Duration: 10 ms
14:36:39.603; Updates: check for updates. Request sended
14:36:39.604; Start: enable ffdShow waiting mode
14:36:39.605; RefreshSVP begin
14:36:39.607; RefreshSVP end: Waiting for ffdshow video
14:36:39.607; Start: prepare to work is complete
14:36:39.901; Updates: connection opened
14:36:40.602; Updates: server answer:
HTTP/1.1 200 OK
Date: Thu, 15 Mar 2012 07:36:40 GMT
Server: Apache
Cache-Control: no-cache, must-revalidate
Expires: Sat, 26 Jul 1997 05:00:00 GMT
Vary: Accept-Encoding
Content-Length: 14
Content-Type: text/html

3.1
14.03.2012
14:36:50.614; Updates: connection closed
14:50:03.002; GetDimensionAndFPS_Grab start. Duration: 183 ms
14:50:03.185; GetDimensionAndFPS_Grab result: 1920 1080 23.976
14:50:03.189; T1T: prepare
14:50:03.197; T1T: begin
14:50:03.200; T1T: GetAllMediaParams
14:50:03.201; T1T: SettingsPrepare. Duration: 18 ms
14:50:03.219; T1T: Preparing smooth playback...
14:50:03.222; T1T: WriteAllMediaParamsToIni
14:50:03.224; application launch...
command: C:\Program Files (x86)\SVP\SVPMgr
parameters: main "D:\Users\Rokugen Alice\AppData\Roaming\SVP 3.1\" 1920 1080 23.976 1920 1080 5 2
write to log: True. Duration: 218 ms
14:50:03.442; T1T: SVPMgr main. Duration: 187 ms
14:50:03.629; T1T: Playback
23.976 * (5 : 2) = 59.94 fps
14:50:03.631; SetPriorityPlayer: 2. Duration: 18856 ms
14:50:22.487; RefreshSVP begin. Duration: 9 ms
14:50:22.496; RefreshSVP end: Waiting for ffdshow video



[main]
;===MONITOR===
;Monitor detection (0 - autodetect by player, 1 - choose manually), the setting is available from menu
MonNum=0

;Number of choosed monitor, the setting is available from menu
ExFixMon=1

;Fixed refresh rate, the setting is available from menu
ExFixMonFPS=59.913

;Correction of detected refresh rate on interlaced monitors (1-on/0-off)
CHKDeIntlaceMon=1

;Number of Direct3D framerate detection (by default - 50, maximum - 240)
FPSD3DCycleCount=50
    

;===ITERFACE===
;Interface: 0-simple, 1-advanced, 2-expert, the setting is available from menu
DefInterface=2

;Font size
HFont=96

;SVP-manager window top most position (1-on/0-off)
MgrOnTop=1

;Combo boxes alignment by width
CBMode=1

;Message box about framerate exceeding screen refresh rate (fps)
ChkDeltaFPS=5

;Path to editor if AVS-scripts. Empty by defaut to using notepad
EditorPath=


;===OSD-MESSAGES===
;Display OSD-alert (1-on/0-off), the setting is available from menu
ShowOSD=1

;OSD vertical position
OSDTop=0

;OSD horisontal position
OSDLeft=10

;OSD-alert show delay (sec)
OSDDelaySec=4

;OSD Font scale factor
OSDFontScale=1

;Control of CPU-load and SVP-index (1-on/0-off)
Index&CPUControl=1

;min allowed value of SVP-index to OSD-alert (0.99-1.0 - realtime play)
SVPIndexWarningValue=0.90

;max allowed value of CPU load to OSD-alert (%)
CPULoadWarningValue=90

;Number of last measures of CPU load and SVP-index to affect to OSD-alert
CNTMeasureIndex&CPU=20


;===ffdShow===
;low priority check ffdshow Video Decoder (1-on/0-off)
ffddec=0

;low priority check ffdshow raw video filter (1-on/0-off)
ffdraw=0

;ffdShow remote control message placement (1-from registry, 0-from ini-file)
FFDMsgFromReg=1

;ffdShow remote control message value (0-"ffdsjow_remote_message", other values - user message number)
ffdRemoteMsg=32786

;Deinterlace (1-on/0-off), the setting is available from menu
DeInterlace=0

;Frame size and framerate detection mode, 1 - by frame grabbing or 2 - from OSD
VarChkDimAndFps=1

;Extra add to buffer ahead size (frames)
ExBuffAheadAdd=3

;Forced ON RAW format support for ffdShow Video Decoder (1-on/0-off)
forceRAWinDecoder=1


;===PROFILES===
;Nearest greater by pixelrate (1-on/0-off)
UPFindMethodProf=1

;Prpfile filter by framerate (1-on/0-off)
FPSPriority=0


;===SMOOTH FACTOR CALCULATION===
;The best smooth factor for use with ReClock. Holded precision is >= 0.6 fps with ReClock and 0.0001 fps withot. (1-on/0-off)
UseReClockToFixFPS=1

;smooth correction of video with variable framerate and incorrectly detected framerate by detectiong of FPS changes (0-off), when have a problems recomended value: 0.1 (fps)
deltaFPS=0.1

;Interval of parameters updating when smooth correction is on (msec)
WaitNextBadFPS=4000


;===OTHER===
;Avisynth cache size (Mb)
AVSmem=1024

;Allow of frame upsizing by "reduce resolution" setting (1-on/0-off)
AllowUpsize=0

;Timeout for waiting scripts results to avoid freezing (sec)
ExWaitSec=10

;Free memory part of available memory size. If it will be exceeded then script will be restarting, 0.5 by default, 0-switch off memory growth detection
ReloadAVSFactor=0.5

;Timer of Reclock stabilisation waiting if it runs (msec)
WaitReClock=0

;Service mode to add strings to language files (1-on/0-off)
LNGAdd=0

;Service parameter to start timer at SVPMgr start (ON/OFF)
Timer=ON

;Run command SVPMgr.cmd unload when exit (ON/OFF)
CloseCMDOnExit=ON

;Multiply factor for cropping (pixels)
CropMultipleOf=2

;Borderlight type by default (Custom lighting)
DefaultBorderlight=8:8:300:1

;Check for updates
CheckForUpdates=1
LastSuccessCheckDate= 143640 143640

;"Silent" mode
Silent=0

F2Top=280
F2Left=1233
F2Height=0
F5Width=484
F5Top=358
F5Left=718
F5Alfa=51
F5MiniMode=0


[interfaces]
Ïðîñòîé=0
Ðàñøèðåííûé=1
Ýêñïåðò=2

my spec

Phenom II x3@3.6Ghz  + 4GB RAM ddr3 1333 + ASus radeon HD 6850 catalyst 12.2 + windows 7 64 bit

Rimsky: a lot of tech.text must be in teg [ code]

Post's attachments

4.jpg 300.21 kb, 257 downloads since 2012-03-15 

5.jpg 299.76 kb, 321 downloads since 2012-03-15 

6.jpg 458.6 kb, 228 downloads since 2012-03-15 

Re: [FIXED] SVP 3.1 eats a lot of memory

aloola
1. avs-script, ext.info etc must be placed in teg [ code]
2. write spec into the profile, it is not once question from you and in future nobody wil search spec in the all forums
3. did you see this? Try to install catalyst 12.1, but I dont think that it help, but you try

Re: [FIXED] SVP 3.1 eats a lot of memory

aloola
It is a bug. I see it. Thanks a lot.

---
Fixed!
Try this: SVPMgr_3.1_MemoryLeaks_HotFix.zip
Unpack and replace SVPMgr.exe in SVP 3.1 folder.

Post's attachments

SVPMgr_3.1_MemoryLeaks_HotFix.zip 337.41 kb, 637 downloads since 2012-03-15 

6 (edited by FDisk 15-03-2012 11:57:32)

Re: [FIXED] SVP 3.1 eats a lot of memory

Wow, hah. I see this to. Ate up to 1GB of RAM and then crashed when I tried to close it.
Thanks for a quick fix.  smile

Edit: is this fix already included in the full 3.1 download?
Edit2: Umm, I don't think the fix fixed it. It was holding around 15mb but after 10 min it started climbing non stop. Already at 91MB as of now and climbing.

Re: [FIXED] SVP 3.1 eats a lot of memory

FDisk
I confirm the bug is not completely fixed hmm
Wait for next fix...

Re: [FIXED] SVP 3.1 eats a lot of memory

Second Fix: SVPMgr_3.1_MemoryLeaks_HotFix2.zip

Unpack and replace SVPMgr.exe in SVP 3.1 folder

It is quick fix for avoid the problem but not Final fix. wink
Now used memory is stable when SVP is not active (waiting for ffdShow, on pause) or on playing.
But memory leaks are still able when using SVP-interface.

Post's attachments

SVPMgr_3.1_MemoryLeaks_HotFix2.zip 337.56 kb, 600 downloads since 2012-03-15 

Re: [FIXED] SVP 3.1 eats a lot of memory

MAG79 wrote:

Second Fix: SVPMgr_3.1_MemoryLeaks_HotFix2.zip

Unpack and replace SVPMgr.exe in SVP 3.1 folder

It is quick fix for avoid the problem but not Final fix. wink
Now used memory is stable when SVP is not active (waiting for ffdShow, on pause) or on playing.
But memory leaks are still able when using SVP-interface.

Thanks, not so bad now. smile

Re: [FIXED] SVP 3.1 eats a lot of memory

Third Fix (I think the last): SVPMgr_3.1_MemoryLeaks_HotFix3.zip

Unpack and replace SVPMgr.exe in SVP 3.1 folder

aloola, FDisk
Please check memory leaks on your systems and take a look to English phrases. Translation algorithm of SVP interface was changed a bit. It need to be tested.

Post's attachments

SVPMgr_3.1_MemoryLeaks_HotFix3.zip 341.23 kb, 1325 downloads since 2012-03-16 

Re: [FIXED] SVP 3.1 eats a lot of memory

good job! the memoryleaks was fixed. only use 15MB of RAM

Re: [FIXED] SVP 3.1 eats a lot of memory

MAG79 wrote:

Third Fix (I think the last): SVPMgr_3.1_MemoryLeaks_HotFix3.zip

Unpack and replace SVPMgr.exe in SVP 3.1 folder

aloola, FDisk
Please check memory leaks on your systems and take a look to English phrases. Translation algorithm of SVP interface was changed a bit. It need to be tested.

Everything looks fixed now. Works perfect.
Found some translation you missed. See screenshot.

http://i.imgur.com/p16LJ.jpg

Re: [FIXED] SVP 3.1 eats a lot of memory

FDisk
Found some translation you missed
Thank you. You are right. This option was changed in last moment and we missed it translation.

Here file with full translation: English.zip

Unpack and replace English file in SVP 3.1\Language folder

There are too many bugs. hmm I think soon will be new SVP bug fix release wink

Post's attachments

English.zip 10.4 kb, 546 downloads since 2012-03-16 

Re: [FIXED] SVP 3.1 eats a lot of memory

MAG79 wrote:

FDisk
Found some translation you missed
Thank you. You are right. This option was changed in last moment and we missed it translation.

Here file with full translation: English.zip

Unpack and replace English file in SVP 3.1\Language folder

There are too many bugs. hmm I think soon will be new SVP bug fix release wink

Thanks smile
Yea the memory leak got horrible after a couple of hours. You rellay should update the release version. Most people don't know about all the fixes you post here.

Also found something strange. Movies with 1280x720 resolution for some reason load the 1920x800 profile.  hmm

Re: [FIXED] SVP 3.1 eats a lot of memory

FDisk
You rellay should update the release version. Most people don't know about all the fixes you post here
New version will be availible soon. Users will be informed about it automatically by checking for update.

Discussion about resolution and profile moved here:
Movies with 1280x720 resolution load the 1920x800 profile

Re: [FIXED] SVP 3.1 eats a lot of memory

Fixed in SVP 3.1.1