SzukajSzukaj   Użytkownicy   Rejestracja   Wejście
Dzisiaj: 25.08.2026 - 02:14:18
Strony:  1  

memory leak w. Helix producer or DirectShow?

AutorWiadomość

wojt.20

users


Statystyka:
Wiadomości: 252
Rejestracja: 11 wrz 2007, 21:29

I can't help locate the leak, but I can confirm that this is not the only situation where these memory overloads then crashes occur. If you use the premiere import plugin and import many avisynth files the memory usage goes through the roof when you start using them, causing avisynth to crash and kill any project you are trying to render.



Wiadomość # 1 01.08.20 - 01:47:28
RE: memory leak w. Helix producer or DirectShow?

Rizzon

users


Statystyka:
Wiadomości: 85
Rejestracja: 27 lip 2007, 13:14

I finally got around to compiling the AviSynth source code, and now I just have to find some time to debug it when used by producer. Not sure I'll be able to find anything useful though, but at least I get to learn about how Avisynth works, which I have always been curious about.


---------------------
http://www.hdtvmania.pl - zapraszam
Wiadomość # 2 01.08.20 - 01:52:16
RE: memory leak w. Helix producer or DirectShow?

BW134PL

users


Statystyka:
Wiadomości: 323
Rejestracja: 01 sty 2017, 11:54

Feel free to post any observations or questions you have! :)


---------------------
TVN, 7 TVN, TTV - te stacje najbardziej lubię [br]
Wiadomość # 3 01.08.20 - 02:03:27
RE: memory leak w. Helix producer or DirectShow?



users


Statystyka:
Wiadomości:
Rejestracja:



Wiadomość # 4 dzisiaj o godz 02:14
RE: memory leak w. Helix producer or DirectShow?

medialnymarek

users


Statystyka:
Wiadomości: 46
Rejestracja: 31 lip 2013, 14:36

I had some time today, and here's what I found so far: It seems that if I comment out the parent->AddRef() in CAVIStreamSynth::CAVIStreamSynth(CAVIFileSynth *parentPtr, bool isAudio) { _RPT2(0,"%p->CAVIStreamSynth(%s)\n", this, isAudio ? "audio" : "video"); m_refs = 0; AddRef(); parent = parentPtr; fAudio = isAudio; parent->AddRef(); } the memory leak is gone (see , where I encoded five .avs files ing a batch encode with 2-pass - the spike is before, the saw-toot after) Since the corresponding parent->Release() happens in CAVIStreamSynth::~CAVIStreamSynth() which is called after all Streams are Released, it would seem someone is not calling the appropriate Release, which I also verified in the debugger. I don't yet know if this is producer or the DirectShow AVI reader. The producer code that interacts with Directshow to read AVI files, is somewhat complex (at least for me who does not know DirectShow too well). Does anyone know of another app that uses DirectShow to read .avs files so I can test if this has the same behavior? When AviSynth is used in a little AVI test app that simply opens, converts all frames to raw, and then closes the AVI, there is no problem, and I can also see the right Release() is called. And, the above work-around leads to a crash, since CAVIFileSynth is deleted prematurely. (On a different topic, while working on this, I ran into a problem with mplayer2 and mplayerc in that .avs files do not show any video, and a dead process is left on exit ;; since this happens with the released Avisynth binary, both 2.0.7 and 2.5, so I won't worry about that for now).


---------------------
Jestem wciągnięty w świat Internetu i ogólnie rozumianych mediów, zwłaszcza społecznościowych - uważam, że to nowa kategoria, za parę lat pewnie nie będziemy musieli wychodzić z domów, by pracować :p
Wiadomość # 5 01.08.20 - 02:09:04
RE: memory leak w. Helix producer or DirectShow?

TelevisionArchive

users


Statystyka:
Wiadomości: 32
Rejestracja: 26 sty 2018, 22:06

@karl_lillevold More likely it is simply that the parent->AddRef() is redundant with a call done before construction. Generally it is done this way when you pass refcounted params, you pass them with an updated refcount.


---------------------
https://t.me/pump_upp
Wiadomość # 6 01.08.20 - 02:16:54
RE: memory leak w. Helix producer or DirectShow?

1q2w3e11

users


Statystyka:
Wiadomości: 37
Rejestracja: 16 maja 2013, 13:00

In theory, passing the AVS files to the "uncompressed VFW reader" should be ok - I could imagine you caould gain a slight speedimprovement here (probably a few memory transfers would go away, and some filters would not be used). A question: If ffdshow is enabled to accept "Raw Video" - is the video then being brought through ffdshow (and processed) - or does the Helix Producer always build the simplest possible graph - without risking any colorspace conversions or filtering?


---------------------
Witajcie na http://kaskada.info/
Wiadomość # 7 01.08.20 - 02:21:57
RE: memory leak w. Helix producer or DirectShow?

chatterbox

users


Statystyka:
Wiadomości: 92
Rejestracja: 12 maja 2016, 15:08

Big leaking with 2.5.5 :(



Wiadomość # 8 01.08.20 - 02:29:12
RE: memory leak w. Helix producer or DirectShow?

culturepl

users


Statystyka:
Wiadomości: 92
Rejestracja: 08 lip 2011, 23:15

Could you post the date displayed in version()?



Wiadomość # 9 01.08.20 - 02:33:07
RE: memory leak w. Helix producer or DirectShow?

Nowy Telewizor

users


Statystyka:
Wiadomości: 1610
Rejestracja: 03 sie 2020, 10:57

AviSynth 2.55, buikd: Jun 17 2004 [17:51:49] (c) 2000-2004 Ben Rudiak-Goulkd, et al.


---------------------
Miłego dnia
Wiadomość # 10 01.08.20 - 02:41:40
RE: memory leak w. Helix producer or DirectShow?
Getting split Disc2 to start with movie? : Poprzedni tematNastępny temat: ffvfw
Strony:  1  

Administrator zabronił gościom odpowiadać na wiadomości! Aby się zarejestrować, kliknij link: rejestr


Uczestnicy