Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Crash Of X264vfw
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
ale5000
Posted: Dec 19 2011, 09:57 PM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



Sample file (Video.avi - 1.94 MB): http://www.multiupload.com/SZ4YKJOD4D

- Video => Fast recompress
- Compression => x264vfw
- File => Save as AVI
- Crash

CODE
VirtualDub crash report -- build 34688 (release)
--------------------------------------

Disassembly:
67ecfd40: 5f              pop    edi
67ecfd41: 890c24          mov    [esp], ecx
67ecfd44: ff1564c4ff67    call   dword ptr [67ffc464]
67ecfd4a: 83ec04          sub    esp, 04h
67ecfd4d: eb8c            jmp    67ecfcdb
67ecfd4f: 90              nop    
67ecfd50: 8b4f08          mov    ecx, [edi+08h]
67ecfd53: 85c9            test   ecx, ecx
67ecfd55: 748d            jz     67ecfce4
67ecfd57: 891c24          mov    [esp], ebx
67ecfd5a: e8a1caffff      call   67ecc800
67ecfd5f: b816000000      mov    eax, 00000016
67ecfd64: 837c245802      cmp    dword ptr [esp+58h], 02h
67ecfd69: 7786            ja     67ecfcf1
67ecfd6b: 8b542458        mov    edx, [esp+58h]
67ecfd6f: b030            mov    al, 30h
67ecfd71: 85d2            test   edx, edx
67ecfd73: 0f8578ffffff    jnz    67ecfcf1
67ecfd79: 8b44245c        mov    eax, [esp+5ch]
67ecfd7d: 8b00            mov    eax, [eax]
67ecfd7f: c7442408000000  mov    dword ptr [esp+08h], 00000000
         00              
67ecfd87: 893c24          mov    [esp], edi
67ecfd8a: 896c2404        mov    [esp+04h], ebp
67ecfd8e: 8944240c        mov    [esp+0ch], eax
67ecfd92: e849cbffff      call   67ecc8e0
67ecfd97: e955ffffff      jmp    67ecfcf1
67ecfd9c: 8d742600        lea    esi, [esi+00h]
67ecfda0: 890c24          mov    [esp], ecx
67ecfda3: 894c241c        mov    [esp+1ch], ecx
67ecfda7: c7442404ffffff  mov    dword ptr [esp+04h], ffffffff
         ff              
67ecfdaf: ff1544c5ff67    call   dword ptr [67ffc544]
67ecfdb5: 83ec08          sub    esp, 08h
67ecfdb8: 8b4c241c        mov    ecx, [esp+1ch]
67ecfdbc: eb83            jmp    67ecfd41
67ecfdbe: 6690            nop    
67ecfdc0: 83ec4c          sub    esp, 4ch
67ecfdc3: 89742440        mov    [esp+40h], esi
67ecfdc7: 8b742450        mov    esi, [esp+50h]
67ecfdcb: 895c243c        mov    [esp+3ch], ebx
67ecfdcf: 897c2444        mov    [esp+44h], edi
67ecfdd3: 896c2448        mov    [esp+48h], ebp
67ecfdd7: 8b1e            mov    ebx, [esi]      <-- FAULT
67ecfdd9: 85db            test   ebx, ebx
67ecfddb: 7456            jz     67ecfe33
67ecfddd: 83fbfc          cmp    ebx, 0fch
67ecfde0: 776e            ja     67ecfe50
67ecfde2: 8b7b08          mov    edi, [ebx+08h]
67ecfde5: 83ff00          cmp    edi, 00h
67ecfde8: 0f8c05010000    jl     67ecfef3
67ecfdee: 6690            nop    
67ecfdf0: 0f85d1010000    jnz    67ecffc7
67ecfdf6: b801000000      mov    eax, 00000001
67ecfdfb: 8703            xchg   [ebx], eax
67ecfdfd: 85c0            test   eax, eax
67ecfdff: 0f84bb010000    jz     67ecffc0
67ecfe05: 8b3d44c5ff67    mov    edi, [67ffc544]
67ecfe0b: beffffffff      mov    esi, ffffffff
67ecfe10: 89f0            mov    eax, esi
67ecfe12: 8703            xchg   [ebx], eax
67ecfe14: 85c0            test   eax, eax
67ecfe16: 0f84a4010000    jz     67ecffc0
67ecfe1c: c7442404ffffff  mov    dword ptr [esp+04h], ffffffff
         ff              
