Thread: Vapoursynth
View Single Post
Old 12th December 2017, 13:22   #2910  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
Quote:
Originally Posted by lansing View Post
Reporting a memory leak on ModifyFrame as I found it here earlier.

Memory will not flush after I closed preview in vs editor. Using the sample script from the document will cause the leak:
Code:
def set_frame_number(n, f):
   fout = f.copy()
   fout.props['FrameNumber'] = n
   return fout

clip = core.std.ModifyFrame(clip=clip, clips=clip, selector=set_frame_number)
I've found 3 memory leaks so far in various places. Expect the next version to improve on things a lot. Note that all leaks more or less only happened when objects were destroyed so it'd never be discovered when using vspipe or simply encoding things.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote