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.

 
Vd Crash With Unusual Resize
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
TCmullet
Posted: Jun 8 2012, 11:41 AM


Advanced Member


Group: Members
Posts: 312
Member No.: 3970
Joined: 2-May 03



This happened with 1.10.1. So I got 1.10.2 and still happened.

Using internal resize to resize from 1248x704 (hufyuv) to 850x480 (hufyuv). Encoding finishes. Playing the resultant file in WMP gives black and white image. Loading in 1.10.2 gives this crash immediately:
CODE

VirtualDub crash report -- build 34807 (release)
--------------------------------------

Disassembly:
10006420: 0475            add    al, 75h
10006422: f0              lock  
10006423: 03f3            add    esi, ebx
10006425: 3bf5            cmp    esi, ebp
10006427: 72e5            jc     1000640e
10006429: 5b              pop    ebx
1000642a: 5e              pop    esi
1000642b: 5d              pop    ebp
1000642c: c3              ret    
1000642d: 8d4900          lea    ecx, [ecx+00h]
10006430: 1000            adc    [eax], al
10006432: 1000            adc    [eax], al
10006434: 0000            add    [eax], al
10006436: 0000            add    [eax], al
10006438: 800080          add    byte ptr [eax], 80h
1000643b: 0080008000ff    add    [eax-ff8000], al
10006441: 00ff            add    bh, bh
10006443: 00ff            add    bh, bh
10006445: 00ff            add    bh, bh
10006447: 0000            add    [eax], al
10006449: 2000            and    [eax], al
1000644b: 0000            add    [eax], al
1000644d: 2000            and    [eax], al
1000644f: 00854a000085    add    [ebp-7affffb6], al
10006455: 4a              dec    edx
10006456: 0000            add    [eax], al
10006458: 0000            add    [eax], al
1000645a: 1333            adc    esi, [ebx]
1000645c: 0000            add    [eax], al
1000645e: 1333            adc    esi, [ebx]
10006460: 77f3            ja     10006455
10006462: fc              cld    
10006463: e577            in     eax, 77h
10006465: f3fc            cld    
10006467: e58d            in     eax, 8dh
10006469: 40              inc    eax
1000646a: 0000            add    [eax], al
1000646c: 8d4000          lea    eax, [eax+00h]
1000646f: 005657          add    [esi+57h], dl
10006472: 8b442418        mov    eax, [esp+18h]
10006476: 8b742414        mov    esi, [esp+14h]
1000647a: 8b7c2410        mov    edi, [esp+10h]
1000647e: ba30640010      mov    edx, 10006430
10006483: 8d4ef8          lea    ecx, [esi-08h]
10006486: 2bf0            sub    esi, eax
10006488: 8da42400000000  lea    esp, [esp+00]
1000648f: 8da42400000000  lea    esp, [esp+00]
10006496: 8da42400000000  lea    esp, [esp+00]
1000649d: 8d4900          lea    ecx, [ecx+00h]
100064a0: 0f6e06          movd   mm0, [esi]      <-- FAULT
100064a3: 0f6e6e04        movd   mm5, [esi+04h]
100064a7: 0f7fc1          movq   mm1, mm0
100064aa: 0fdb4210        pand   mm0, [edx+10h]
100064ae: 0f7fec          movq   mm4, mm5
100064b1: 0f71d108        psrlw  mm1, 08h
100064b5: 0fdb6210        pand   mm4, [edx+10h]
100064b9: 0f7fea          movq   mm2, mm5
100064bc: 0f71d508        psrlw  mm5, 08h
100064c0: 0ff902          psubw  mm0, [edx]
100064c3: 0f6e7608        movd   mm6, [esi+08h]
100064c7: 0f71d208        psrlw  mm2, 08h
100064cb: 0ff922          psubw  mm4, [edx]
100064ce: 0ffdd1          paddw  mm2, mm1
100064d1: 0f71d608        psrlw  mm6, 08h
100064d5: 0ff94a08        psubw  mm1, [edx+08h]
100064d9: 0ffdf5          paddw  mm6, mm5
100064dc: 0f73f220        psllq  mm2, 20h
100064e0: 0ff96a08        psubw  mm5, [edx+08h]
100064e4: 0f61c2          punpcklwd mm0, mm2
100064e7: 0f73f620        psllq  mm6, 20h
100064eb: 0ff54220        pmaddwd mm0, [edx+20h]
100064ef: 0f61e6          punpcklwd mm4, mm6
100064f2: 0ffdc9          paddw  mm1, mm1
100064f5: 0ff56220        pmaddwd mm4, [edx+20h]
100064f9: 0ffded          paddw  mm5, mm5
100064fc: 0ffdca          paddw  mm1, mm2
100064ff: 0ffe4218        paddd  mm0, [edx+18h]
10006503: 0ffdee          paddw  mm5, mm6
10006506: 0f7fca          movq   mm2, mm1
10006509: 0ffe6218        paddd  mm4, [edx+18h]
1000650d: 0f7fcb          movq   mm3, mm1
10006510: 0f7fee          movq   mm6, mm5
10006513: 0ff54a28        pmaddwd mm1, [edx+28h]
10006517: 0f7fef          movq   mm7, mm5
1000651a: 0ffec8          paddd  mm1, mm0
1000651d: 0f              db     0fh
1000651e: f5              cmc    
1000651f: 6a              db     6ah

