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.

 
Crash While Using Avisynth, Crash report
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
muzician
Posted: Jul 2 2013, 07:21 AM


Advanced Member


Group: Members
Posts: 32
Member No.: 25398
Joined: 9-April 09



Trying to process DV video using Avisynth using this script:

SetMTMode(3, 4)
FFMpegSource2("source.avi", atrack=-1)
ConverttoYv12()
RemoveGrain (mode=17)
QTGMC (Preset="fast")
crop (8,0,-8,-8)

Converting to Huffyuv as specified within Virtualdub. It worked okay on smaller - approx 2 gig - files but trying it on a larger - approx 11 gig - file Virtualdub crashes.

I had originally been using Avisource but was having problems with intermittent glitches in the processed file. Someone suggested using FFMpegSource2 which seemed to cure the problem when processing the smaller file but am running into the crash problem with the larger file.

The short crash report is

An out-of-bounds memory access (access violation) occurred in module 'mt_masktools-25'...
...reading address 33C40020.

The long crash report:

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

Disassembly:
02b74060: 57 push edi
02b74061: 55 push ebp
02b74062: 8b4c2414 mov ecx, [esp+14h]
02b74066: 8b5c241c mov ebx, [esp+1ch]
02b7406a: 8b742424 mov esi, [esp+24h]
02b7406e: 8b7c242c mov edi, [esp+2ch]
02b74072: 8b6c2430 mov ebp, [esp+30h]
02b74076: 660f6e742434 movd xmm6, [esp+34h]
02b7407c: 660f6e7c2438 movd xmm7, [esp+38h]
02b74082: 660f60f6 punpcklbw xmm6, xmm6
02b74086: 660f60f6 punpcklbw xmm6, xmm6
02b7408a: 660f60f6 punpcklbw xmm6, xmm6
02b7408e: 660f60f6 punpcklbw xmm6, xmm6
02b74092: 660f60ff punpcklbw xmm7, xmm7
02b74096: 660f60ff punpcklbw xmm7, xmm7
02b7409a: 660f60ff punpcklbw xmm7, xmm7
02b7409e: 660f60ff punpcklbw xmm7, xmm7
02b740a2: 0f6e742434 movd mm6, [esp+34h]
02b740a7: 0f6e7c2438 movd mm7, [esp+38h]
02b740ac: 0f60f6 punpcklbw mm6, mm6
02b740af: 0f70f600 pshufw mm6, mm6, 00h
02b740b3: 0f60ff punpcklbw mm7, mm7
02b740b6: 0f70ff00 pshufw mm7, mm7, 00h
02b740ba: 89fa mov edx, edi
02b740bc: 83e2c0 and edx, 0c0h
02b740bf: 31c0 xor eax, eax
02b740c1: 39d0 cmp eax, edx
02b740c3: 0f84b6000000 jz 02b7417f
02b740c9: 0f db 0fh
02b740ca: 184c0140 sbb [ecx+eax+40h], cl
02b740ce: 0f db 0fh
02b740cf: 184c0340 sbb [ebx+eax+40h], cl
02b740d3: 0f db 0fh
02b740d4: 184c0640 sbb [esi+eax+40h], cl
02b740d8: 660f6f0403 movdqa xmm0, [ebx+eax]
02b740dd: 660f6f4c0310 movdqa xmm1, [ebx+eax+10h]
02b740e3: 660f6f1406 movdqa xmm2, [esi+eax] <-- FAULT
02b740e8: 660f6f5c0610 movdqa xmm3, [esi+eax+10h]
02b740ee: 660fdcc6 paddusb xmm0, xmm6
02b740f2: 660fdcce paddusb xmm1, xmm6
02b740f6: 660fd8d7 psubusb xmm2, xmm7
02b740fa: 660fd8df psubusb xmm3, xmm7
02b740fe: 660f6f2401 movdqa xmm4, [ecx+eax]
02b74103: 660f6f6c0110 movdqa xmm5, [ecx+eax+10h]
02b74109: 660fdac4 pminub xmm0, xmm4
02b7410d: 660fdacd pminub xmm1, xmm5
02b74111: 660fdec2 pmaxub xmm0, xmm2
02b74115: 660fdecb pmaxub xmm1, xmm3
02b74119: 660f7f0401 movdqa [ecx+eax], xmm0
02b7411e: 660f7f4c0110 movdqa [ecx+eax+10h], xmm1
02b74124: 660f6f440320 movdqa xmm0, [ebx+eax+20h]
02b7412a: 660f6f4c0330 movdqa xmm1, [ebx+eax+30h]
02b74130: 660f6f540620 movdqa xmm2, [esi+eax+20h]
02b74136: 660f6f5c0630 movdqa xmm3, [esi+eax+30h]
02b7413c: 660fdcc6 paddusb xmm0, xmm6
02b74140: 660fdcce paddusb xmm1, xmm6
02b74144: 660fd8d7 psubusb xmm2, xmm7
02b74148: 660fd8df psubusb xmm3, xmm7
02b7414c: 660f6f640120 movdqa xmm4, [ecx+eax+20h]
02b74152: 660f6f6c0130 movdqa xmm5, [ecx+eax+30h]
02b74158: 660fdac4 pminub xmm0, xmm4
02b7415c: 660fdacd pminub xmm1, xmm5

