View Full Version : Help Need Avisynth Crash "Acces Violation" erro in CAVIStreamSynth module
HI all it just started to day to act so, I have already un installed and installed avisynth with different version 2.5.5 /2.5.6 /2.5.7 but always the same problem. It happens when the layer function is called (inside dekafka script) or at least I think so... here is the debug log
00000000 0.00000000 [1016] Process attach: hModule = 0x01130000, gRefCnt = 0
00000001 0.07576997 [1016] DllGetClassObject() CLSID: CAVIFileSynth
00000002 0.07588702 [1016] 014011F8->CAVIFileSynth::CAVIFileSynth()
00000003 0.07593675 [1016] 014011F8->CAVIFileSynth::AddRef() gRefCnt=1, m_refs=1
00000004 0.07599122 [1016] 014011F8->CAVIFileSynth::QueryInterface() {00000001-0000-0000-c000-000000000046} (IClassFactory)
00000005 0.07604011 [1016] 014011F8->CAVIFileSynth::AddRef() gRefCnt=2, m_refs=2
00000006 0.07608649 [1016] 014011F8->CAVIFileSynth::Release() gRefCnt=1, m_refs=1
00000007 0.07613286 [1016] DllGetClassObject() result=0x0, object=01401200
00000008 0.07618650 [1016] 014011F8->CAVIFileSynth::CreateInstance()
00000009 0.07623259 [1016] 01401230->CAVIFileSynth::CAVIFileSynth()
00000010 0.07627869 [1016] 01401230->CAVIFileSynth::AddRef() gRefCnt=2, m_refs=1
00000011 0.07635887 [1016] 01401230->CAVIFileSynth::QueryInterface() {00000000-0000-0000-c000-000000000046} (IUnknown)
00000012 0.07640636 [1016] 01401230->CAVIFileSynth::AddRef() gRefCnt=3, m_refs=2
00000013 0.07645329 [1016] 01401230->CAVIFileSynth::Release() gRefCnt=2, m_refs=1
00000014 0.07650274 [1016] 014011F8->CAVIFileSynth::CreateInstance() result=0x0, object=01401230
00000015 0.07654995 [1016] 01401230->CAVIFileSynth::AddRef() gRefCnt=3, m_refs=2
00000016 0.07659605 [1016] 01401230->CAVIFileSynth::Release() gRefCnt=2, m_refs=1
00000017 0.07664214 [1016] 014011F8->CAVIFileSynth::Release() gRefCnt=1, m_refs=0
00000018 0.07669802 [1016] 014011F8->CAVIFileSynth::~CAVIFileSynth(), gRefCnt = 1
00000019 0.07674411 [1016] 01401230->CAVIFileSynth::QueryInterface() {00000000-0000-0000-c000-000000000046} (IUnknown)
00000020 0.07679859 [1016] 01401230->CAVIFileSynth::AddRef() gRefCnt=2, m_refs=2
00000021 0.07685306 [1016] 01401230->CAVIFileSynth::Release() gRefCnt=1, m_refs=1
00000022 0.07689916 [1016] 01401230->CAVIFileSynth::QueryInterface() {0000010b-0000-0000-c000-000000000046} (IPersistFile)
00000023 0.07695196 [1016] 01401230->CAVIFileSynth::AddRef() gRefCnt=2, m_refs=2
00000024 0.07699777 [1016] 01401230->CAVIFileSynth::QueryInterface() {00020020-0000-0000-c000-000000000046} (IAVIFile)
00000025 0.07704778 [1016] 01401230->CAVIFileSynth::AddRef() gRefCnt=3, m_refs=3
00000026 0.07709723 [1016] 01401230->CAVIFileSynth::Load("D:\MY VIDEOS\simpson.AVS", 0x0)
00000027 0.07714304 [1016] 01401230->CAVIFileSynth::Release() gRefCnt=2, m_refs=2
00000028 0.07720646 [1016] 01401230->CAVIFileSynth::Release() gRefCnt=1, m_refs=1
00000029 0.07725256 [1016] 01401230->CAVIFileSynth::QueryInterface() {e6d6b708-124d-11d4-86f3-db80afd98778} (IAvisynthClipInfo)
00000030 0.12744832 [1016] 01401230->CAVIFileSynth::AddRef() gRefCnt=2, m_refs=2
00000031 0.27493885 [1016] 01401230->CAVIFileSynth::GetStream(*, 73646976(vids), 0)
00000032 0.27501317 [1016] 01402510->CAVIStreamSynth(video)
00000033 0.27505926 [1016] 01402510->CAVIStreamSynth::AddRef() (video) gRefCnt=3, m_refs=1
00000034 0.27510424 [1016] 01401230->CAVIFileSynth::AddRef() gRefCnt=4, m_refs=3
00000035 0.27518889 [1016] 01402510->CAVIStreamSynth::Info(0012F5A0, 204) (video)
00000036 0.27523414 [1016] 01402510->CAVIStreamSynth::ReadFormat() (video)
00000037 0.27528583 [1016] 01402510->CAVIStreamSynth::ReadFormat() (video)
00000038 0.27533108 [1016] 01402510->CAVIStreamSynth::Info(0012F5B0, 204) (video)
00000039 0.27559089 [1016] 01402510->CAVIStreamSynth::Info(0012F5A8, 204) (video)
00000040 0.27569007 [1016] 01402510->CAVIStreamSynth::Info(0012F5A8, 204) (video)
00000041 0.31278612 [1016] 01401230->CAVIFileSynth::GetStream(*, 73647561(auds), 0)
00000042 6.35638272 [1016] 01402510->CAVIStreamSynth::Release() (video) gRefCnt=3, m_refs=0
00000043 6.35645033 [1016] 01402510->~CAVIStreamSynth() (video), gRefCnt = 3
00000044 6.35649810 [1016] 01401230->CAVIFileSynth::Release() gRefCnt=2, m_refs=2
00000045 6.35656990 [1016] 01401230->CAVIFileSynth::Release() gRefCnt=1, m_refs=1
00000046 6.35661516 [1016] 01401230->CAVIFileSynth::Release() gRefCnt=0, m_refs=0
00000047 6.35665902 [1016] 01401230->CAVIFileSynth::~CAVIFileSynth(), gRefCnt = 0
00000048 6.36109506 [1016] DllCanUnloadNow(): gRefCnt = 0
00000049 6.36197226 [1016] Process detach: hModule = 0x01130000, gRefCnt = 0
Any help?
regards
Wilbert
3rd June 2006, 23:13
Could you post a script?
This is my script, it worked in te past without problem
Import("E:\Programmi\AviSynth 2.5\plugins\plugins\dekafka.avsi")
Import("E:\Programmi\AviSynth 2.5\plugins\plugins\italia1.avsi")
avisource("K:\MY VIDEOS\capture\some.avi",audio=false)
lanczosresize(720,576)
converttorgb(interlaced=true)
ApplyRange(0, 32055, "italia1", 500,500, 256)
dekafka
function dekafka(clip clip, clip maskclip, int Xstart, int Ystart, int X,int Y, int Amount)
{
ytop = Ystart
ybot = Ystart + Y
xleft = Xstart
xright = Xstart + X
clip = clip.ConvertToRGB32
maskclip = maskclip.ConvertToRGB32
topline = clip.Crop(Xstart-2, ytop-2, X, 2)
bottomline = clip.Crop(Xstart-2, ybot, X, 2)
leftline = clip.Crop(xleft-2, ytop-2, 2, Y)
rightline = clip.Crop(xright, ytop-2, 2, Y)
logosrc_hor = StackVertical(topline, bottomline).Blur(1.58, 0).BilinearResize(X, Y)
logosrc_ver = StackHorizontal(leftline, rightline).Blur(1.58, 0).BilinearResize(X, Y)
Amount2 = (Y>=2*X) ? 255 : 128*Y/X
# Amount2 is small if X >> Y => logoscr_hor is dominant
logosrc = Layer(logosrc_hor, logosrc_ver, "add", Amount2)
masklogo = maskclip.BilinearResize(X, Y)
logo = logosrc.Mask(masklogo)
clip = clip.Layer(logo, "add", Amount, Xstart, Ystart)
return clip
}
italia1
function italia1 (clip b, int offsetLeft, int offsetTop, int cont) {
maskclip = Imagereader("K:\MY VIDEOS\italia1.bmp", 0, 0)
Loop(maskclip, framecount(b))
b=dekafka(b, maskclip, offsetLeft, offsetTop, maskclip.width, maskclip.height, cont)
return b
}
Calling dekafka directly produce the same error
Exact text of error message please!
foxyshadis
5th June 2006, 08:12
Presumably the same one I get: A giant red error message stating "CAVIStreamSynth System Exception - Access Violation". (Occasionally I get an instakill too, like the old SP2 SEH bug.) But my problem seems not related to his, and it's very difficult to nail down (but repeatable once it is), so I didn't want to pollute this thread.
the exact error message is: "CAVIStreamSynth System Exception - Access Violation" with 2.5.7 alpha3
with 2.5.6 the error is: "Avisynth:caught an acces violation at 0x10011060, attempting to read from 0x0314e540"
at any reboot the addresses are always different, but whit out a reboot the addresses are always the same.
zettai
11th June 2006, 16:20
I just received this error as well using beta 3. I was doing a 3-pass encode in cce via batchCCEWS. When it got to the final pass, the first few frames encoded fine and the rest had this error.
It was fine for the first few passes. I've no idea why this died on the 3rd.
IanB
13th June 2006, 04:08
@TJeR,
What are the shape parameters for your "K:\MY VIDEOS\capture\some.avi" and "K:\MY VIDEOS\italia1.bmp" files? i.e. Height, Width, FrameCount, Codec/Pixel Type, etc... hint use Info() in a simple script.
Also does the script still choke if you replace the sources with BlackClip() equivalents and/or different files. i.e. is the fault data dependant.
I am also working to put back the PCounter and faulting address in the error message for the next release (Bad Me/Tritical). This may help in tracking these sort of problems in the future.
@zettai and All,
With these sort of problems make sure you PC is not going sick when worked hard and the processor heats up. Run some thrashing memory diags like memtest86 etc. Inspect the case holes, fans and heatsinks for dust and fluff.
TJeR
14th June 2006, 21:26
@TJeR,
What are the shape parameters for your "K:\MY VIDEOS\capture\some.avi" and "K:\MY VIDEOS\italia1.bmp" files? i.e. Height, Width, FrameCount, Codec/Pixel Type, etc... hint use Info() in a simple script.
From video Info()
colorspace: YUY2
WIDTH: 768 pixels, height:576 pixels
frames per second: 25.0000
Fielbased (separated) Video: NO
Parity: Bottom Field First
Video Pitch: 1536 bytes
Has Audio: NO
Audio Channels: 0
Sample Type: NONE
Samples per second: 0
CPU Detected: x87 MMX ISSE SSE 3DNOW 3DNOW_EXT
for logo
colorspace: rgb24
WIDTH: 90 pixels, height:78 pixels
Also does the script still choke if you replace the sources with BlackClip() equivalents and/or different files. i.e. is the fault data dependant.
it doesnt chocke with blankclip(), but it does with any captured avi. On a side note, I already succeded to capture, filter and convert to DVD two shows without problems in the past
zettai
14th June 2006, 21:28
My video was also YUY2. In my case it was a 1hour 6 min huffyuv file at 720x480 and interlaced.
The audio stream was 48000 stereo.
IanB
16th June 2006, 15:16
with 2.5.6 the error is: "Avisynth:caught an acces violation at 0x10011060, attempting to read from 0x0314e540"For 2.5.6a, 0x10011060 is in the middle of the asm_BitBlt_ISSE routineWhat are ...unt, Codec/Pix...Well ??? Codec is ...colorspace: YUY2
WIDTH: 768 pixels, height:576 pixelsHmm 768, not many capture devices correctly support this.it doesnt choke with blankclip(),At this stage my best guess would be something to do with your video codec crapping over memory.
Have you updated or installed anything recently?
How much of your script do you have to chop out before it works. Does this simple script work?avisource("K:\MY VIDEOS\capture\some.avi",audio=false)
lanczosresize(720,576)
converttorgb(interlaced=true)
@zettai,
Is your problem a hard fault or a random annoyance? i.e. does it always die in the same place on the 3rd pass?
TJeR
16th June 2006, 21:10
Well ??? Codec is ...
capture codec is hffyuv v2.1.1 ccepatch 0.2.5[/quote
Hmm 768, not many capture devices correctly support this.At this stage my best guess would be something to do with your video codec crapping over memory.
actualy it is iuVCR that want to capture with this resolution while other capture software like VirtualDub doesnt show 768*576 has a supported capture pin., but so far the problem exist iwith VirtualDub and iuVCR; another things maybe it is not the codec heither since avisynth crash with hffyuv and mjpec
Have you updated or installed anything recently?
well, that was my first thought and in the windows logs (and in my memory) there is no installation between the last succesfll avysinth work and the first avisynth crash
How much of your script do you have to chop out before it works. Does this simple script work?[code]avisource("K:\MY VIDEOS\capture\some.avi",audio=false)
lanczosresize(720,576)
converttorgb(interlaced=true)
actually it works with a script like that
Import("E:\Programmi\AviSynth 2.5\plugins\plugins\dekafka.avsi")
Import("E:\Programmi\AviSynth 2.5\plugins\plugins\italia1.avsi")
LoadPlugin("E:\Programmi\AviSynth 2.5\plugins\plugins\degrainmedian.dll")
LoadPlugin("E:\Programmi\AviSynth 2.5\plugins\plugins\leakkerneldeint.dll")
LoadPlugin("E:\Programmi\AviSynth 2.5\plugins\plugins\decross.dll")
LoadPlugin("E:\Programmi\AviSynth 2.5\plugins\plugins\tivtc\tivtc.dll")
LoadPlugin("E:\Programmi\AviSynth 2.5\plugins\plugins\tdeint\tdeint.dll")
LoadPlugin("E:\Programmi\AviSynth 2.5\plugins\plugins\bifrost.dll")
LoadPlugin("E:\Programmi\AviSynth 2.5\plugins\plugins\SSIq.dll")
LoadPlugin("E:\Programmi\AviSynth 2.5\plugins\plugins\frfun7.dll")
LoadPlugin("E:\Programmi\AviSynth 2.5\plugins\masktools\mt_masktools.dll")
LoadPlugin("E:\Programmi\AviSynth 2.5\plugins\plugins\DctFilter.dll")
LoadPlugin("E:\Programmi\AviSynth 2.5\plugins\plugins\defreq.dll")
LoadPlugin("E:\Programmi\AviSynth 2.5\plugins\plugins\autocrop.dll")
LoadPlugin("E:\Programmi\AviSynth 2.5\plugins\plugins\Deblock.dll")
LoadPlugin("E:\Programmi\AviSynth 2.5\plugins\plugins\undot.dll")
Import("E:\Programmi\AviSynth 2.5\plugins\plugins\mrestore.avs")
Import("E:\Programmi\AviSynth 2.5\plugins\plugins\deblock_qed_MT2.avs")
avisource("K:\MY VIDEOS\capture\some.avi",audio=false)
converttoyv12(interlaced=true)
decross()
defreq(fx=9.4,fy=-8,sharp=1.1)
ord = last.getparity() ? 1 : 0
a=leakkernelbob(order=ord,threshold=0,linked=true)
c=tdeint(mode=1)
Mrestore(a, clip2=c,profile=7)
bifrost()
ssiq()
#deblock_qed(20,20,uv=3)
degrainmedian()
frfun7(1.5,2.5,2.5)
#lanczosresize(720,576)
#converttorgb()
#ApplyRange(0, 32055, "italia1", 500,500, 256)
#autocrop()
crop(10,0,694,576)
addborders(6,58,2,64)
ConvertToYUY2(interlaced=true)
and works correctly with this
avisource("K:\MY VIDEOS\capture\some.avi",audio=false)
lanczosresize(720,576)
converttorgb(interlaced=true)
but it crash calling some other filter after "converttorgb"; actualy it looks like it chocke at this line of dekafka script
logosrc = Layer(logosrc_hor, logosrc_ver, "add", Amount2)
many thanks for your effort
Wilbert
16th June 2006, 23:57
Your top offset is not correct. top offset + height logo = 500 + 78 = 578, while height of clip = 576. So, try a smaller top offset.
If this is not the problem could you upload a small sample clip with the mask?
zettai
16th June 2006, 23:59
I used the same version of huffyuv, btw.
As for repeatability - to my knowledge it's not the exact same frame but it does happen within the first few seconds of the 3rd (well 4th technically) pass in CCE.
It's hard for me to test as it take hours for me to get to the crash point.
JuanC
17th June 2006, 03:52
With these sort of problems make sure you PC is not going sick when worked hard and the processor heats up. Run some thrashing memory diags like memtest86 etc. Inspect the case holes, fans and heatsinks for dust and fluff. A week ago I got the giant red error message stating "CAVIStreamSynth System Exception - Access Violation" during the last 20 minutes of a 24 min video clip. It was the third clip in a batch of 6. All the other 5 clips (including the last 3) were encoded fine. So I’m pretty sure it wasn’t a hardware problem.
The 6 of theses clips were 24 minutes episodes from a cartoon series I captured from TV and encoded to Xvid a couple of years ago. Now I was encoding them (OPVBR Q=1) with “CCE SP Trial Version 2.70” to make a DVD. All the 6 scripts were the same. I was trying FrFun7 filter, and as I was suspecting it was the culprit (great filter BTW, I guess I was wrong), I replaced it with some other filter and re-encoded the same clip without a problem.
Also does the script still choke if you replace the sources with BlackClip() equivalents and/or different files. i.e. is the fault data dependant. Today I have noticed a strange behavior:
1. If the source video is XviD or DivX Any single syntax error will make VirtualDub(Mod) Crash!!!:
1.1. If I load an AVS script with a syntax error, VD(mod) will vanish.
1.2. If I load a correct script and I purposely make a syntax mistake then “save and refresh”, sometimes VDmod will first display a strange incomplete error message and as soon as I press OK, It crashes (Faulting application virtualdubmod.exe, version 1.5.10.0, faulting module unknown, version 0.0.0.0, fault address 0x0197c328) or it just vanishes.
2. But If the source video is Mpeg2Source, or DirectshowSource(different to XviD/DivX), or a BlankClip there will be no problem: the correct “Script error: ….” message is displayed and no crash or “vanishing” of VirtualDub(mod)
Additional Info:
Hardware: Athlon64 (Winchester) 3000+ No OverClocking
I’m using AVIsynth 2.5.7a3 on WinXP SP2 just Winupdated (yesterday?) Also, I recently installed: DivX 6.2.5 (yesterday ?)
and a Vanilla CVS build of “XviD 1.2.0-dev” (1.2.0.-127)
Hi there, I got this problem as well.
http://rapidshare.de/files/23885531/console.mp4.html That is the result clip. Output to mp4 from MeGUI.
System: XP Pro SP2, 3500+ A64. No video output during encoding, obviously. AVS script used is trivial. Removegrain, awarpsharp, etc. No plugins loaded in script at all. Sauce is AVI AVisource("remote.avi",pixel_type="YV12"). AVI is video-only, 1024*576, WMV9 (I have WMV9VCM installed). AVS itself is 2.5.7a3. x264 is 532 sharktooth patched build.
C:\Program Files\x264\x264.exe --pass 2 --bitrate 1000 --stats ".stats" --keyint 500 --ref 8 --mixed-refs --no-fast-pskip --bframes 3 --b-pyramid --b-rdo --bime --weightb --direct auto --filter 1,1 --subme 6 --trellis 2 --analyse all --8x8dct --me umh --progress --no-psnr --output "" ""
Seems the error is not affected by bitrate or RDO setting (tried 6th and 7th).
I tried TWICE on same avs, and got that error both times. x264 continues to work, no error messages, only that huge exception text in the video itself :) It seems i do not have this problem when encoding same avs on same machine with 532 x264 vfw build in vdub.
foxyshadis
23rd June 2006, 19:07
What is remote.avi? xvid? So far I've only had it happen with mpeg4 asp files, which are getting decoded through ffdshow, but I don't have a wide enough test base (and it's so damn random) that I can't call it for sure.
It should actually have nothing to do with x264 - you should be able to hit the error just by playing it through in virtualdub, or at least it did to me after it happened several times in x264. What frame's it happen on, btw?
What is remote.avi? xvid? So far I've only had it happen with mpeg4 asp files, which are getting decoded through ffdshow, but I don't have a wide enough test base (and it's so damn random) that I can't call it for sure.
I think that was the response :P
AVI is video-only, 1024*576, WMV9 (I have WMV9VCM installed).
It should actually have nothing to do with x264 - you should be able to hit the error just by playing it through in virtualdub, or at least it did to me after it happened several times in x264. What frame's it happen on, btw?
Well if you downloaded the file I gave link to, you could see for yourself :) IIRC 1286 frame.
And so far the error doesn't show itself in vdub. I can try several times again though.
foxyshadis
23rd June 2006, 22:19
Weird! Maybe it's an overflow of some sort on x264's input routine, rather than in avisynth itself. I know it happened with one script in vdub, but sevreal different ones in x264, the vdub crash might've been a fluke...
I also could never get it to crash when using debug versions of anything, so it's a pain to trace. I wish I'd kept a test case, I'll have to find another.
Weird! Maybe it's an overflow of some sort on x264's input routine, rather than in avisynth itself. I know it happened with one script in vdub, but sevreal different ones in x264, the vdub crash might've been a fluke...
I also could never get it to crash when using debug versions of anything, so it's a pain to trace. I wish I'd kept a test case, I'll have to find another.
Well, tried again -- same stuff. But the framenumber is different (990 instead of 1286) so i guess that thing is not easy to trace.
I can send you sauce file + avs and pretty much anything which is related to that bug. It seems that at least in my case it crashes more or less reliably on TWO pass mode in x264. Constant quantizer seems working w/o troubles.
Is it possible to send me some degub versions or anything? I can try to run them on that machine, crash seems to be reproduced quite reliably here.
Boulder
30th June 2006, 15:59
I just had this weird problem. I have been working on a short movie doing a re-cut. The movie consists of 19 scenes and I have processed each one of them separately and compressed with HuffYUV (ffdshow's) in YUY2 colorspace.
Today I tried joining them in my script (to add some black frames here and there) and using fast recompress in VDub to save the whole movie as one large HuffYUV clip. When the process hits the beginning of scene 13, the error occurs. It occurs at the same frame every time, just a couple of frames from the beginning of (lucky:p) number 13.
1) I tried removing that scene from the encode - it works.
2) I tried saving the scene again (so that any errors during compression would be cleaned up) - doesn't work.
3) I tried joining all the clips in VDub and direct stream copying as a large file, then using that file as the source - doesn't work.
I tried Avisynth v2.5.6, the latest 2.5.7 alpha and tritical's latest build but none of them works.
The source file is 720x576, 25fps. Nothing special about it..
I just saved the scene 13 as uncompressed YUY2 data and will check if that works. Fortunately it's not a very long one since it'll take a lot of HD space. EDIT: looks like it got past scene 13 without crashing, we'll see if encoding the complete clip to MPEG2 works :)
Kyaneos
13th July 2006, 02:05
Something solve for this error?
I have captured a cartoon episode with "Alparysoft" in YV12 Colorspace, 720x576, 25 FPS with this script:
LoadPlugin("C:\Filters\dgmpgdec147b6\DGDecode.dll")
LoadPlugin("C:\Filters\TomsMoComp.dll")
AviSource("C:\ZoomOut.avi",audio=true)
a=Trim(361,3530).TomsMoComp(-1,5,1).LumaYV12(2,1).Crop(12,6,-20,-6).Lanczos4Resize(720,544)
b=Trim(3531,44331).TomsMoComp(-1,5,1).LumaYV12(2,1).Crop(20,4,-16,-4).Lanczos4Resize(720,544)
c=Trim(44332,46139).TomsMoComp(-1,5,1).LumaYV12(2,1).Crop(10,8,-24,-4).Lanczos4Resize(720,544)
a+b+c
I have used Nero Digital to compress in H264 AVC with Avisynth 2.5.7 Alpha 3.
I have compressed three times and always the same error in diferents places: "CAVIStreamSynth System Exception - Access Violation"
Something idea?
Thanks.
cweb
15th August 2006, 07:53
I had the same problem in avisynth 2.5.7 when I used the transall plugin. I reinstalled 2.5.6 and the problem went away for the time being.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.