View Full Version : GK 0.28.3 beta - out of bounds memory access
jcase
7th June 2003, 06:30
During compressibility check I received the following error:
VirtualDub Program Failure
Crash details - "An out-of-bounds memory access (access violation) occured in module 'ntdll'."
System:
XP Pro SP1
AMD 2000+
256mb ram
Thanks,
Hiro2k
7th June 2003, 09:40
Did you try going back to the older beta and checking if that fixed your problem?
Are you able to use Virtualdub without problems by itself?
leadman584
8th June 2003, 19:48
I too am having memory problem with compressibility test. My problem is a little more of an annoyance, but it has persisted for some time.
I have the most recent version of GKnot, and have already replaced mpeg2dec3 ver. 1.06 with ver. 1.07. There is still a memory leak only during compressibility test. What happens, basically, when I run a compressibility test in GKnot, my available system memory gets dangerously low, sometimes single digit. After completing the test, I still have 60+MB of paging file active. Always have to reboot system before encoding my video. This problem is definitely in the control program. I encode with all of the same tools outside of GKnot, and even if I batch a couple of 2 pass encodes, normal RAM usage around 100MB, no significant paging files active. I have a friend with exactly the same problem, again it only happens during compress test.
colordog
11th June 2003, 00:24
I've been getting the "An out of bounds memory access (access violation) occured in module..." both in modules 'mpeg2dec3' and ntdll. This has occured under betas x.3 and x.4.
I get the access violation from mpeg2dec3 right at the end of the credits encoding, when it would normally close out. I click "OK", and then GKnot continues with the regular two-pass main encode. Then I get the violation from ntdll at the end of the DivX 5.0.5 first pass, when it two would close out (from VDubMod).
I have uninstalled GKnot, Avisynth, and reinstalled them both, and both errors continue.
Here's an example of the GKnot error in the encoder window I get after VDubMod exits from the access violation after the first pass:
4:32:32 PM: Started DivX5-First Pass: C:\vobs\GTO 8 Transformations\VIDEO_TS\GTO - Episode 34 NEW.avs
5:06:02 PM: *************************************
5:06:02 PM: EXCEPTION: Cannot create file "C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf". The process cannot access the file because it is being used by another process
5:06:02 PM: EXCEPTION: Encoder Thread Terminated.
5:06:02 PM: *************************************
colordog
11th June 2003, 02:04
So, I've done a bit more investigating, and it _looks_ like I'm getting that error just one on VOB file, and it might be corruption of the VOB file that is somehow resulting in that error. I noticed that the BeSweet log had a bunch of CRC errors, but even then I don't know what kind of error would allow VDubMod to proceed to the end of the pass, _then_ crash. (I'm working under the assumption that CRC errors are indications of 'broken' parts of the VOB) Whatever! If anyone could shed some light, that would be cool. Example of the BeSweet log for the error description above, is below:
C:\Program Files\Gordian Knot\BeSweet.exe -core( -input C:\vobs\GTO 8 Transformations\VIDEO_TS\GTO - Episode 34 AC3 T01 2_0ch 192Kbps DELAY 24ms.ac3 -output C:\vobs\GTO 8 Transformations\VIDEO_TS\GTO - Episode 34 AC3 T01 2_0ch 192Kbps DELAY 24ms.mp3 -logfile C:\vobs\GTO 8 Transformations\VIDEO_TS\GTO - Episode 34 AC3 T01 2_0ch 192Kbps DELAY 24ms.log ) -ota( -hybridgain ) -azid( -L -3db -s stereo -c normal ) -lame( --alt-preset 128 ) -profile( Gordian Knot 0.27 )
[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\vobs\GTO 8 Transformations\VIDEO_TS\GTO - Episode 34 AC3 T01 2_0ch 192Kbps DELAY 24ms.ac3
[00:00:00:000] | Output: C:\vobs\GTO 8 Transformations\VIDEO_TS\GTO - Episode 34 AC3 T01 2_0ch 192Kbps DELAY 24ms.mp3
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] | PostGain normalize to : 0.97
[00:00:00:000] +-------- AZID -------
[00:00:00:000] | Input Channels Mode: 2/0, Bitrate: 192kbps
[00:00:00:000] | Output Stereo mode: Stereo
[00:00:00:000] | Total Gain: 0.000dB, Compression: Normal
[00:00:00:000] | LFE levels: To LR -3.0dB, To LFE 0.0dB
[00:00:00:000] | Center mix level: BSI
[00:00:00:000] | Surround mix level: BSI
[00:00:00:000] | Dialog normalization: No
[00:00:00:000] | Rear channels filtering: No
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +-------- LAME -------
[00:00:00:000] | 'abr 128' preset is used
[00:00:00:000] +---------------------
[00:12:44.800] E7: CRC error
[00:12:44:864] Stream error : Sync found after 288 bytes
[00:13:49.920] E7: CRC error
[00:13:50:016] Stream error : Sync found after 288 bytes
[00:14:08.864] E7: CRC error
[00:14:08:992] Stream error : Sync found after 288 bytes
[00:14:11.008] E7: CRC error
[00:14:11:168] Stream error : Sync found after 288 bytes
[00:14:12.576] E7: CRC error
[00:14:12:768] Stream error : Sync found after 288 bytes
[00:14:12.768] E7: CRC error
[00:14:12:992] Stream error : Sync found after 288 bytes
[00:17:27.872] E7: CRC error
[00:17:28:128] Stream error : Sync found after 288 bytes
[00:17:29.088] E7: CRC error
[00:17:29:376] Stream error : Sync found after 288 bytes
[00:17:29.184] E7: CRC error
[00:17:29:504] Stream error : Sync found after 288 bytes
[00:23:29:120] Gain of 9.0dB had been asserted to file.
[00:23:29:120] Conversion Completed !
[00:23:29:120] Actual Avg. Bitrate : 131kbps
[00:02:50:000] <-- Transcoding Duration
jcase
21st June 2003, 15:20
Here is the contents of crashinfo.txt which is generated by vdubmod when you hit the same button upon receiving the error
VirtualDub crash report -- build 1215 (release)
--------------------------------------
Disassembly:
77f51e40: fc cld
77f51e41: 7733 ja 77f51e76
77f51e43: db db db
77f51e44: 8b45fc mov eax, [ebp-04]
77f51e47: 6aff push ff
77f51e49: 99 cdq
77f51e4a: 68f0d8ffff push ffffd8f0
77f51e4f: 52 push edx
77f51e50: 50 push eax
77f51e51: e898e80200 call 77f806ee
77f51e56: 8945f4 mov [ebp-0c], eax
77f51e59: 8d45f4 lea eax, [ebp-0c]
77f51e5c: 50 push eax
77f51e5d: 6a01 push 01
77f51e5f: 8955f8 mov [ebp-08], edx
77f51e62: e8fcc80200 call 77f7e763
77f51e67: 85c0 test eax, eax
77f51e69: 75d9 jnz 77f51e44
77f51e6b: 57 push edi
77f51e6c: e8aec30200 call 77f7e21f
77f51e71: f6460c40 test [esi+0c], 40
77f51e75: 7412 jz 77f51e89
77f51e77: 895df4 mov [ebp-0c], ebx
77f51e7a: c745f800000080 mov dword ptr [ebp-08], 80000000
77f51e81: 57 push edi
77f51e82: e879c40200 call 77f7e300
77f51e87: ebbb jmp 77f51e44
77f51e89: a17851fc77 mov eax, [77fc5178]
77f51e8e: 83f801 cmp eax, 01
77f51e91: 0f87747a0200 ja 77f7990b
77f51e97: 391d7c51fc77 cmp [77fc517c], ebx
77f51e9d: 75e2 jnz 77f51e81
77f51e9f: 391d7451fc77 cmp [77fc5174], ebx
77f51ea5: 75da jnz 77f51e81
77f51ea7: e94ae50300 jmp 77f903f6
77f51eac: 55 push ebp
77f51ead: 8bec mov ebp, esp
77f51eaf: 53 push ebx
77f51eb0: 8b5d08 mov ebx, [ebp+08]
77f51eb3: 56 push esi
77f51eb4: 8b750c mov esi, [ebp+0c]
77f51eb7: 0fb74602 movzx eax, word ptr [esi+02]
77f51ebb: 57 push edi
77f51ebc: c1e003 shl eax, 03
77f51ebf: 8bfe mov edi, esi
77f51ec1: 2bf8 sub edi, eax
77f51ec3: 3bfe cmp edi, esi
77f51ec5: 740a jz 77f51ed1
77f51ec7: f6470501 test [edi+05], 01
77f51ecb: 0f84fa170000 jz 77f536cb
77f51ed1: f6460510 test [esi+05], 10
77f51ed5: 7512 jnz 77f51ee9
77f51ed7: 8b4510 mov eax, [ebp+10]
77f51eda: 8b00 mov eax, [eax]
77f51edc: 8d3cc6 lea edi, [esi+eax*8]
77f51edf: f6470501 test [edi+05], 01 <-- FAULT
77f51ee3: 0f843d020000 jz 77f52126
77f51ee9: 5f pop edi
77f51eea: 8bc6 mov eax, esi
77f51eec: 5e pop esi
77f51eed: 5b pop ebx
77f51eee: 5d pop ebp
77f51eef: c21000 ret 0010
77f51ef2: 55 push ebp
77f51ef3: 8bec mov ebp, esp
77f51ef5: 8b550c mov edx, [ebp+0c]
77f51ef8: 0fb70a movzx ecx, word ptr [edx]
77f51efb: 81f980000000 cmp ecx, 00000080
77f51f01: 8b4508 mov eax, [ebp+08]
77f51f04: 56 push esi
77f51f05: 8bb070010000 mov esi, [eax+170]
77f51f0b: 894d08 mov [ebp+08], ecx
77f51f0e: 720e jc 77f51f1e
77f51f10: ff886c010000 dec dword ptr [eax+16c]
77f51f16: 85f6 test esi, esi
77f51f18: 0f85ce310000 jnz 77f550ec
77f51f1e: 5e pop esi
77f51f1f: 5d pop ebp
77f51f20: c20800 ret 0008
77f51f23: 8b542404 mov edx, [esp+04]
77f51f27: 8b8270010000 mov eax, [edx+170]
77f51f2d: 53 push ebx
77f51f2e: 8b5c240c mov ebx, [esp+0c]
77f51f32: 66813b8000 cmp word ptr [ebx], 0080
77f51f37: 721b jc 77f51f54
77f51f39: 8d8a6c010000 lea ecx, [edx+16c]
77f51f3f: ff db ff
Windows 5.1 (Windows XP build 2600) []
EAX = 0000fff9
EBX = 01200000
ECX = 0012f838
EDX = 01200001
EBP = 0012f798
DS:ESI = 0023:012165d0
ES:EDI = 0023:01296598
SS:ESP = 0023:0012f78c
CS:EIP = 001b:77f51edf
FS = 003b
GS = 0000
EFLAGS = 00010246
MM0 = 0000003bf24efae4
MM1 = 0012f7bc00000000
MM2 = 000002020000001b
MM3 = 000000d0bf856f9b
MM4 = 077d00004020027f
MM5 = 8000000000000000
MM6 = d000000000000000
MM7 = 8000000000000000
Crash reason: Access Violation
Crash context:
An out-of-bounds memory access (access violation) occurred in module 'ntdll'.
Thread traces:
Thread 0000033c (Main thread)
C:\Dvpt\CVS\VirtualDubMod_1.5\Copie_de_VirtualDubMod15\VirtualDub\source\Init.cpp(300)
C:\Dvpt\CVS\VirtualDubMod_1.5\Copie_de_VirtualDubMod15\VirtualDub\source\Init.cpp(332)
C:\Dvpt\CVS\VirtualDubMod_1.5\Copie_de_VirtualDubMod15\VirtualDub\source\Init.cpp(350)
C:\Dvpt\CVS\VirtualDubMod_1.5\Copie_de_VirtualDubMod15\VirtualDub\source\VideoSource.cpp(592)
C:\Dvpt\CVS\VirtualDubMod_1.5\Copie_de_VirtualDubMod15\VirtualDub\source\VideoSource.cpp(620)
C:\Dvpt\CVS\VirtualDubMod_1.5\Copie_de_VirtualDubMod15\VirtualDub\source\FilterSystem.cpp(424)
C:\Dvpt\CVS\VirtualDubMod_1.5\Copie_de_VirtualDubMod15\VirtualDub\source\FilterSystem.cpp(560)
Thread call stack:77f51edf: ntdll!RtlpUnWaitCriticalSection [77f50000+1cea+1f5]
77f51fbf: ntdll!RtlpUnWaitCriticalSection [77f50000+1cea+2d5]
011e42d8: mpeg2dec3!closeVideo [011c0000+108f0+139e8]
011cb488: mpeg2dec3!?Close@CMPEG2Decoder@@QAEXXZ [011c0000+b350+138]
011cc483: mpeg2dec3!?Copyoddeven@CMPEG2Decoder@@IAEXPAUYV12PICT@@00@Z [011c0000+bdc0+6c3]
011cc438: mpeg2dec3!?Copyoddeven@CMPEG2Decoder@@IAEXPAUYV12PICT@@00@Z [011c0000+bdc0+678]
00daddcb: avisynth!CreateScriptEnvironment [00da0000+d480+94b]
00dad738: avisynth!CreateScriptEnvironment [00da0000+d480+2b8]
00de4c28: avisynth!DllCanUnloadNow [00da0000+e100+36b28]
00de4bd8: avisynth!DllCanUnloadNow [00da0000+e100+36ad8]
00daddcb: avisynth!CreateScriptEnvironment [00da0000+d480+94b]
00dad738: avisynth!CreateScriptEnvironment [00da0000+d480+2b8]
00da9dce: avisynth!00009dce
00daa032: avisynth!0000a032
77c2ab33: msvcrt!free [77c10000+1aa6b+c8]
00da9fc8: avisynth!00009fc8
00dae6c3: avisynth!DllCanUnloadNow [00da0000+e100+5c3]
00dae4aa: avisynth!DllCanUnloadNow [00da0000+e100+3aa]
73b553df: AVIFIL32!AVIFileRelease [73b50000+53d5+a]
00414e01: AVIReadHandler::_destruct()
004130cf: AVIReadHandler::~AVIReadHandler()
00414efd: AVIReadHandler::Release()
0047c1ec: InputFileAVI::~InputFileAVI()
0047d7df: InputFileAVI::(special)()
00466075: CloseAVI()
0048f623: func_VirtualDub_Close()
004f933a: CScriptInterpreter::ParseExpression2()
77f52dbb: ntdll!RtlTimeToTimeFields [77f50000+2a1d+39e]
77f5168d: ntdll!RtlFreeHeap [77f50000+1597+f6]
77f57688: ntdll!RtlReAllocateHeap [77f50000+722f+459]
77f57543: ntdll!RtlReAllocateHeap [77f50000+722f+314]
77f5752c: ntdll!RtlReAllocateHeap [77f50000+722f+2fd]
77f516b3: ntdll!RtlFreeHeap [77f50000+1597+11c]
77f51671: ntdll!RtlFreeHeap [77f50000+1597+da]
77f5168d: ntdll!RtlFreeHeap [77f50000+1597+f6]
77e80224: kernel32!GetConsoleScreenBufferInfo [77e60000+20121+103]
77f548e6: ntdll!RtlDosPathNameToNtPathName_U [77f50000+489f+47]
004f9b3e: CScriptInterpreter::LookupRootVariable()
004fa100: CScriptInterpreter::Token()
004f8f28: CScriptInterpreter::ParseExpression()
004f9f68: CScriptInterpreter::Token()
004f8ce8: CScriptInterpreter::ExecuteLine()
0052b6ef: _unlock_file()
00529a09: fgetc()
00529a18: getc()
0048d4bc: RunScript()
77e79a83: kernel32!LocalFree [77e60000+19a45+3e]
77f5180b: ntdll!RtlAllocateHeap [77f50000+16f8+113]
005269a9: _heap_alloc()
73761437: ddraw!00001437
005268a0: _nh_malloc()
0047ba5b: ParseCommandLine()
77d4c1d9: USER32!EnableMenuItem [77d40000+c1b3+26]
0047b07c: Init()
004813cd: WinMain@16()
77f5752c: ntdll!RtlReAllocateHeap [77f50000+722f+2fd]
005294e0: realloc()
00530c7b: _msize()
77f5281e: ntdll!RtlAcquirePebLock [77f50000+27f6+28]
77f52827: ntdll!RtlAcquirePebLock [77f50000+27f6+31]
77f52837: ntdll!RtlReleasePebLock [77f50000+2828+f]
77e61a53: kernel32!GetStartupInfoA [77e60000+177a+2d9]
77e619eb: kernel32!GetStartupInfoA [77e60000+177a+271]
00527681: atexit()
005296be: WinMainCRTStartup()
77e7eb69: kernel32!CreateProcessInternalW [77e60000+1d9f2+1177]
-- End of report
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.