Log in

View Full Version : 1.0.12 crash with VirtualDubMod.


quinn
22nd June 2004, 03:22
I use DGIndex 1.0.12 to make an index of a set of 3 *.ts files - worked fine - used latest VirtualDubMod 1.5.10.1 Bld 2439 - and use 2pass WMV codes - crashed at the end of the first pass (crash log is below if it helps).

Using DVD2AVI3 - it does not crash.

Not sure there's much information to be had here, but for what it's worth......


----------------------------------------------------------------

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

Disassembly:
77f83960: 45 inc ebp
77f83961: 0c89 or al, 89
77f83963: 45 inc ebp
77f83964: 08743964 or [ecx+edi+64], dh
77f83968: a118000000 mov eax, [00000018]
77f8396d: 8b4030 mov eax, [eax+30]
77f83970: 8b400c mov eax, [eax+0c]
77f83973: 8b400c mov eax, [eax+0c]
77f83976: 83c02c add eax, 2c
77f83979: 50 push eax
77f8397a: 681a37f877 push 77f8371a
77f8397f: e8a723ffff call 77f75d2b
77f83984: 8b4508 mov eax, [ebp+08]
77f83987: 8d443810 lea eax, [eax+edi+10]
77f8398b: 50 push eax
77f8398c: 57 push edi
77f8398d: 682637f877 push 77f83726
77f83992: e89423ffff call 77f75d2b
77f83997: 83c414 add esp, 14
77f8399a: 57 push edi
77f8399b: e89a910100 call 77f9cb3a
77f839a0: 8a4605 mov al, [esi+05]
77f839a3: 2410 and al, 10
77f839a5: a810 test al, 10
77f839a7: 884705 mov [edi+05], al
77f839aa: 740b jz 77f839b7
77f839ac: 0fb64704 movzx eax, byte ptr [edi+04]
77f839b0: 8b448358 mov eax, [ebx+eax*4+58]
77f839b4: 897838 mov [eax+38], edi
77f839b7: 0fb70f movzx ecx, word ptr [edi]
77f839ba: 8b4510 mov eax, [ebp+10]
77f839bd: 0108 add [eax], ecx
77f839bf: 0fb70f movzx ecx, word ptr [edi]
77f839c2: 294b28 sub [ebx+28], ecx
77f839c5: f6470510 test [edi+05], 10
77f839c9: 668b00 mov ax, [eax]
77f839cc: 8bf7 mov esi, edi
77f839ce: 668907 mov [edi], ax
77f839d1: 750d jnz 77f839e0
77f839d3: 8b4510 mov eax, [ebp+10]
77f839d6: 8b08 mov ecx, [eax]
77f839d8: 668bc1 mov ax, cx
77f839db: 668944cf02 mov [edi+ecx*8+02], ax
77f839e0: f6460510 test [esi+05], 10
77f839e4: 0f85c2010000 jnz 77f83bac
77f839ea: 8b4510 mov eax, [ebp+10]
77f839ed: 8b00 mov eax, [eax]
77f839ef: 8d3cc6 lea edi, [esi+eax*8]
77f839f2: f6470501 test [edi+05], 01 <-- FAULT
77f839f6: 0f85b0010000 jnz 77f83bac
77f839fc: 0fb70f movzx ecx, word ptr [edi]
77f839ff: 03c8 add ecx, eax
77f83a01: 81f900fe0000 cmp ecx, 0000fe00
77f83a07: 0f879f010000 ja 77f83bac
77f83a0d: 807d1400 cmp byte ptr [ebp+14], 00
77f83a11: 0f84b0000000 jz 77f83ac7
77f83a17: 56 push esi
77f83a18: 53 push ebx
77f83a19: e85bf5ffff call 77f82f79
77f83a1e: 8b4608 mov eax, [esi+08]
77f83a21: 8b4e0c mov ecx, [esi+0c]
77f83a24: 3bc1 cmp eax, ecx
77f83a26: 8901 mov [ecx], eax
77f83a28: 894804 mov [eax+04], ecx
77f83a2b: 7521 jnz 77f83a4e
77f83a2d: 668b06 mov ax, [esi]
77f83a30: 663d8000 cmp ax, 0080
77f83a34: 7318 jnc 77f83a4e
77f83a36: 0fb7c8 movzx ecx, al
77f83a39: 8bc1 mov eax, ecx
77f83a3b: 83e107 and ecx, 07
77f83a3e: b201 mov dl, 01
77f83a40: c1e803 shr eax, 03
77f83a43: d2e2 shl dl, cl
77f83a45: 8d841858010000 lea eax, [eax+ebx+158]
77f83a4c: 3010 xor [eax], dl
77f83a4e: 8a4605 mov al, [esi+05]
77f83a51: a804 test al, 04
77f83a53: 746c jz 77f83ac1
77f83a55: a802 test al, 02
77f83a57: 0fb70e movzx ecx, word ptr [esi]
77f83a5a: 8d0ccd lea ecx, [ebp+ecx*8]
77f83a5d: f0 lock
77f83a5e: ff db ff
77f83a5f: ff db ff