Built on Althena on Sun Jun 03 14:28:23 2012 using compiler version 1400

Windows 5.1 (Windows XP x86 build 2600) [Service Pack 3]
Memory status: virtual free 1234M/2048M, commit limit 5465M, physical total 3583M

EAX = 00000000
EBX = 1a910020
ECX = 0f4a0020
EDX = 000002c0
EBP = 000001e0
ESI = 33c40020
EDI = 000002d0
ESP = 05cdfab4
EIP = 02b740e3
EFLAGS = 00010283
FPUCW = ffff027f
FPUTW = ffffaaaa

Crash reason: Access Violation

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

...reading address 33C40020.

Pointer dumps:

EBX 1a910020: 46391e09 41424546 413f3f3f 48474543 48484848 46454748 43454647 46444342
ECX 0f4a0020: 473b200e 41434647 42404040 48474443 48494949 49484848 47474648 47474747
ESP 05cdfab0: 00000000 05cdfb48 00000000 0f4a0020 02d11a68 02b0e392 0f4a0020 000002d0
05cdfad0: 1a910020 000002d0 33c40020 000002d0 000002d0 000001e0 00000000 00000000
05cdfaf0: 0000000f 02bba260 000093c2 00000170 000001e0 000002d0 33c40020 000002d0
05cdfb10: 000002d0 000001e0 33c40020 000002d0 000002d0 000001e0 1a910020 000002d0

Thread call stack:
02b740e3: mt_masktools-25!_AvisynthPluginInit2@4 [02af0000+200d0+64013]
02b0e392: mt_masktools-25!0001e392
02b1a0aa: mt_masktools-25!_AvisynthPluginInit2@4 [02af0000+200d0+9fda]
02b132b1: mt_masktools-25!_AvisynthPluginInit2@4 [02af0000+200d0+31e1]
7c9010fd: ntdll!RtlLeaveCriticalSection [7c900000+10e0+1d]
02b18822: mt_masktools-25!_AvisynthPluginInit2@4 [02af0000+200d0+8752]
010f61ca: AviSynth!000661ca
010fd395: AviSynth!avs_delete_script_environment [01090000+68ee0+44b5]
010fbf52: AviSynth!avs_delete_script_environment [01090000+68ee0+3072]
010fb353: AviSynth!avs_delete_script_environment [01090000+68ee0+2473]
02b1874c: mt_masktools-25!_AvisynthPluginInit2@4 [02af0000+200d0+867c]
010fd395: AviSynth!avs_delete_script_environment [01090000+68ee0+44b5]
010fbf52: AviSynth!avs_delete_script_environment [01090000+68ee0+3072]
010fb353: AviSynth!avs_delete_script_environment [01090000+68ee0+2473]
0116d110: AviSynth!DllCanUnloadNow [01090000+6f030+6e0e0]
010fd395: AviSynth!avs_delete_script_environment [01090000+68ee0+44b5]
010fbf52: AviSynth!avs_delete_script_environment [01090000+68ee0+3072]
01101757: AviSynth!DllCanUnloadNow [01090000+6f030+2727]
7c80b729: kernel32!GetModuleFileNameA [7c800000+b56f+1ba]

-- End of report


All assistance is appreciated.
 
     Top
dloneranger
Posted: Jul 2 2013, 12:27 PM


Moderator


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



The simple answer is that virtualdub's telling you that mt_masktools in avisynth has crashed
That's got nothing to do with virtualdub itself, it's just letting you know what caused it

I can't see anything from masktools being used in your script so is it being auto loaded?
Options: You could try removing SetMTMode, taking masktools out of avisynths plugin directory, or try getting support on their sites

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
jpsdr
Posted: Jul 3 2013, 06:58 AM


Advanced Member


Group: Members
Posts: 335
Member No.: 20490
Joined: 23-December 06



I'm almost sure that QTGMC uses masktools.
Unfortunately, MT version of avisynth is unstable, so this is probably why you have your crash.
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
2 replies since Jul 2 2013, 07:21 AM Track this topic | Email this topic | Print this topic

<< Back to Testing / Bug Reports