Built on Althena on Sun Jun 03 14:28:23 2012 using compiler version 1400

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

EAX = 000006a4
EBX = 00000d48
ECX = 01cf00f8
EDX = 10006430
EBP = 01db73a0
ESI = 01cefa5c
EDI = 01c8c2fc
ESP = 0012f8f0
EIP = 100064a0
EFLAGS = 00210216
FPUCW = ffff027f
FPUTW = ffffaaaa

Crash reason: Access Violation

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

...reading address 01CEFA5C...

...while decompressing video frame 0 (VideoSource.cpp:2149)...

...while using input buffer at 00c36ef0-00c62837 (VideoSource.cpp:2148)...

...while using output buffer at 01b60080-01cee783 (VideoSource.cpp:2147).

Pointer dumps:

ECX   01cf00f8: 80108010 80108010 80108010 80108010 80108010 80108010 80108010 80108010
EDX   10006430: 00100010 00000000 00800080 00800080 00ff00ff 00ff00ff 00002000 00002000
EDI   01c8c2f8: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
ESP   0012f8f0: 01b60080 01cf0020 100044b7 01cf0020 01b60080 01db73a0 000006a4 0012f970
     0012f910: 0012f970 0012f958 00c27520 00000003 00000002 003e8a78 1000116b 0012f970
     0012f930: 00000018 75a8b500 75a71938 003e8a78 00000001 0000400d 0012f970 00000018
     0012f950: 00c368b0 00c367c0 0012f988 75a74df4 75a8b500 0000400d 0012f970 00000018
EBP   01db73a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
     01db73c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
     01db73e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
     01db7400: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

Thread call stack:
100064a0: huffyuv!DriverProc [10000000+1000+54a0]
100044b7: huffyuv!DriverProc [10000000+1000+34b7]
1000116b: huffyuv!DriverProc [10000000+1000+16b]
75a71938: MSVFW32!ICSendMessage [75a70000+190d+2b]
75a74df4: MSVFW32!ICDecompress [75a70000+4db7+3d]
005cf851: VDVideoDecompressorVCM::DecompressFrame()
004f7a93: VideoSourceAVI::streamGetFrame()
0043b830: VDFilterFrameVideoSource::RunRequests()
7c9101db: ntdll!RtlAllocateHeap [7c900000+100c4+117]
005e4bc6: malloc()
00471148: VDProject::UpdateFrame()
0043aa85: VDFilterFrameRequest::CreateClient()
0043aacd: VDFilterFrameRequest::CreateClient()
00439a32: VDFilterFrameManualSource::CreateRequest()
00447680: FilterSystem::RequestFrame()
00473084: VDProject::DisplayFrame()
00470648: VDProject::MoveToFrame()
0047551b: VDProject::Open()
0051f4eb: VDAutoLogger::VDAutoLogger()
004616ac: OpenAVI()
0047e831: VDProjectUI::MenuHit()
7e419488: USER32!GetWindowLongA [7e410000+945d+2b]
7e428d8b: USER32!DefWindowProcW [7e410000+18d20+6b]
0048c7d0: VDUIFrame::DefProc()
0047fe67: _catch$?MainWndProc@VDProjectUI@@IAEJIIJ@Z$0()
7e419488: USER32!GetWindowLongA [7e410000+945d+2b]
00475f40: VDProjectUI::WndProc()
0048ce85: VDUIFrame::StaticWndProc()
7e418734: USER32!GetDC [7e410000+86c7+6d]
7e418816: USER32!GetDC [7e410000+86c7+14f]
7e4189cd: USER32!GetWindowLongW [7e410000+88a6+127]
7e42a43b: USER32!PeekMessageA [7e410000+1a340+fb]
7e4196c7: USER32!DispatchMessageA [7e410000+96b8+f]
0045fe46: WinMain@16()
005e9586: __tmainCRTStartup()
7c817077: kernel32!RegisterWaitForInputIdle [7c800000+1702e+49]

-- End of report
 
    Top
TCmullet
Posted: Jun 8 2012, 02:16 PM


Advanced Member


Group: Members
Posts: 312
Member No.: 3970
Joined: 2-May 03



I think I found the problem:
http://neuron2.net/www.math.berkeley.edu/b...rg/huffyuv.html

"Huffyuv assumes that your video has a horizontal resolution which is a multiple of four."

Guess I'll have to "round it up" to 852. I had thought a multiple of 2 would be round enough. Guess I've never tried that before. Funny though that the encode process proceeds and there's no problem until you try to play it back, whether in WMP or in another invocation of Vdub.
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
1 replies since Jun 8 2012, 11:41 AM Track this topic | Email this topic | Print this topic

<< Back to Testing / Bug Reports