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.

 
Crashes When Encoding From This Huffyuv Video
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Phil_123
Posted: Sep 2 2010, 03:18 PM


Newbie


Group: Members
Posts: 6
Member No.: 24671
Joined: 13-December 08



Sample video and crashinfo.txt is archived inside this .7z:
http://www.sendspace.com/file/cstcpo

I was trying to reencode it with x264, CRF20. VirtualDub crashes at frame 327 of the sample video.
Deleting the bad frame then undoing the delete also crashes VirtualDub.
Direct stream copy works fine though.

Tested with VirtualDub 1.9.9 and 1.9.10-test3 on Windows 7 Ultimate x64.
 
     Top
dloneranger
Posted: Sep 2 2010, 03:54 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



It's a corrupt video (the file, not the download...)

You can open it with directshow plugin and it doesn't crash on frames 327 & 328, but those frames are garbage

And for anyone not wanting to download 100Mb for the crash report
CODE
VirtualDub crash report -- build 32817 (release)
--------------------------------------

Disassembly:
021e5b60: 22c8            and    cl, al
021e5b62: 02e9            add    ch, cl
021e5b64: 8acd            mov    cl, ch
021e5b66: 2acc            sub    cl, ah
021e5b68: d6              salc  
021e5b69: 22c8            and    cl, al
021e5b6b: 2ae9            sub    ch, cl
021e5b6d: 002e            add    [esi], ch
021e5b6f: 8a66fd          mov    ah, [esi-03h]
021e5b72: 8a6c3301        mov    ch, [ebx+esi+01h]
021e5b76: 8a7433fd        mov    dh, [ebx+esi-03h]
021e5b7a: f6de            neg    dh
021e5b7c: 8acd            mov    cl, ch
021e5b7e: 02f5            add    dh, ch
021e5b80: 02f4            add    dh, ah
021e5b82: 2acc            sub    cl, ah
021e5b84: d6              salc  
021e5b85: 22c8            and    cl, al
021e5b87: 2ae9            sub    ch, cl
021e5b89: 02e1            add    ah, cl
021e5b8b: 8ace            mov    cl, dh
021e5b8d: 2acd            sub    cl, ch
021e5b8f: d6              salc  
021e5b90: 83c602          add    esi, 02h
021e5b93: 22c8            and    cl, al
021e5b95: 02e9            add    ch, cl
021e5b97: 8acd            mov    cl, ch
021e5b99: 2acc            sub    cl, ah
021e5b9b: d6              salc  
021e5b9c: 22c8            and    cl, al
021e5b9e: 2ae9            sub    ch, cl
021e5ba0: 006eff          add    [esi-01h], ch
021e5ba3: 3bf7            cmp    esi, edi
021e5ba5: 7299            jc     021e5b40
021e5ba7: 5b              pop    ebx
021e5ba8: 5f              pop    edi
021e5ba9: 5e              pop    esi
021e5baa: 5d              pop    ebp
021e5bab: c3              ret    
021e5bac: 55              push   ebp
021e5bad: 57              push   edi
021e5bae: 56              push   esi
021e5baf: 53              push   ebx
021e5bb0: 8b742414        mov    esi, [esp+14h]
021e5bb4: 8b7c2418        mov    edi, [esp+18h]
021e5bb8: 8b6c241c        mov    ebp, [esp+1ch]
021e5bbc: 8b06            mov    eax, [esi]
021e5bbe: 8907            mov    [edi], eax
021e5bc0: 83c704          add    edi, 04h
021e5bc3: b820000000      mov    eax, 00000020
021e5bc8: 8da42400000000  lea    esp, [esp+00]
021e5bcf: 8da42400000000  lea    esp, [esp+00]
021e5bd6: 8da42400000000  lea    esp, [esp+00]
021e5bdd: 8d4900          lea    ecx, [ecx+00h]
021e5be0: 8bd8            mov    ebx, eax
021e5be2: 8ac8            mov    cl, al
021e5be4: c1eb05          shr    ebx, 05h
021e5be7: 8b149e          mov    edx, [esi+ebx*4]
021e5bea: 8b5c9e04        mov    ebx, [esi+ebx*4+04h]      <-- FAULT
021e5bee: 0fa5da          shld   edx, ebx, cl
021e5bf1: 83ca01          or     edx, 01h
021e5bf4: 0fbdda          bsr    ebx, edx
021e5bf7: 0fb3da          btr    edx, ebx
021e5bfa: 8b1c9d30861e02  mov    ebx, [ebx*4+021e8630]
021e5c01: 8a0b            mov    cl, [ebx]
021e5c03: d3ea            shr    edx, cl
021e5c05: 0fb64c1a01      movzx  ecx, byte ptr [edx+ebx+01h]
021e5c0a: 0fb69998ae1e02  movzx  ebx, byte ptr [ecx+21eae98]
021e5c11: 03c3            add    eax, ebx
021e5c13: 880f            mov    [edi], cl
021e5c15: 8bd8            mov    ebx, eax
021e5c17: 8ac8            mov    cl, al
021e5c19: c1eb05          shr    ebx, 05h
021e5c1c: 8b149e          mov    edx, [esi+ebx*4]
021e5c1f: 8b5c9e04        mov    ebx, [esi+ebx*4+04h]
021e5c23: 0fa5da          shld   edx, ebx, cl
021e5c26: 83ca01          or     edx, 01h
021e5c29: 0fbdda          bsr    ebx, edx
021e5c2c: 0fb3da          btr    edx, ebx
021e5c2f: 8b1c9d70a01e02  mov    ebx, [ebx*4+021ea070]
021e5c36: 8a0b            mov    cl, [ebx]
021e5c38: d3ea            shr    edx, cl
021e5c3a: 0fb64c1a01      movzx  ecx, byte ptr [edx+ebx+01h]
021e5c3f: 0fb69998b81e02  movzx  ebx, byte ptr [ecx+21eb898]
021e5c46: 03c3            add    eax, ebx
021e5c48: 884f01          mov    [edi+01h], cl
021e5c4b: 8bd8            mov    ebx, eax
021e5c4d: 8ac8            mov    cl, al
021e5c4f: c1eb05          shr    ebx, 05h
021e5c52: 8b149e          mov    edx, [esi+ebx*4]
021e5c55: 8b5c9e04        mov    ebx, [esi+ebx*4+04h]
021e5c59: 0fa5da          shld   edx, ebx, cl
021e5c5c: 83ca01          or     edx, 01h
021e5c5f: 0f              db     0fh

