VFR-maniac / L-SMASH-Works

Works based on L-SMASH project
98 stars 48 forks source link

Memory leak #28

Closed zathorian closed 10 years ago

zathorian commented 10 years ago

There seems to be a memory problem with all builds which I have tried (702 to 715 v2). I am using it mainly from within AviSynth+ (r1576) - but have tried also other AviSynth versions. The script will be called from within MeGUI several times (auto crop, deinterlace detection, encoding, ...) and after a while a script cannot be opened anymore with the error "[Fatal]: Failed to avformat_open_input." It can then be noticed that the memory consumption of the MeGUI process is high (up to 2GB) and it will not be freed when the script is closed. I have to close MeGUI and then the last operation can be continued. Also other users have the same problem: http://forum.doom9.org/showthread.php?p=1676500#post1676500 I can reproduce it also when I open/close the avs script with VirtualDub.

With other source filters I do not have the problem (ffms, dgindex, dgindexnv, ...) - only exception is the c-plugin of ffms which also seems to have a memory leak.

I opened and closed a simple script LWLibavVideoSource("C:\test.mkv.lwi") pointing to test.mkv - lwi size is ~50 MB. During every open/close cycle the memory increase and will not be freed completly. I made those tests with r715 v2

Thanks for a great plugin!

tophf commented 10 years ago

I also encountered this bug while using LWLibavVideoSource in AvsPmod after refreshing the video multiple times.

VFR-maniac commented 10 years ago

Can I close this issue now?

tophf commented 10 years ago

Can I close this issue now?

I'd say yes since r720_v2 seems okay, anyway github allows issues to be reopened later if I am not mistaken.

VFR-maniac commented 10 years ago

OK. I just close now.