Most of time everything goes well. But sometimes video disappears on my window and I see (via ProcessExplorer) GDI handles leaking.
GDI handles count increase for about 10000 and after that it's impossible to create any more window for application.
When handles count just began to increase I tried to access my process via gdb and see following messages:
Code: Select all
warning: core input debug: Buffering 32%
[New Thread 75884.0x10168]
warning: core input debug: Buffering 64%
warning: core input debug: Buffering 96%
warning: core input debug: Stream buffering done (1279 ms in 8 ms)
[New Thread 75884.0x10164]
[New Thread 75884.0x1016c]
warning: core spu text debug: looking for text renderer module matching "any": 2
candidates
warning: core audio output warning: playback way too late (29209755): flushing b
uffers
[Thread 75884.0x10e0c exited with code 0]
warning: wasapi generic debug: reset
warning: mmdevice audio output debug: state changed: 0
warning: core audio output warning: playback too late (29217755): up-sampling
[Thread 75884.0x101cc exited with code 0]
warning: mmdevice audio output debug: state changed: 1
warning: wasapi generic debug: reset
warning: mmdevice audio output debug: state changed: 0
warning: core spu text debug: using text renderer module "freetype"
warning: core scale debug: looking for video filter2 module matching "any": 61 c
andidates
warning: swscale scale debug: 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma
: RGBA with scaling using Bicubic (good quality)
warning: core scale debug: using video filter2 module "swscale"
warning: core scale debug: looking for video filter2 module matching "any": 61 c
andidates
warning: yuvp scale debug: YUVP to YUVA converter
warning: core scale debug: using video filter2 module "yuvp"
warning: core video output debug: Deinterlacing available
warning: core video output debug: deinterlace 0, mode blend, is_needed 0
warning: core window debug: looking for vout window module matching "embed-hwnd,
any": 3 candidates
warning: core window debug: using vout window module "drawable"
[New Thread 75884.0x10158]
warning: core video output debug: Opening vout display wrapper
warning: core vout display debug: looking for vout display module matching "any"
: 12 candidates
[New Thread 75884.0x10150]
[Thread 75884.0x10150 exited with code 0]
warning: direct3d9 vout display debug: Using Direct3D9 Extended API!
warning: direct3d9 vout display debug: creating Vout EventThread
[New Thread 75884.0x1014c]
warning: direct3d9 vout display debug: Win32VoutCreateWindow
warning: core vout display debug: VoutDisplayEvent 'resize' 352x288
warning: direct3d9 vout display error: Win32VoutCreateWindow RegisterClass FAILE
D (err=1410)
[Thread 75884.0x1014c exited with code 0]
warning: direct3d9 vout display debug: Direct3D9 scene released successfully
warning: direct3d9 vout display error: SetThumbNailClip failed
[Thread 75884.0x10198 exited with code 0]
warning: direct3d11 vout display error: cannot load d3dcompiler.dll, aborting
[New Thread 75884.0x10134]
warning: directdraw vout display debug: creating Vout EventThread
[New Thread 75884.0x10130]
warning: directdraw vout display debug: Win32VoutCreateWindow
warning: core vout display debug: VoutDisplayEvent 'resize' 352x288
warning: directdraw vout display error: Win32VoutCreateWindow RegisterClass FAIL
ED (err=1410)
[Thread 75884.0x10130 exited with code 0]
warning: directdraw vout display error: SetThumbNailClip failed
warning: glwin32 vout display debug: creating Vout EventThread
[New Thread 75884.0x10128]
warning: glwin32 vout display debug: Win32VoutCreateWindow
warning: core vout display debug: VoutDisplayEvent 'resize' 352x288
warning: glwin32 vout display error: Win32VoutCreateWindow RegisterClass FAILED
(err=1410)
[Thread 75884.0x10128 exited with code 0]
warning: glwin32 vout display error: SetThumbNailClip failed
warning: direct2d vout display debug: D2D1.DLL loaded
warning: direct2d vout display debug: creating Vout EventThread
[New Thread 75884.0x10124]
warning: direct2d vout display debug: Win32VoutCreateWindow
warning: core vout display debug: VoutDisplayEvent 'resize' 352x288
warning: direct2d vout display error: Win32VoutCreateWindow RegisterClass FAILED
(err=1410)
[Thread 75884.0x10124 exited with code 0]
warning: direct2d vout display debug: Destroyed
warning: direct2d vout display error: SetThumbNailClip failed
warning: wingdi vout display debug: creating Vout EventThread
[New Thread 75884.0x1011c]
warning: wingdi vout display debug: Win32VoutCreateWindow
warning: core vout display debug: VoutDisplayEvent 'resize' 352x288
warning: wingdi vout display error: Win32VoutCreateWindow RegisterClass FAILED (
err=1410)
[Thread 75884.0x1011c exited with code 0]
warning: wingdi vout display error: SetThumbNailClip failed
warning: core vout display debug: VoutDisplayEvent 'resize' 352x288
warning: core vout display debug: no vout display modules matched
warning: core video output error: video output creation failed
[Thread 75884.0x10158 exited with code 0]
warning: core spu text debug: removing module "freetype"
warning: core scale debug: removing module "yuvp"
warning: core scale debug: removing module "swscale"
warning: core decoder error: failed to create video output
warning: avcodec decoder warning: cannot decode one frame (524 bytes)
warning: core spu text debug: looking for text renderer module matching "any": 2
candidates
warning: core spu text debug: using text renderer module "freetype"
warning: core scale debug: looking for video filter2 module matching "any": 61 c
andidates
warning: swscale scale debug: 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma
: RGBA with scaling using Bicubic (good quality)
warning: core scale debug: using video filter2 module "swscale"
warning: core scale debug: looking for video filter2 module matching "any": 61 c
andidates
warning: yuvp scale debug: YUVP to YUVA converter
warning: core scale debug: using video filter2 module "yuvp"
warning: core video output debug: Deinterlacing available
warning: core video output debug: deinterlace 0, mode blend, is_needed 0
warning: core window debug: looking for vout window module matching "embed-hwnd,
any": 3 candidates
warning: core window debug: using vout window module "drawable"
[New Thread 75884.0x10118]
warning: core video output debug: Opening vout display wrapper
warning: core vout display debug: looking for vout display module matching "any"
: 12 candidates
[New Thread 75884.0x1009c]
[Thread 75884.0x1009c exited with code 0]
warning: direct3d9 vout display debug: Using Direct3D9 Extended API!
warning: direct3d9 vout display debug: creating Vout EventThread
[New Thread 75884.0x1008c]
warning: direct3d9 vout display debug: Win32VoutCreateWindow
warning: core vout display debug: VoutDisplayEvent 'resize' 352x288
warning: direct3d9 vout display error: Win32VoutCreateWindow RegisterClass FAILE
D (err=1410)
[Thread 75884.0x1008c exited with code 0]
warning: direct3d9 vout display debug: Direct3D9 scene released successfully
warning: direct3d9 vout display error: SetThumbNailClip failed
[New Thread 75884.0x10088]
[Thread 75884.0x10134 exited with code 0]
warning: direct3d11 vout display error: cannot load d3dcompiler.dll, aborting
warning: directdraw vout display debug: creating Vout EventThread
[New Thread 75884.0x10074]
warning: directdraw vout display debug: Win32VoutCreateWindow
warning: core vout display debug: VoutDisplayEvent 'resize' 352x288
warning: directdraw vout display error: Win32VoutCreateWindow RegisterClass FAIL
ED (err=1410)
[Thread 75884.0x10074 exited with code 0]
warning: directdraw vout display error: SetThumbNailClip failed
warning: glwin32 vout display debug: creating Vout EventThread
[New Thread 75884.0x10070]
warning: glwin32 vout display debug: Win32VoutCreateWindow
warning: core vout display debug: VoutDisplayEvent 'resize' 352x288
warning: glwin32 vout display error: Win32VoutCreateWindow RegisterClass FAILED
(err=1410)
[Thread 75884.0x10070 exited with code 0]
warning: glwin32 vout display error: SetThumbNailClip failed
warning: direct2d vout display debug: D2D1.DLL loaded
warning: direct2d vout display debug: creating Vout EventThread
[New Thread 75884.0x1006c]
warning: direct2d vout display debug: Win32VoutCreateWindow
warning: core vout display debug: VoutDisplayEvent 'resize' 352x288
warning: direct2d vout display error: Win32VoutCreateWindow RegisterClass FAILED
(err=1410)
[Thread 75884.0x1006c exited with code 0]
warning: direct2d vout display debug: Destroyed
warning: direct2d vout display error: SetThumbNailClip failed
warning: wingdi vout display debug: creating Vout EventThread
[New Thread 75884.0x10068]
warning: wingdi vout display debug: Win32VoutCreateWindow
warning: core vout display debug: VoutDisplayEvent 'resize' 352x288
warning: wingdi vout display error: Win32VoutCreateWindow RegisterClass FAILED (
err=1410)
[Thread 75884.0x10068 exited with code 0]
warning: wingdi vout display error: SetThumbNailClip failed
warning: core vout display debug: VoutDisplayEvent 'resize' 352x288
warning: core vout display debug: no vout display modules matched
warning: core video output error: video output creation failed
[Thread 75884.0x10118 exited with code 0]
warning: core spu text debug: removing module "freetype"
warning: core scale debug: removing module "yuvp"
warning: core scale debug: removing module "swscale"
warning: core decoder error: failed to create video output
warning: avcodec decoder warning: cannot decode one frame (524 bytes)
warning: core spu text debug: looking for text renderer module matching "any": 2
candidates
[New Thread 75884.0x1004c]
Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 75884.0x1004c]
0x76f7000d in ntdll!DbgBreakPoint () from C:\Windows\SysWOW64\ntdll.dll
(gdb)
Code: Select all
Win32VoutCreateWindow RegisterClass FAILED (err=1410)
Another question is "why Win32VoutCreateWindow failed?"