ivan_alias
28th April 2002, 15:49
I'm compressing a Pic video MJPEG TV capture from 640x576 to 320x240 using Xvid quantizer 4. It going through a crop, de-interlace and sharpen.
When I start the encode Vdub starts to use more and more memory until eventually I've ran out and my poor machine complains. (I have 512 MB)
Is there anyway I can track down whats causing this?
Win 2K
vdub 1.4.10
Xvid from 15th April
audio going to 64 kbit/s LAME mono
Is anyone else having these memory leaks?
Would appreciate some advice here.:confused:
EDIT: Must be Xvid, don't get this with Divx 4.11, can a mod move this to the Xvid forum please?
Edit: I have Umaniac's build from today and now vdub is crashing :(
This mean anything to anyone?
VirtualDub crash report -- build 13870
--------------------------------------
Disassembly:
045e35a0: 0400 add al, 00
045e35a2: 007518 add [ebp+18], dh
045e35a5: 6868e56004 push 0460e568
045e35aa: ff159c906004 call dword ptr [0460909c]
045e35b0: 5f pop edi
045e35b1: 5e pop esi
045e35b2: 5d pop ebp
045e35b3: b89cffffff mov eax, ffffff9c
045e35b8: 5b pop ebx
045e35b9: 83c45c add esp, 5c
045e35bc: c3 ret
045e35bd: 8b8e78040000 mov ecx, [esi+478]
045e35c3: 8b3d94906004 mov edi, [04609094]
045e35c9: 8d542474 lea edx, [esp+74]
045e35cd: 55 push ebp
045e35ce: 52 push edx
045e35cf: 8d442478 lea eax, [esp+78]
045e35d3: 6a04 push 04
045e35d5: 50 push eax
045e35d6: 51 push ecx
045e35d7: ffd7 call edi
045e35d9: 85c0 test eax, eax
045e35db: 7430 jz 045e360d
045e35dd: 837c247404 cmp dword ptr [esp+74], 04
045e35e2: 7529 jnz 045e360d
045e35e4: 8b442470 mov eax, [esp+70]
045e35e8: 8b4c2464 mov ecx, [esp+64]
045e35ec: 8d542474 lea edx, [esp+74]
045e35f0: 55 push ebp
045e35f1: 52 push edx
045e35f2: 8b9678040000 mov edx, [esi+478]
045e35f8: 50 push eax
045e35f9: 51 push ecx
045e35fa: 52 push edx
045e35fb: ffd7 call edi
045e35fd: 85c0 test eax, eax
045e35ff: 740c jz 045e360d
045e3601: 8b442474 mov eax, [esp+74]
045e3605: 8b4c2470 mov ecx, [esp+70]
045e3609: 3bc1 cmp eax, ecx
045e360b: 7418 jz 045e3625
045e360d: 6848e56004 push 0460e548
045e3612: ff159c906004 call dword ptr [0460909c]
045e3618: 5f pop edi
045e3619: 5e pop esi
045e361a: 5d pop ebp
045e361b: b89cffffff mov eax, ffffff9c
045e3620: 5b pop ebx
045e3621: 83c45c add esp, 5c
045e3624: c3 ret
045e3625: 83cfff or edi, ff
045e3628: 8b8e24010000 mov ecx, [esi+124]
045e362e: 8b4310 mov eax, [ebx+10]
045e3631: 8944243c mov [esp+3c], eax
045e3635: 8b148d88e46004 mov edx, [ecx*4+0460e488] <-- FAULT
045e363c: 8b4c2414 mov ecx, [esp+14]
045e3640: 51 push ecx
045e3641: 89542434 mov [esp+34], edx
045e3645: e8c6f9ffff call 045e3010
045e364a: 83c404 add esp, 04
045e364d: 3d0f270000 cmp eax, 0000270f
045e3652: 89442440 mov [esp+40], eax
045e3656: 750d jnz 045e3665
045e3658: 5f pop edi
045e3659: 5e pop esi
045e365a: 5d pop ebp
045e365b: b8feffffff mov eax, fffffffe
045e3660: 5b pop ebx
045e3661: 83c45c add esp, 5c
045e3664: c3 ret
045e3665: 8b5308 mov edx, [ebx+08]
045e3668: 8b4304 mov eax, [ebx+04]
045e366b: 89542434 mov [esp+34], edx
045e366f: 8b4814 mov ecx, [eax+14]
045e3672: 8b06 mov eax, [esi]
045e3674: 83f806 cmp eax, 06
045e3677: 894c2438 mov [esp+38], ecx
045e367b: 0f8770020000 ja 045e38f1
045e3681: ff24850c395e04 jmp dword ptr [eax*4+045e390c]
045e3688: 896c244c mov [esp+4c], ebp
045e368c: 8b8628010000 mov eax, [esi+128]
045e3692: 3bc5 cmp eax, ebp
045e3694: 7577 jnz 045e370d
045e3696: 8b44242c mov eax, [esp+2c]
045e369a: 0c10 or al, 10
045e369c: 8944242c mov [esp+2c], eax
Windows 5.0 (Win2000 build 2195) [Service Pack 2]
EAX = 04bee000
EBX = 0548fe00
ECX = 732e6b67
EDX = 00000000
EBP = 00000000
DS:ESI = 0023:047451f0
ES:EDI = 0023:ffffffff
SS:ESP = 0023:0548f8e8
CS:EIP = 001b:045e3635
FS = 0038
GS = 0000
EFLAGS = 00010246
MM0 = 000305ba01d10006
MM1 = 000306af021f0007
MM2 = 00245b8c1cf80054
MM3 = 01f34c0101f34c01
MM4 = 000000ee004d0001
MM5 = 000c000c000c000c
MM6 = 00a000a000a000a0
MM7 = 0000000000000000
Crash reason: Access Violation
Thread 00000814 (Main thread)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(126)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(128)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(126)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(128)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(126)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(128)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(126)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(128)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(126)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(128)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(126)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(128)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(411)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(411)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(411)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(427)
Thread 00000800 (FastWriteStream)
Thread 00000820 (Processing)
T:\projects\VirtualDub_old\main\Dub.cpp(2835)
T:\projects\VirtualDub_old\main\VideoSource.cpp(1433)
T:\projects\VirtualDub_old\main\VideoSource.cpp(1461)
T:\projects\VirtualDub_old\main\Dub.cpp(2840)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(515)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(526)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(515)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(526)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(515)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(526)
T:\projects\VirtualDub_old\main\VideoSequenceCompressor.cpp(358)
Thread 00000604 (I/O processing)
045e3635: xvid!00003635
020fd7ef: Pvmjpg20!DllUnregisterServer [020f0000+9080+476f]
045e6d1d: xvid!DriverProc [045e0000+6b30+1ed]
77fcba91: ntdll!RtlSizeHeap [77f80000+4b939+158]
77fcba91: ntdll!RtlSizeHeap [77f80000+4b939+158]
77fcbcdd: ntdll!RtlSizeHeap [77f80000+4b939+3a4]
77fcc0d1: ntdll!RtlSizeHeap [77f80000+4b939+798]
77fcc0f9: ntdll!RtlSizeHeap [77f80000+4b939+7c0]
77fcb781: ntdll!RtlFreeHeap [77f80000+4b633+14e]
77fcb781: ntdll!RtlFreeHeap [77f80000+4b633+14e]
77f8b43e: ntdll!RtlGetUserInfoHeap [77f80000+b368+d6]
77f8b400: ntdll!RtlGetUserInfoHeap [77f80000+b368+98]
77f84b2d: ntdll!RtlUnlockHeap [77f80000+4b13+1a]
77f84b48: ntdll!RtlUnlockHeap [77f80000+4b13+35]
77e9790f: KERNEL32!GlobalLock [77e80000+177e4+12b]
020fd8f2: Pvmjpg20!DllUnregisterServer [020f0000+9080+4872]
020fd840: Pvmjpg20!DllUnregisterServer [020f0000+9080+47c0]
020fdc70: Pvmjpg20!DllUnregisterServer [020f0000+9080+4bf0]
020fd95c: Pvmjpg20!DllUnregisterServer [020f0000+9080+48dc]
020f9fca: Pvmjpg20!DllUnregisterServer [020f0000+9080+f4a]
020f37e1: Pvmjpg20!000037e1
77f85fba: ntdll!LdrInitializeThunk [77f80000+5f14+a6]
0043a404: resize_table_row()
0043a8cf: resize_table_col()
0043c02c: Resampler::Process()
004339d3: resize_run()
6a8f17f8: MSVFW32!ICSendMessage [6a8f0000+17c4+34]
6a8f4ea4: MSVFW32!ICCompress [6a8f0000+4e43+61]
0046e271: VideoSequenceCompressor::packFrame()
0046798f: Dubber::WriteVideoFrame()
77e83b33: KERNEL32!WaitForSingleObjectEx [77e80000+3ad9+5a]
77e83b5b: KERNEL32!WaitForSingleObject [77e80000+3b4c+f]
0046844f: Dubber::ProcessingThread()
00468316: Dubber::ProcessingThreadKickstart()
004800e8: _threadstart@4()
77e96523: KERNEL32!TlsSetValue [77e80000+1640e+115]
-- End of report
When I start the encode Vdub starts to use more and more memory until eventually I've ran out and my poor machine complains. (I have 512 MB)
Is there anyway I can track down whats causing this?
Win 2K
vdub 1.4.10
Xvid from 15th April
audio going to 64 kbit/s LAME mono
Is anyone else having these memory leaks?
Would appreciate some advice here.:confused:
EDIT: Must be Xvid, don't get this with Divx 4.11, can a mod move this to the Xvid forum please?
Edit: I have Umaniac's build from today and now vdub is crashing :(
This mean anything to anyone?
VirtualDub crash report -- build 13870
--------------------------------------
Disassembly:
045e35a0: 0400 add al, 00
045e35a2: 007518 add [ebp+18], dh
045e35a5: 6868e56004 push 0460e568
045e35aa: ff159c906004 call dword ptr [0460909c]
045e35b0: 5f pop edi
045e35b1: 5e pop esi
045e35b2: 5d pop ebp
045e35b3: b89cffffff mov eax, ffffff9c
045e35b8: 5b pop ebx
045e35b9: 83c45c add esp, 5c
045e35bc: c3 ret
045e35bd: 8b8e78040000 mov ecx, [esi+478]
045e35c3: 8b3d94906004 mov edi, [04609094]
045e35c9: 8d542474 lea edx, [esp+74]
045e35cd: 55 push ebp
045e35ce: 52 push edx
045e35cf: 8d442478 lea eax, [esp+78]
045e35d3: 6a04 push 04
045e35d5: 50 push eax
045e35d6: 51 push ecx
045e35d7: ffd7 call edi
045e35d9: 85c0 test eax, eax
045e35db: 7430 jz 045e360d
045e35dd: 837c247404 cmp dword ptr [esp+74], 04
045e35e2: 7529 jnz 045e360d
045e35e4: 8b442470 mov eax, [esp+70]
045e35e8: 8b4c2464 mov ecx, [esp+64]
045e35ec: 8d542474 lea edx, [esp+74]
045e35f0: 55 push ebp
045e35f1: 52 push edx
045e35f2: 8b9678040000 mov edx, [esi+478]
045e35f8: 50 push eax
045e35f9: 51 push ecx
045e35fa: 52 push edx
045e35fb: ffd7 call edi
045e35fd: 85c0 test eax, eax
045e35ff: 740c jz 045e360d
045e3601: 8b442474 mov eax, [esp+74]
045e3605: 8b4c2470 mov ecx, [esp+70]
045e3609: 3bc1 cmp eax, ecx
045e360b: 7418 jz 045e3625
045e360d: 6848e56004 push 0460e548
045e3612: ff159c906004 call dword ptr [0460909c]
045e3618: 5f pop edi
045e3619: 5e pop esi
045e361a: 5d pop ebp
045e361b: b89cffffff mov eax, ffffff9c
045e3620: 5b pop ebx
045e3621: 83c45c add esp, 5c
045e3624: c3 ret
045e3625: 83cfff or edi, ff
045e3628: 8b8e24010000 mov ecx, [esi+124]
045e362e: 8b4310 mov eax, [ebx+10]
045e3631: 8944243c mov [esp+3c], eax
045e3635: 8b148d88e46004 mov edx, [ecx*4+0460e488] <-- FAULT
045e363c: 8b4c2414 mov ecx, [esp+14]
045e3640: 51 push ecx
045e3641: 89542434 mov [esp+34], edx
045e3645: e8c6f9ffff call 045e3010
045e364a: 83c404 add esp, 04
045e364d: 3d0f270000 cmp eax, 0000270f
045e3652: 89442440 mov [esp+40], eax
045e3656: 750d jnz 045e3665
045e3658: 5f pop edi
045e3659: 5e pop esi
045e365a: 5d pop ebp
045e365b: b8feffffff mov eax, fffffffe
045e3660: 5b pop ebx
045e3661: 83c45c add esp, 5c
045e3664: c3 ret
045e3665: 8b5308 mov edx, [ebx+08]
045e3668: 8b4304 mov eax, [ebx+04]
045e366b: 89542434 mov [esp+34], edx
045e366f: 8b4814 mov ecx, [eax+14]
045e3672: 8b06 mov eax, [esi]
045e3674: 83f806 cmp eax, 06
045e3677: 894c2438 mov [esp+38], ecx
045e367b: 0f8770020000 ja 045e38f1
045e3681: ff24850c395e04 jmp dword ptr [eax*4+045e390c]
045e3688: 896c244c mov [esp+4c], ebp
045e368c: 8b8628010000 mov eax, [esi+128]
045e3692: 3bc5 cmp eax, ebp
045e3694: 7577 jnz 045e370d
045e3696: 8b44242c mov eax, [esp+2c]
045e369a: 0c10 or al, 10
045e369c: 8944242c mov [esp+2c], eax
Windows 5.0 (Win2000 build 2195) [Service Pack 2]
EAX = 04bee000
EBX = 0548fe00
ECX = 732e6b67
EDX = 00000000
EBP = 00000000
DS:ESI = 0023:047451f0
ES:EDI = 0023:ffffffff
SS:ESP = 0023:0548f8e8
CS:EIP = 001b:045e3635
FS = 0038
GS = 0000
EFLAGS = 00010246
MM0 = 000305ba01d10006
MM1 = 000306af021f0007
MM2 = 00245b8c1cf80054
MM3 = 01f34c0101f34c01
MM4 = 000000ee004d0001
MM5 = 000c000c000c000c
MM6 = 00a000a000a000a0
MM7 = 0000000000000000
Crash reason: Access Violation
Thread 00000814 (Main thread)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(126)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(128)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(126)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(128)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(126)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(128)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(126)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(128)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(126)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(128)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(126)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(128)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(411)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(411)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(411)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(427)
Thread 00000800 (FastWriteStream)
Thread 00000820 (Processing)
T:\projects\VirtualDub_old\main\Dub.cpp(2835)
T:\projects\VirtualDub_old\main\VideoSource.cpp(1433)
T:\projects\VirtualDub_old\main\VideoSource.cpp(1461)
T:\projects\VirtualDub_old\main\Dub.cpp(2840)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(515)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(526)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(515)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(526)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(515)
T:\projects\VirtualDub_old\main\FilterSystem.cpp(526)
T:\projects\VirtualDub_old\main\VideoSequenceCompressor.cpp(358)
Thread 00000604 (I/O processing)
045e3635: xvid!00003635
020fd7ef: Pvmjpg20!DllUnregisterServer [020f0000+9080+476f]
045e6d1d: xvid!DriverProc [045e0000+6b30+1ed]
77fcba91: ntdll!RtlSizeHeap [77f80000+4b939+158]
77fcba91: ntdll!RtlSizeHeap [77f80000+4b939+158]
77fcbcdd: ntdll!RtlSizeHeap [77f80000+4b939+3a4]
77fcc0d1: ntdll!RtlSizeHeap [77f80000+4b939+798]
77fcc0f9: ntdll!RtlSizeHeap [77f80000+4b939+7c0]
77fcb781: ntdll!RtlFreeHeap [77f80000+4b633+14e]
77fcb781: ntdll!RtlFreeHeap [77f80000+4b633+14e]
77f8b43e: ntdll!RtlGetUserInfoHeap [77f80000+b368+d6]
77f8b400: ntdll!RtlGetUserInfoHeap [77f80000+b368+98]
77f84b2d: ntdll!RtlUnlockHeap [77f80000+4b13+1a]
77f84b48: ntdll!RtlUnlockHeap [77f80000+4b13+35]
77e9790f: KERNEL32!GlobalLock [77e80000+177e4+12b]
020fd8f2: Pvmjpg20!DllUnregisterServer [020f0000+9080+4872]
020fd840: Pvmjpg20!DllUnregisterServer [020f0000+9080+47c0]
020fdc70: Pvmjpg20!DllUnregisterServer [020f0000+9080+4bf0]
020fd95c: Pvmjpg20!DllUnregisterServer [020f0000+9080+48dc]
020f9fca: Pvmjpg20!DllUnregisterServer [020f0000+9080+f4a]
020f37e1: Pvmjpg20!000037e1
77f85fba: ntdll!LdrInitializeThunk [77f80000+5f14+a6]
0043a404: resize_table_row()
0043a8cf: resize_table_col()
0043c02c: Resampler::Process()
004339d3: resize_run()
6a8f17f8: MSVFW32!ICSendMessage [6a8f0000+17c4+34]
6a8f4ea4: MSVFW32!ICCompress [6a8f0000+4e43+61]
0046e271: VideoSequenceCompressor::packFrame()
0046798f: Dubber::WriteVideoFrame()
77e83b33: KERNEL32!WaitForSingleObjectEx [77e80000+3ad9+5a]
77e83b5b: KERNEL32!WaitForSingleObject [77e80000+3b4c+f]
0046844f: Dubber::ProcessingThread()
00468316: Dubber::ProcessingThreadKickstart()
004800e8: _threadstart@4()
77e96523: KERNEL32!TlsSetValue [77e80000+1640e+115]
-- End of report