HANDLE leak when decoding

Any other question that don't fit into the other support categorizes.
Post Reply
aholzinger
Posts: 6
Joined: Sat Nov 29, 2014 11:40 am

HANDLE leak when decoding

Post by aholzinger » Thu Aug 11, 2016 4:33 pm

Hi,

I'm using the 2.8.6 x64 shared build (https://ffmpeg.zeranoe.com/builds/win64 ... -opencl.7z).

avcodec-56.dll is leaking 2 Windows handles (HANDLE) every time a video file is decoded.

As it's already documented here (https://trac.ffmpeg.org/ticket/3116) that this can come from the pthreads-win32, I did the following:

I built the same sources myself with these toolchains under Windows:
- MinGW/MSYS with MSVC14 and w32threads
- MinGW-w64 and GCC 6.1.0 and w32threads
- MinGW-w64 and GCC 5.3.0 and MinGW-w64 pthreads
- MinGW-w64 and GCC 6.1.0 and pthreads-win32 2.9.1 using the shared pthreadsGC2.dll

Neither of these builds is loosing handles.

So the question now is: Why does the Zeranoe build loose handles as it's using mingw-w64-build-3.6.7 that also uses pthreads-win32 2.9.1?

Any hint would be very much appreciated!

rogerdpack
Posts: 1876
Joined: Fri Aug 05, 2011 9:56 pm

Re: HANDLE leak when decoding

Post by rogerdpack » Tue Aug 16, 2016 1:23 pm


aholzinger
Posts: 6
Joined: Sat Nov 29, 2014 11:40 am

Re: HANDLE leak when decoding

Post by aholzinger » Wed Aug 17, 2016 1:42 pm

Hi Roger,

where would I find a shared x64 2.8.x version?

I can't (yet) make use of the 3.1.x version unfortunately.

rogerdpack
Posts: 1876
Joined: Fri Aug 05, 2011 9:56 pm

Re: HANDLE leak when decoding

Post by rogerdpack » Fri Aug 19, 2016 1:34 pm


aholzinger
Posts: 6
Joined: Sat Nov 29, 2014 11:40 am

Re: HANDLE leak when decoding

Post by aholzinger » Fri Aug 19, 2016 5:36 pm

That must be a misunderstanding.
This is exactly the version I use which is showing the handle leak.

You suggested to look here:
My question
where would I find a shared x64 2.8.x version?
was referring to exactly this link. There I didn't find a 2.8.x version.

So how can I then find out if there is the
Same behavior here?

rogerdpack
Posts: 1876
Joined: Fri Aug 05, 2011 9:56 pm

Re: HANDLE leak when decoding

Post by rogerdpack » Tue Aug 23, 2016 1:31 pm

so you're looking for some type of different 2.8.x version?

aholzinger
Posts: 6
Joined: Sat Nov 29, 2014 11:40 am

Re: HANDLE leak when decoding

Post by aholzinger » Wed Aug 24, 2016 12:04 pm

Right!

The ones I build myself don't show the issue. Only the ones from Zeranoe.

I want to find out where the leak is coming from. Unfortunately I'm not very competetent in doing a cross build for Windows under Linux.

rogerdpack
Posts: 1876
Joined: Fri Aug 05, 2011 9:56 pm

Re: HANDLE leak when decoding

Post by rogerdpack » Wed Aug 31, 2016 1:24 pm

aholzinger wrote:Right!

The ones I build myself don't show the issue. Only the ones from Zeranoe.

I want to find out where the leak is coming from. Unfortunately I'm not very competetent in doing a cross build for Windows under Linux.
I have a script meant to simplify it, do mine show the problem?

https://github.com/rdp/ffmpeg-windows-build-helpers

Post Reply
'