Built on Aegis on Fri Apr 09 14:35:40 2010 using compiler version 1400

Windows 6.1 (Windows Vista x64 build 7600) []

EAX = 0029ffe8
EBX = 00014fff
ECX = 000000e8
EDX = 00000000
EBP = 03c3a820
ESI = 0e050000
EDI = 03b988c8
ESP = 0d5cfc0c
EIP = 021e5bea
EFLAGS = 00010216
FPUCW = 027f
FPUTW = ffff

Crash reason: Access Violation

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

...reading address 0E0A4000...

...while decompressing video frame 327 (VideoSource.cpp:2141)...

...while using input buffer at 0e050000-0e09eb87 (VideoSource.cpp:2140)...

...while using output buffer at 02d40080-02ed5083 (VideoSource.cpp:2139)...

...while running thread "Processing" (thread.cpp:163).

Pointer dumps:

EBX   00014ffb: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
ESI   0e050000: 80138013 66a9e104 16416416 863ca6b9 3cbd8c9e 69b67ad3 5afd2f4e 54ff5bdb
EDI   03b988c8: 5e719470 5e749475 5e719471 5e6f946f 5d739474 5e729372 5e739371 5f7e937f
ESP   0d5cfc08: 0071ef98 00000b40 03b70020 02d40080 03c3a820 021e480f 0e050000 03b70020
     0d5cfc28: 03c3a820 0d5cfc8c 73b0c7c0 0d5cfc74 006e1868 00000003 00000002 0278fe50
     0d5cfc48: 021e115d 0d5cfc8c 00000018 73af1759 0278fe50 00000001 0000400d 0d5cfc8c
     0d5cfc68: 00000018 0071ea60 0071eea8 0d5cfca4 73af4e27 73b0c7c0 0000400d 0d5cfc8c
EBP   03c3a820: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
     03c3a840: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
     03c3a860: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
     03c3a880: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

Thread call stack:
021e5bea: huffyuv!DriverProc [021e0000+1000+4bea]
021e480f: huffyuv!DriverProc [021e0000+1000+380f]
021e115d: huffyuv!DriverProc [021e0000+1000+15d]
73af1759: MSVFW32!ICSendMessage [73af0000+1728+31]
73af4e27: MSVFW32!ICDecompress [73af0000+4dea+3d]
0059cee1: VDVideoDecompressorVCM::DecompressFrame()
004dd363: VideoSourceAVI::streamGetFrame()
00477d16: ?$VDRenderBufferAllocator::FreeFrame()
004212e9: VDDubVideoProcessor::DecodeVideoFrame()
00422656: VDDubVideoProcessor::ReadVideoFrame()
00424efc: VDStreamInterleaver::PushStreams()
00424f04: VDStreamInterleaver::PushStreams()
7418271c: WINMM!timeGetTime [74180000+26f0+2c]
0042318e: VDDubVideoProcessor::WriteVideo()
00425353: VDStreamInterleaver::GetNextAction()
00420759: VDDubProcessThread::ThreadRun()
004dc567: ?$VDProtectedAutoScope1::?$VDProtectedAutoScope1()
00519186: VDThread::StaticThreadStart()
005b7e6e: _callthreadstartex()
005b7f13: _threadstartex@4()
76743677: kernel32!BaseThreadInitThunk [76730000+13665+12]
77229d42: ntdll!RtlInitializeExceptionChain [771f0000+39cdf+63]
77229d15: ntdll!RtlInitializeExceptionChain [771f0000+39cdf+36]

-- End of report


--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
levicki
Posted: Oct 31 2010, 02:30 PM


Advanced Member


Group: Members
Posts: 167
Member No.: 22605
Joined: 13-December 07



So, how is this fault of VirtualDub when it crashed in external huffyuv codec?
 
      Top
phaeron
Posted: Nov 3 2010, 09:51 PM


Virtualdub Developer


Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02



Go to Options > Preferences > AVI and check the "prefer internal video decoders" checkbox. This will force VirtualDub's internal Huffyuv decoder, which should be a bit more robust to decoding errors (it's written with preference to robustness over decoding speed).
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
3 replies since Sep 2 2010, 03:18 PM Track this topic | Email this topic | Print this topic

<< Back to Testing / Bug Reports