Windows 5.1 (Windows XP build 2600) [Service Pack 1]

EAX = 0000fff5
EBX = 01210000
ECX = 0012f524
EDX = 0121ad01
EBP = 0012f484
DS:ESI = 0023:0121ace0
ES:EDI = 0023:0129ac88
SS:ESP = 0023:0012f478
CS:EIP = 001b:77f839f2
FS = 003b
GS = 0000
EFLAGS = 00010246
FPUCW = ffff027f
FPUTW = ffffffff

MM0 = 8181818181818181
MM1 = 8280808080818181
MM2 = 8581818383807f82
MM3 = 0081808585818085
MM4 = 8381818383818183
MM5 = 8181818383818183
MM6 = 8181818181818181
MM7 = 0081818181818181

Crash reason: Access Violation

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

Thread traces:

Thread 00000bd8 (Main thread)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\Init.cpp(467)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\VideoSource.cpp(646)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\VideoSource.cpp(676)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\VideoSource.cpp(1819)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\VideoSource.cpp(1837)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\FilterSystem.cpp(429)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\FilterSystem.cpp(569)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\VideoSource.cpp(646)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\VideoSource.cpp(676)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\VideoSource.cpp(1819)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\VideoSource.cpp(1837)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\FilterSystem.cpp(429)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\FilterSystem.cpp(569)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\VideoSource.cpp(1819)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\VideoSource.cpp(1837)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\FilterSystem.cpp(429)

Thread call stack:77f839f2: ntdll!RtlSizeHeap [77f50000+33316+6dc]
77f58cca: ntdll!RtlFreeHeap [77f50000+8a3e+28c]
77f59037: ntdll!RtlFreeHeap [77f50000+8a3e+5f9]
011e43f5: DGDecode!closeVideo [011c0000+10770+13c85]
011caecf: DGDecode!?Close@CMPEG2Decoder@@QAEXXZ [011c0000+adb0+11f]
011cbed3: DGDecode!?Copyoddeven@CMPEG2Decoder@@IAEXPAUYV12PICT@@00@Z [011c0000+b7f0+6e3]
011cbe88: DGDecode!?Copyoddeven@CMPEG2Decoder@@IAEXPAUYV12PICT@@00@Z [011c0000+b7f0+698]
00f11d19: avisynth!avs_create_script_environment [00f00000+10ae0+1239]
00f10e38: avisynth!avs_create_script_environment [00f00000+10ae0+358]
00f0c24b: avisynth!0000c24b
00f0c4f2: avisynth!0000c4f2
77c2ab33: msvcrt!free [77c10000+1aa6b+c8]
00f0c488: avisynth!0000c488
00f12605: avisynth!DllCanUnloadNow [00f00000+12020+5e5]
00f123da: avisynth!DllCanUnloadNow [00f00000+12020+3ba]
73b552d5: AVIFIL32!AVIFileRelease [73b50000+52cb+a]
004b4461: AVIReadHandler::_destruct()
004b216f: AVIReadHandler::~AVIReadHandler()
004b455d: AVIReadHandler::Release()
004b68ff: InputFileAVI::~InputFileAVI()
004b8df8: InputFileAVI::(special)()
00449830: ?$vdrefcounted::Release()
004666ac: ?$vdrefptr::(special)()
00465215: CloseAVI()
0048e10a: VDProject::Close()
0052757a: CScriptInterpreter::ParseExpression2()
77f944a8: ntdll!RtlRemoteCall [77f50000+442ea+1be]
77f57d70: ntdll!RtlAllocateHeap [77f50000+7bae+1c2]
77f58a3a: ntdll!RtlAllocateHeap [77f50000+7bae+e8c]
0047fe1b: VDJob::Flush()
77d440c6: USER32!GetWindowLongW [77d40000+4092+34]
5ad7394e: uxtheme!IsThemeBackgroundPartiallyTransparent [5ad70000+35aa+3a4]
5ad73d23: uxtheme!GetThemeColor [5ad70000+3ab8+26b]
77f944cb: ntdll!RtlRemoteCall [77f50000+442ea+1e1]
77f58bcd: ntdll!RtlFreeHeap [77f50000+8a3e+18f]
77f59037: ntdll!RtlFreeHeap [77f50000+8a3e+5f9]
00527d7e: CScriptInterpreter::LookupRootVariable()
00528340: CScriptInterpreter::Token()
00527168: CScriptInterpreter::ParseExpression()
005281a8: CScriptInterpreter::Token()
00526f28: CScriptInterpreter::ExecuteLine()
004627e6: ?$vector::resize()
00497379: RunScriptMemory()
0047f0ba: VDJob::Run()
0047febd: VDJob::RunAll()
00482593: JobCtlDlgProc()
77d65eb0: USER32!LockSetForegroundWindow [77d40000+25bbb+2f5]
77d43a50: USER32!00003a50
77d4c675: USER32!CharLowerBuffA [77d40000+c271+404]
77d4c4e4: USER32!CharLowerBuffA [77d40000+c271+273]
77d43a50: USER32!00003a50
77d4c6d1: USER32!DefDlgProcA [77d40000+c6b0+21]
77d43a50: USER32!00003a50
77d43b1f: USER32!00003b1f
77d45453: USER32!ReleaseDC [77d40000+5329+12a]
77d454b4: USER32!SendMessageW [77d40000+546d+47]
77d68d69: USER32!SetWindowsHookA [77d40000+288ff+46a]
77d68e48: USER32!SetWindowsHookA [77d40000+288ff+549]
77d68d2a: USER32!SetWindowsHookA [77d40000+288ff+42b]
77d43b4f: USER32!00003b4f
77d43b33: USER32!00003b33
77d6511b: USER32!EnumClipboardFormats [77d40000+247c5+956]
77d43a50: USER32!00003a50
77d43b1f: USER32!00003b1f
77d43d79: USER32!GetMessageW [77d40000+3c54+125]
77d4d48a: USER32!DrawStateW [77d40000+c9a6+ae4]
77d43ddf: USER32!DispatchMessageW [77d40000+3dd4+b]
77d4b1f5: USER32!IsDialogMessageW [77d40000+b11c+d9]
77d65906: USER32!IsDialogMessage [77d40000+258be+48]
0047c9a8: guiCheckDialogs()
004836db: WinMain@16()
70a9f1ab: SHLWAPI!PathFindOnPathA [70a70000+29f50+525b]
006afd09: VirtualDubMod!002afd09
70a9f1ab: SHLWAPI!PathFindOnPathA [70a70000+29f50+525b]
00565f14: atexit()
00567b5e: WinMainCRTStartup()
70a9f1ab: SHLWAPI!PathFindOnPathA [70a70000+29f50+525b]
77e814c7: kernel32!GetCurrentDirectoryW [77e60000+21483+44]
70a9f1ab: SHLWAPI!PathFindOnPathA [70a70000+29f50+525b]

-- End of report

Guest
22nd June 2004, 05:03
Post your script, please.

Are you using VFAPI? closeVideo() is a VFAPI interface function.

Can you strip down the problem to a point where I can duplicate it easily? I don't have a WMV encoder.

quinn
22nd June 2004, 06:03
Definitely not using VFAPI - The script is nothing more than:

mpeg2source("foobar.d2v")
LanczosResize(1280,720)

(ForceFilm was used on the *.ts files)



There is only DGDecode.dll in the plugins folder (well, decomb is in there too, but that's it).

I'll see if I can make anything smaller crash it....

tormento
1st July 2004, 11:21
I have strange problems with dgindex too.

However vdubmod seldom crashes, usually simply disappear!

I have tried to use other compression codecs and other avisynth version but the random magic still occurs.

I can't constantly reproduce the problem, however dvd2avi (i.e. the one in gk 0.28.9) works fine.

quinn
1st July 2004, 15:37
On my crash - it doesn't happen with XVid, only with WMV, so I'm assuming that it's actually WMV's fault at this point. The same file that crashes consistently with WMV works encoding Xvid...

tormento
12th July 2004, 16:20
After some trials and errors test, I have found that the problem relies on xvid 1.0.1. Version 1.0 or unofficial Javor's one solve the problems.

Sorry for having alarmed you. :rolleyes:

bond
13th July 2004, 17:47
i today experienced something similar:

i used latest virtualdubmod with also no special .avs script (crop, lanczos, dgmpegdec)
i set the two passes with xvid as always and started the encode
after i came home i noticed that my pc had crashes (black screen, no way to do anything -> restart)

after looking at the job control i noticed that the first pass seem to have been finished, the second pass was marked as "aborted" (i never experienced this before by using mpeg2dec3 or mpegdecoder)
of course i used the latest dgindex with the .dll coming with the package

i will try to run tomorrow the second pass on the created first .pass file

Cyberia
13th July 2004, 22:48
I just want to add my two cents to this topic. I am not sure if this is a problem of DGMPGDec or XVID, but I don't think it's a VDubMod problem.

I myself experience warnings in VDubMod when I encode certain movies. In particular 'Kill Bill' gives me "thread delay" or "stalled thread" warnings right at the very end of the encode process.

The output file is *usually* OK, however. I am running DGMPGDec 1.0.12 and XVID 1.01. Be glad to help someone solve this.

digitalman
2nd August 2004, 03:25
Just an F.Y.I. I also have the crashing issue with XVID 1.0.1, not any earlier version though.