-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specific frame access order causes unlimited video cache growth (ex-propCopy causes a memory leak) #270
Comments
Thank you for the report, I'm gonna investigate it soon. |
Thank you :) I think this issue might be related since propCopy is involved as well: https://forum.doom9.org/showthread.php?p=1964113#post1964113 |
Well, if I replace |
This is my current test
EDIT: |
Oh, please link hints to script sources. |
I'll post some links here for future reference: https://github.com/realfinder/AVS-Stuff/blob/a487858224a063101b9bfc1e128a0953ee6c5046/avs%202.6%20and%20up/STGMC.avsi for STGMC, renamed to avoid mixing up with Dogway's version. Does not utilize frame props, so no memory leak. |
What is the speed of the leak? I mean: does it comsume the memory quickly or just some kilo/megabytes for each 1000 frames? |
We are talking about some tens of kilobytes per a couple of frames or so. When running the script thru AVSMeter, it often required 30-60 minutes to fill the set memory. That made it very slow to debug the issue because I didn't know which level was normal and which one is a leakage. |
In addition to that, the startup phase of the script is super slow if QTGMC/STGMC is involved. NNEDI3(field=-2) starts processing almost right away. |
Thanks. First link gives me 404 error |
Dang, it's removed. https://pastebin.com/aEpYnj7m contains the debug function + missing parts in the same paste. |
Another question.
EDIT:
This memory growth is already present in a very early Avisynth build (2016.03.29) For myself: it is caused by SeparateFields when it is actually requesting the (n/2)th frame number from source filter. |
Yes, I can confirm that even the simplest versions leak memory. |
Thanks. I can firmly state that it can be fixed in one day's to four weeks' time :) I'm not happy. |
What I find surprising is that no one ran into it before I did.. or they did but just ignored it as some random issue. |
When a frame pattern is jumping to and fro This script must use Also see my comment here: Nevertheless, even if the Interleave() thing works, do not close the ticket. |
As per this post, https://forum.doom9.org/showthread.php?p=1964432#post1964432, I've noticed that propCopy leaks memory. This happens also without any Prefetch calls and QTGMC or SRestore are not actually involved.
The text was updated successfully, but these errors were encountered: