PDA

View Full Version : Error: An out-of-bounds memory access (access violation) occurred in module 'ntdll'


Smoke85
11th September 2003, 19:50
Hi all !

I have a lot of experience with Gordian Knot, for both creating DivX and XViD.

I installed the latest version last week, but now a get an error about 95% in the first pass. Virtualdubmod crashes, and gives following error report:

-----

Crash reason: Access Violation

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

Thread traces:

Thread 00000404 (Main thread)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\Init.cpp(302)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\Init.cpp(334)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\Init.cpp(352)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\VideoSource.cpp(592)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\VideoSource.cpp(620)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\FilterSystem.cpp(424)
C:\Dvpt\VDub_1.5.x\VirtualDubMod15\VirtualDub\source\FilterSystem.cpp(560)

Thread call stack:77f83aed: ntdll!RtlSizeHeap [77f50000+33316+7d7]
77f58cca: ntdll!RtlFreeHeap [77f50000+8a3e+28c]
77f83ae5: ntdll!RtlSizeHeap [77f50000+33316+7cf]
011f42d8: mpeg2dec3!closeVideo [011d0000+108f0+139e8]
011db488: mpeg2dec3!?Close@CMPEG2Decoder@@QAEXXZ [011d0000+b350+138]
011dc483: mpeg2dec3!?Copyoddeven@CMPEG2Decoder@@IAEXPAUYV12PICT@@00@Z [011d0000+bdc0+6c3]
011dc438: mpeg2dec3!?Copyoddeven@CMPEG2Decoder@@IAEXPAUYV12PICT@@00@Z [011d0000+bdc0+678]
00dbddcb: avisynth!CreateScriptEnvironment [00db0000+d480+94b]
00dbd738: avisynth!CreateScriptEnvironment [00db0000+d480+2b8]
00df4c28: avisynth!DllCanUnloadNow [00db0000+e100+36b28]
00df4bd8: avisynth!DllCanUnloadNow [00db0000+e100+36ad8]
00dbddcb: avisynth!CreateScriptEnvironment [00db0000+d480+94b]
00dbd738: avisynth!CreateScriptEnvironment [00db0000+d480+2b8]
00db9dce: avisynth!00009dce
00dba032: avisynth!0000a032
77c2ab33: msvcrt!free [77c10000+1aa6b+c8]
00db9fc8: avisynth!00009fc8
00dbe6c3: avisynth!DllCanUnloadNow [00db0000+e100+5c3]
00dbe4aa: avisynth!DllCanUnloadNow [00db0000+e100+3aa]
73b552d5: AVIFIL32!AVIFileRelease [73b50000+52cb+a]
00415451: AVIReadHandler::_destruct()
0041371f: AVIReadHandler::~AVIReadHandler()
0041554d: AVIReadHandler::Release()
0047c7e6: InputFileAVI::~InputFileAVI()
0047ddd9: InputFileAVI::(special)()
00466318: CloseAVI()
00490d16: func_VirtualDub_Close()
00504e3a: CScriptInterpreter::ParseExpression2()
77f59037: ntdll!RtlFreeHeap [77f50000+8a3e+5f9]
77f8e227: ntdll!RtlReAllocateHeap [77f50000+3d648+bdf]
77f8e397: ntdll!RtlReAllocateHeap [77f50000+3d648+d4f]
77f59037: ntdll!RtlFreeHeap [77f50000+8a3e+5f9]
77e82441: kernel32!OpenMutexA [77e60000+22391+b0]
77f5d8e2: ntdll!RtlGetFullPathName_U [77f50000+d572+370]
77f59b7d: ntdll!RtlDosPathNameToNtPathName_U [77f50000+9b30+4d]
0050563e: CScriptInterpreter::LookupRootVariable()
00505c00: CScriptInterpreter::Token()
00504a28: CScriptInterpreter::ParseExpression()
00505a68: CScriptInterpreter::Token()
005047e8: CScriptInterpreter::ExecuteLine()
00538a8f: _unlock_file()
00536da9: fgetc()
00536db8: getc()
0048ebaf: RunScript()
77e760de: kernel32!LocalFree [77e60000+160a0+3e]
77f58a3a: ntdll!RtlAllocateHeap [77f50000+7bae+e8c]
00533d3d: _heap_alloc()
5102ea5a: ddraw!GetSurfaceFromDC [51000000+244a9+a5b1]
00533c34: _nh_malloc()
0047c01e: ParseCommandLine()
77d4c379: USER32!EnableMenuItem [77d40000+c353+26]
0047b627: Init()
004819d8: WinMain@16()
77f8e3c3: ntdll!RtlReAllocateHeap [77f50000+3d648+d7b]
00536880: realloc()
0053dc7b: _msize()
77f59baa: ntdll!RtlAcquirePebLock [77f50000+9b82+28]
77f59bb3: ntdll!RtlAcquirePebLock [77f50000+9b82+31]
77f59bf9: ntdll!RtlReleasePebLock [77f50000+9bea+f]
77e61a57: kernel32!GetStartupInfoA [77e60000+177e+2d9]
77e619ef: kernel32!GetStartupInfoA [77e60000+177e+271]
00534a21: atexit()
00536a5e: WinMainCRTStartup()
77e814c7: kernel32!GetCurrentDirectoryW [77e60000+21483+44]

-- End of report

I tried both DivX and XViD, other settings etc... but nothing seems to work. I guess this has something to do with VirtualDubMod and AviSynth, so I tried an older version of Avisynth. But of course, the necessary libraries aren't available in older versions.

I tried ripping some other DVD's I own. I had the same error with one of them, the other 2 finished without a problem.

Can anyone pleaze help me ?

Greetz,

Smoke85

jggimi
11th September 2003, 20:31
Welcome to Gknot's forum.

A search of the forum with the key "ntdll" found a number of hits related to Gknot. See Colordog's comments in this thread (http://forum.doom9.org/showthread.php?s=&threadid=55039&highlight=ntdll), as this symptom that he and others were seeing seems to be related to VOB CRC errors.

Smoke85
11th September 2003, 21:51
Thankx m8, this seems to be the problem. This is what I found in my BeSweet log:

[00:00:00:016] +-------- LAME -------
[00:00:00:016] | 'abr 160' preset is used
[00:00:00:016] +---------------------
[01:17:32.352] E7: CRC error
[01:32:00:016] Gain of 7.5dB had been asserted to file.
[01:32:00:016] Conversion Completed !
[01:32:00:016] Actual Avg. Bitrate : 159kbps
[00:14:07:000] <-- Transcoding Duration

Is there any other way to check the CRC right after ripping the vobs before I start the encoding process ?

Morbo
1st October 2003, 12:15
I can confirm that its not always that,I have a capture Im trying to convert thats doing this....

Its a possibility that the new decomb is causing it IMHO....in certain scenes with it IVTCing my film captures,its splitting the color from one scene to another(IE,a grey wall bleeds into a mans face in one frame for instance).

I think Ill down grade(takes deep breath) and see.

Cheers and I hope Im right(for my own sake,I hate waiting for a pass to hit close so it goes on).

neuron2
1st October 2003, 14:56
I doubt it is Decomb. That usually arises from doing color conversion without the correct setting for the interlaced flag. Please post your script.

Morbo
2nd October 2003, 01:28
Im beginning to think its something else as well,I have three rigs and I update them after I beta test anything new,and Ive been using Gknot Beta 3 since it was out.

And last night,I tested two Mpegs i captured(I have a hardware dazzle card),one worked,other created a fault in divx module(or so it says).

here is a script that worked for one side of a dvd,but failed on second side(first pass half way through).

#
# Created with Gordian Knot
#
# http://gknot.doom9.org
#
# PLUGINS
SetWorkingDir("C:\PROGRA~1\GORDIA~1\")
LoadPlugin("mpeg2dec3.dll")
#LoadPlugin("decomb.dll")
#LoadPlugin("dgbob.dll")
#LoadPlugin("Convolution3d.dll")
#LoadPlugin("FluxSmooth.dll")
#LoadPlugin("TomsMoComp.dll")
#LoadPlugin("VSFilter.dll")
#LoadPlugin("SimpleResize.dll")
#
# SOURCE
mpeg2source("C:\Documents and Settings\Sal1\Desktop\ENCODE\T2side2.d2v")
#
# TRIM
trim(0,91660)
#
# IVTC
#Telecide(order=1,guide=1).Decimate()
# or use
#IVTC(44,11,95)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# CROPPING
crop(4,58,712,364)
#
# DEINTERLACING (1)
#FieldDeinterlace()
#FieldDeinterlace(blend=false)
#TomsMoComp(1,5,1)
#
# DEINTERLACING (2)
#SeparateFields().SelectEven()
# or maybe
#DGBob(order=1,mode=0)
# DEINTERLACING (3) - special requests
#GreedyHMA(1,0,0,0,0,0,0,0)
#Telecide()
#SeparateFields()
#
#
# SUBTITLES
#VobSub("FileName")
#
# RESIZING
LanczosResize(688,288)
#
# DENOISING: choose one combination (or none)
# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmooth(5,7)
#
# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
#FluxSmooth(7,7)
#
# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmooth(10,15)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#empty = BlankClip()
#AudioDub(last,empty)



Decomb is the may 26th,latest version(500).

Now ive not found the new version of Bob(couldnt find any link,etc).

As you can see the,the script is pure film,no field options selected,so I may have two bugs not related,but Ive tried XVID and DIVX on the one capture that crashes Vdubmod......Ill try the other version of DVD2AVI(77) later tonight(its a long capture,takes me a while).

Cheers and thanks for the concern,if I figure it out,I will post my findings...

Morbo
2nd October 2003, 07:35
Found my NTdll error,my capture had about a seconds worth of junk frames right in the middle of the encode,but thats all I could find so I hope thats it.

God how I hate the cascading blocks of bad frames,looks like an unfinished jigsaw.......

I ended up just watching the file again(didnt notice it last time).

Cheers and thanks again,.....