67ecfe24: 8b4314          mov    eax, [ebx+14h]
67ecfe27: 890424          mov    [esp], eax
67ecfe2a: ffd7            call   edi
67ecfe2c: 83ec08          sub    esp, 08h
67ecfe2f: 85c0            test   eax, eax
67ecfe31: 74dd            jz     67ecfe10
67ecfe33: b816000000      mov    eax, 00000016
67ecfe38: 8b5c243c        mov    ebx, [esp+3ch]
67ecfe3c: 8b742440        mov    esi, [esp+40h]

Built on Althena on Sun Dec 11 13:52:42 2011 using compiler version 1400

Windows 5.1 (Windows XP x86 build 2600) [Service Pack 3]
Memory status: virtual free 1936M/2048M, commit limit 2406M, physical total 2048M

EAX = 00000014
EBX = 00000014
ECX = 00000000
EDX = 03142010
EBP = 00000001
ESI = 00000020
EDI = 00000024
ESP = 03d8d560
EIP = 67ecfdd7
EFLAGS = 00010206
FPUCW = ffff027f
FPUTW = ffffffff

Crash reason: Access Violation

Crash context:
An out-of-bounds memory access (access violation) occurred in module 'x264vfw'...

...reading address 00000020...

...while compressing frame 0 from 00ccbb80 to 00cdbc88 using codec "x264vfw - H.264/MPEG-4 AVC codec" (w32videocodecpack.cpp:787)...

...while running thread "Video compressor" (thread.cpp:179).

Pointer dumps:

EDX   03142010: 0000077a 00000001 00000001 00000001 00000000 00000000 00000020 00000036
ESP   03d8d560: 7c92005d 41a0b313 00bc0000 00000000 77bfc2e3 031684bc 03142578 03168250
     03d8d580: 0000026c 03142578 03168250 0000026c 03d8d574 0000016e 03140980 00000014
     03d8d5a0: 00000020 00000024 00000001 67f275f8 00000020 0323a360 0000026c 03142010
     03d8d5c0: 0000002c 03142010 67b761e0 67f31121 00000014 00000002 00000014 03142010

Thread call stack:
67ecfdd7: x264vfw!Configure [67b40000+143b0+37ba27]
7c92005d: ntdll!RtlFreeHeap [7c910000+ff2d+130]
77bfc2e3: msvcrt!free [77be0000+1c21b+c8]
67f275f8: x264vfw!Configure [67b40000+143b0+3d3248]
67f31121: x264vfw!Configure [67b40000+143b0+3dcd71]
67b79d8c: x264vfw!Configure [67b40000+143b0+259dc]
67b42123: x264vfw!00002123
67b42bae: x264vfw!00002bae
67b53ad3: x264vfw!DriverProc [67b40000+13870+263]
7c920323: ntdll!RtlAllocateHeap [7c910000+100c4+25f]
7c920323: ntdll!RtlAllocateHeap [7c910000+100c4+25f]
7c80b7d0: kernel32!GetModuleHandleA [7c800000+b741+8f]
7c80b7a4: kernel32!GetModuleHandleA [7c800000+b741+63]
7c80b7b9: kernel32!GetModuleHandleA [7c800000+b741+78]
7c925239: ntdll!bsearch [7c910000+151f3+46]
7c925239: ntdll!bsearch [7c910000+151f3+46]
7c92542b: ntdll!bsearch [7c910000+151f3+238]
7c9257c1: ntdll!RtlHashUnicodeString [7c910000+1565d+164]
7c92534a: ntdll!bsearch [7c910000+151f3+157]
7c925742: ntdll!RtlHashUnicodeString [7c910000+1565d+e5]
7c9255ed: ntdll!RtlFindActivationContextSectionString [7c910000+15511+dc]
7c925ce9: ntdll!RtlDosApplyFileIsolationRedirection_Ustr [7c910000+1599b+34e]
7c925d47: ntdll!RtlDosApplyFileIsolationRedirection_Ustr [7c910000+1599b+3ac]
7c9258ff: ntdll!RtlHashUnicodeString [7c910000+1565d+2a2]
7c925bf8: ntdll!RtlDosApplyFileIsolationRedirection_Ustr [7c910000+1599b+25d]
7c925c5d: ntdll!RtlDosApplyFileIsolationRedirection_Ustr [7c910000+1599b+2c2]
7c924a53: ntdll!RtlGetLongestNtPathLength [7c910000+149d9+7a]
7c924a53: ntdll!RtlGetLongestNtPathLength [7c910000+149d9+7a]
7c922d04: ntdll!LdrLockLoaderLock [7c910000+12c63+a1]
7c922d71: ntdll!LdrUnlockLoaderLock [7c910000+12d19+58]
7c922d78: ntdll!LdrUnlockLoaderLock [7c910000+12d19+5f]
7c926768: ntdll!LdrGetDllHandleEx [7c910000+166c1+a7]
7c922d78: ntdll!LdrUnlockLoaderLock [7c910000+12d19+5f]
7c92690e: ntdll!LdrGetDllHandleEx [7c910000+166c1+24d]
7c9268d6: ntdll!LdrGetDllHandleEx [7c910000+166c1+215]
7c9268d6: ntdll!LdrGetDllHandleEx [7c910000+166c1+215]
7c9268d6: ntdll!LdrGetDllHandleEx [7c910000+166c1+215]
7c9266b8: ntdll!LdrGetDllHandle [7c910000+166a0+18]
7c80e534: kernel32!GetModuleHandleW [7c800000+e4dd+57]
7c80e544: kernel32!GetModuleHandleW [7c800000+e4dd+67]
7c80e534: kernel32!GetModuleHandleW [7c800000+e4dd+57]
7c925239: ntdll!bsearch [7c910000+151f3+46]
7c92542b: ntdll!bsearch [7c910000+151f3+238]
7c9257c1: ntdll!RtlHashUnicodeString [7c910000+1565d+164]
7c925742: ntdll!RtlHashUnicodeString [7c910000+1565d+e5]
7c9255ed: ntdll!RtlFindActivationContextSectionString [7c910000+15511+dc]
7c925ce9: ntdll!RtlDosApplyFileIsolationRedirection_Ustr [7c910000+1599b+34e]
7c925d47: ntdll!RtlDosApplyFileIsolationRedirection_Ustr [7c910000+1599b+3ac]
7c9258ff: ntdll!RtlHashUnicodeString [7c910000+1565d+2a2]
7c925bf8: ntdll!RtlDosApplyFileIsolationRedirection_Ustr [7c910000+1599b+25d]
7c925c5d: ntdll!RtlDosApplyFileIsolationRedirection_Ustr [7c910000+1599b+2c2]
7c925c5d: ntdll!RtlDosApplyFileIsolationRedirection_Ustr [7c910000+1599b+2c2]
7c920385: ntdll!RtlImageDirectoryEntryToData [7c910000+10346+3f]
7c920222: ntdll!RtlAllocateHeap [7c910000+100c4+15e]
7c920222: ntdll!RtlAllocateHeap [7c910000+100c4+15e]
7c92019b: ntdll!RtlAllocateHeap [7c910000+100c4+d7]
7c9201db: ntdll!RtlAllocateHeap [7c910000+100c4+117]
7c924a53: ntdll!RtlGetLongestNtPathLength [7c910000+149d9+7a]
7c922d04: ntdll!LdrLockLoaderLock [7c910000+12c63+a1]
7c922d71: ntdll!LdrUnlockLoaderLock [7c910000+12d19+58]
7c922d78: ntdll!LdrUnlockLoaderLock [7c910000+12d19+5f]
7c926768: ntdll!LdrGetDllHandleEx [7c910000+166c1+a7]
7c922d78: ntdll!LdrUnlockLoaderLock [7c910000+12d19+5f]
7c92690e: ntdll!LdrGetDllHandleEx [7c910000+166c1+24d]
005ed4e7: ValidateScopeTableHandlers()
005ed681: _ValidateEH3RN()
7c920323: ntdll!RtlAllocateHeap [7c910000+100c4+25f]
005e1a99: _except_handler3()
7c9132a8: ntdll!RtlConvertUlongToLargeInteger [7c910000+323e+6a]
7c91327a: ntdll!RtlConvertUlongToLargeInteger [7c910000+323e+3c]
7c93aa0f: ntdll!towlower [7c910000+2a846+1c9]
7c927ec0: ntdll!LdrGetProcedureAddress [7c910000+17ea8+18]
7c80ae7e: kernel32!GetProcAddress [7c800000+ae40+3e]
7c80ae90: kernel32!GetProcAddress [7c800000+ae40+50]
78139c4d: MSVCR80!___unguarded_readlc_active_add_func [78130000+9a86+1c7]
7c91e48a: ntdll!KiUserExceptionDispatcher [7c910000+e47c+e]
7c91d06a: ntdll!NtContinue [7c910000+d05e+c]
7c91e498: ntdll!KiUserExceptionDispatcher [7c910000+e47c+1c]
7c812afb: kernel32!RaiseException [7c800000+12aa9+52]
7c920222: ntdll!RtlAllocateHeap [7c910000+100c4+15e]
7c921028: ntdll!wcsncpy [7c910000+1057f+aa9]
7c921086: ntdll!wcsncpy [7c910000+1057f+b07]
7c9201db: ntdll!RtlAllocateHeap [7c910000+100c4+117]
7c812afb: kernel32!RaiseException [7c800000+12aa9+52]
75df1938: MSVFW32!ICSendMessage [75df0000+190d+2b]
75df1938: MSVFW32!ICSendMessage [75df0000+190d+2b]
75df4db0: MSVFW32!ICCompress [75df0000+4d4d+63]
005aa82e: VDVideoCompressorVCM::PackFrameInternal()
005ab2c5: VDVideoCompressorVCM::CompressFrame()
7c9201db: ntdll!RtlAllocateHeap [7c910000+100c4+117]
005dfa06: malloc()
0043a00a: ?$vdfastdeque::push_back_extend()
0048a21b: VDThreadedVideoCompressor::ProcessFrame()
7c812afb: kernel32!RaiseException [7c800000+12aa9+52]
0048abbc: VDThreadedVideoCompressor::RunSlave()
0048ac2c: VDThreadedVideoCompressorSlave::ThreadRun()
0051712f: VDThread::StaticThreadStart()
005e4b7e: _callthreadstartex()
005e4c23: _threadstartex@4()
7c80b729: kernel32!GetModuleFileNameA [7c800000+b56f+1ba]

-- End of report


--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
BugMaster
Posted: Dec 21 2011, 08:26 AM


Advanced Member


Group: Members
Posts: 50
Member No.: 23001
Joined: 6-February 08



ale5000
That is bug in libx264. It is caused by use of sliced-threading and very low height of your sample (<= 112). It probably will be fixed with next libx264 update. For now don't use sliced-threading on such samples (frame-threading is ok).
 
     Top
ale5000
Posted: Dec 23 2011, 05:19 PM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



Is there already a bug report for this problem in libx264 or I should report it?

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
BugMaster
Posted: Dec 25 2011, 12:13 AM


Advanced Member


Group: Members
Posts: 50
Member No.: 23001
Joined: 6-February 08



It is already fixed in development repository: https://github.com/DarkShikari/x264-devel/c...2fbca7d68c1b007 (this link can and most probably will broke in future if something will be changed in patches for release)
 
     Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
3 replies since Dec 19 2011, 09:57 PM Track this topic | Email this topic | Print this topic

<< Back to Codec Discussion