Log in

View Full Version : cavistreamsynth: system exception - integer divide by zero at 0x2a09d5f


Amateur
11th March 2011, 03:33
for some reason, I am now getting this error in the middle of encoding a movie of mine. it will encode just find for the first 6+ minutes of the movie then it will cut to a black screen with that message displayed across the top. megui doesn't give me any errors but i can tell when it occurs because the FPS will all of a sudden start increasing dramatically and reduce my 12 hour projected time and finish in 2 hours.

my script:
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("E:\DVDs\Fox and the Hound\VTS_03_1.d2v", cpu=4, info=3)
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, threads=0)

removegrain(mode=1)

crop( 8, 0, -2, 0)
LanczosResize(640,480)

input=last.ConvertToYV12()
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\DustV5.dll")
ConvertToYUY2().PixieDust().ConvertToYV12()
Repair(last,input)

edeen(3,6,8,2,2)
dfttest()

lsfmod(strength=200)

Spline36Resize(last.width*2,last.height*2)
FastLineDarken(strength=150,luma_cap=225,thinning=0)
aWarpSharp2(thresh=160, blur=3, type=0, depth=8, chroma=4)
aWarpSharp2(thresh=160, blur=3, type=0, depth=8, chroma=4)
Spline36Resize(last.width/2,last.height/2)

the first time i tried the encode i think it did it around 6:15 and the second time was around 6:50. when i check the original VOB there seems to be absolutely no hiccup in the video at all so i have no idea why all of a sudden it's giving me a divide by 0 error.

manono
11th March 2011, 04:02
Do a CTRL/ALT/DELETE while it's encoding to check if something is leaking memory. If so, the amount of memory being used by the encoder will go up and up until you have no more left and it crashes.

Amateur
11th March 2011, 04:47
i always thought leaking memory would just cause megui to crash but that's not what's happening for me. i'm currently in the middle of encoding (current position is 6:17 into the video...right around where it has been crashing before) and when looking at task manager i have

vfw4x264 steady at 626,908
x264_64 steady at 227,408

neither one is budging even by 1 but so far my encode is running at the expected 2.35fps


on a side note, would leaking memory cause the computer to restart? lately while leaving my encodes running overnight i will wake up only to find my computer had restarted before megui finished. it's quite annoying when i have something going for four or five hours and all of that has just been wasted.

manono
11th March 2011, 09:53
OK, so that's not it. What about heat? Nothing stresses a computer quite as much as video encoding. Restarting can definitely be a sign of an overheating computer. You might try something as a test. Take the cover off and point a small table fan at the computer, right at the CPU. If the encode completes then you might have to check your fans - make sure they're all running and maybe clean them of dust.

Amateur
12th March 2011, 20:59
tried it again and now i got some new error pretty close to the beginning. i'm going to try and re-rip the ISO from the DVD. maybe it had an error and i didn't know it.

is there something that will tell me if a VOB has an error or glitches in it so i don't encode the entire thing only to find out while watching it that there is a ten to twenty second portion that skips around? i hate when that happens.

setarip_old
12th March 2011, 21:16
@Amateur

Hi!

Sounds like another improperly ripped Disney release.

What software and procedures are you using to rip your original, commercial DVD?

Amateur
13th March 2011, 00:25
dvd decrypter using IFO mode to rip the VOB file.

is this a common problem with Disney movies? it' happening with both The Fox & the Hound and Lady & the Tramp

i got 101 dalmatians to work properly and winnie the pooh.

manono
13th March 2011, 01:08
Use DVDFab HD Decrypter.

Amateur
13th March 2011, 05:29
i'll check it out. is that free or just a free trial? does it also work with HD-DVD because i have quite a few of those also so that would be helpful to me

setarip_old
13th March 2011, 05:37
is this a common problem with Disney movies?It's a common problem when you insist on trying to use discontinued ripping software (although it still can deal with MANY earlier protection schemes) with discs (such as virtually ALL Disney releases under the "Disney" name).

As "manono" suggested, try using (freeware) DVDFabHD Decrypter - or, if you intend to convert to .MKV, use MakeMKV...

Amateur
13th March 2011, 17:00
well it was never a problem until a few days ago but i don't necessarily think it is my ripping software. just now i tried my hands at my scooby doo DVDs. i made several test encodes ranging from 2000 to 7000 frames until i got a setting that i liked. now when i want to encode the entire episode i get

cavistreamsynth: system exception - access violation at 0x28d6851 , writing to 0x331a000

different error than before but still an error. what the heck is causing this stuff?

setarip_old
13th March 2011, 20:16
In ADDITION to using less-than-current ripping software, there's always the possibility that your drive is dying.

Amateur
13th March 2011, 21:29
hard drive or optical drive?

i have used two different hard drives for these rips (i have two 1.5tb drives in my computer). i have recently gotten these errors on both drives.

just tried to do six episodes of scooby doo and one of them actually encoded properly. the other five all gave me some variation of cavistreamsynth: system exception - access violation at 0x28d6851 , writing to 0x331a000 (the numbers/letters have differed.)

the vob files seem to have no issues...

setarip_old
14th March 2011, 04:21
The drive that you use for READING/RIPPING your original, commercial DVDs...

Amateur
14th March 2011, 06:16
hmmm...well is there a way to check for errors? i have two samsung hard drives so when i typed "how to check samsung hard drive for errors" i tried the first two links which had samsung in the web address but both gave me errors.

edit: i did find this...is it what i'm looking for?
http://www.samsung.com/global/business/hdd/productmodel.do?group=72&type=94&subtype=98&model_cd=441&dType=G&mType=SW&tab=down&ppmi=1219

Amateur
17th March 2011, 05:22
getting that integer divide by zero error again. this isn't a problem with megui or any of my filters being used? this time (different source) it happens about 55% through the encode.

Amateur
27th March 2011, 17:36
ok these errors are popping up again and i can't pinpoint a reason. i have new memory that passed 8 hours of memtest86+. i have ripped the episodes to three different hard drives. i used dvd fab to rip the episodes. it's nothing wrong with megui??? or the filters i'm using? it's no longer just disney movies either (the tick and freakazoid are also doing it recently)

since i don't always know which is the newest version of a filter, could anyone link me to the newest versions of the filters i'm using in case that is the reason?

edeen (from this (http://avisynth.org/warpenterprises/) page)
awarpsharp2 (currently using this (http://forum.doom9.org/showthread.php?t=147285&highlight=awarpsharp))
dfttest (v1.8 from here (http://web.missouri.edu/~kes25c/))
lsfmod (from here (http://forum.doom9.org/showthread.php?t=142706))
removegrain (not sure which version i'm using. what is most up-to-date version for this?)

should this be moved to the megui troubleshooting thread? i'm not sure if it's a problem with megui even

setarip_old
27th March 2011, 20:11
Are you running low on free hard drive space? Empty all trash bins...

Amateur
27th March 2011, 20:41
i have 240gb free out of 1.36tb on one drive. 96gb free on another 1.36tb drive. and 30gb free on an 80gb hard drive. if my hard drive is the issue, why is nothing else effected except megui encodes? sometimes it's just a matter of restarting the encode for it to actually work. some require restarting it once, while another just ended up working after about the fifth time restarting without changing anything.

Amateur
29th March 2011, 04:53
ok two new errors actually popped up from megui instead of in my resulting video output:

first one said something about attempting to write to write protected memory or something and said other memory may be corrupt.
second one says "object reference not set to an instance of an object". this error is not letting me close the video preview window

neither one actually caused megui to shut down.

are either of these related to my previous problems? i downloaded the latest megui but it doesn't seem to be helping

Zathor
3rd April 2011, 15:32
Please post the complete megui log when encountering "object reference not set to an instance of an object".

Also please try it only with a basic avs script without any special filters beside DGDecode. This way you can check if it is maybe a filter related problem.

Amateur
7th April 2011, 03:26
oh well those last two errors happened before i even began the encode process so i don't think there was a log. plus i closed megui since then so i don't know where to locate past logs sorry.

also, i haven't gotten that CAVIstream error during playback in the last several encodes but the next time i do i'll post the log to see if that helps. (errors don't actually appear in the log though so would there be any clues as to when exactly the error occurs and why?)

Amateur
9th April 2011, 03:05
alright here is the log for the job that continues to give me a divide by zero error

[Information] Log for job1 (video, VTS_01_1.avs -> VTS_01_1.mp4)
-[Information] [4/8/2011 6:27:03 PM] Started handling job
-[Information] [4/8/2011 6:27:03 PM] Preprocessing
-[Information] Avisynth input script
--[NoImage] LoadPlugin("C:\Program Files (x86)\MeGUI\tools\dgindex\DGDecode.dll")
--[NoImage] DGDecode_mpeg2source("F:\freakazoid\VTS_01_1.d2v", cpu=4, info=3)
--[NoImage] LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\ColorMatrix.dll")
--[NoImage] ColorMatrix(hints=true, threads=0)
--[NoImage] telecide(guide=1, post=2)
--[NoImage] decimate(mode=0, cycle=5)
--[NoImage] removegrain(mode=1)
--[NoImage] crop( 2, 0, -2, 0)
--[NoImage] LanczosResize(640,480)
--[NoImage] input=last.ConvertToYV12()
--[NoImage] LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\DustV5.dll")
--[NoImage] ConvertToYUY2().PixieDust().ConvertToYV12()
--[NoImage] Repair(last,input)
--[NoImage] Spline36Resize(1280,960)
--[NoImage] FastLineDarken(strength=150,luma_cap=225,thinning=0)
--[NoImage] aWarpSharp2(thresh=160, blur=3, type=0, depth=10, chroma=4)
--[NoImage] FastLineDarken(strength=150,luma_cap=225,thinning=0)
--[NoImage] aWarpSharp2(thresh=160, blur=3, type=0, depth=10, chroma=4)
--[NoImage] Spline36Resize(640,480)
--[NoImage] edeen(3,7,9,2,3)
--[NoImage] dfttest()
--[NoImage] lsfmod(strength=150)
--[NoImage] maa()
-[Information] Job commandline: "C:\Program Files (x86)\MeGUI\tools\x264\vfw4x264.exe" --qp 23 --bframes 16 --b-adapt 2 --ref 10 --qpmin 10 --qpmax 51 --me umh --subme 9 --partitions all --no-fast-pskip --sar 1:1 --output "F:\freakazoid\VTS_01_1.mp4" "F:\freakazoid\VTS_01_1.avs"
-[Information] [4/8/2011 6:27:04 PM] Encoding started
-[Information] Standard output stream:
-[Information] Standard error stream
--[NoImage] raw [info]: 640x480p 1:1 @ 24000/1001 fps (cfr)
--[NoImage] x264 [info]: using SAR=1/1
--[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
--[NoImage] x264 [info]: profile High, level 3.1
--[NoImage]
--[NoImage] x264 [info]: frame I:234 Avg QP:20.00 size: 26401
--[NoImage] x264 [info]: frame P:13561 Avg QP:23.00 size: 4754
--[NoImage] x264 [info]: frame B:16967 Avg QP:24.70 size: 3405
--[NoImage] x264 [info]: consecutive B-frames: 26.4% 4.0% 12.2% 29.5% 17.9% 5.6% 1.5% 0.8% 0.4% 0.3% 0.5% 0.7% 0.0% 0.1% 0.0% 0.0% 0.1%
--[NoImage] x264 [info]: mb I I16..4: 24.7% 40.5% 34.9%
--[NoImage] x264 [info]: mb P I16..4: 6.6% 2.9% 1.8% P16..4: 18.5% 5.4% 2.4% 0.4% 0.4% skip:61.5%
--[NoImage] x264 [info]: mb B I16..4: 0.8% 0.5% 0.5% B16..8: 23.4% 7.6% 3.2% direct: 2.8% skip:61.2% L0:39.6% L1:48.9% BI:11.5%
--[NoImage] x264 [info]: 8x8 transform intra:27.2% inter:51.2%
--[NoImage] x264 [info]: coded y,uvDC,uvAC intra: 31.3% 52.9% 22.5% inter: 10.5% 12.2% 2.0%
--[NoImage] x264 [info]: i16 v,h,dc,p: 45% 23% 11% 20%
--[NoImage] x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 17% 17% 8% 9% 8% 11% 8% 12%
--[NoImage] x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 13% 11% 8% 11% 9% 11% 9% 12%
--[NoImage] x264 [info]: i8c dc,h,v,p: 43% 28% 18% 11%
--[NoImage] x264 [info]: Weighted P-Frames: Y:7.0% UV:4.0%
--[NoImage] x264 [info]: ref P L0: 48.3% 9.2% 16.4% 6.1% 4.7% 4.5% 3.8% 2.3% 2.0% 2.0% 0.8% 0.1%
--[NoImage] x264 [info]: ref B L0: 77.1% 9.6% 4.4% 2.5% 1.8% 1.8% 1.4% 0.9% 0.5%
--[NoImage] x264 [info]: ref B L1: 95.4% 4.6%
--[NoImage] x264 [info]: kb/s:800.75
--[NoImage] encoded 30762 frames, 2.47 fps, 800.76 kb/s
-[Information] Final statistics
--[Information] Constant Quantizer Mode: Quantizer 23 computed...
--[Information] Video Bitrate Obtained (approximate): 802 kbit/s
-[Information] [4/8/2011 9:54:49 PM] Postprocessing
--[Information] Deleting intermediate files
-[Information] [4/8/2011 9:54:49 PM] Job completed

http://img683.imageshack.us/img683/3661/vts011mp4snapshot165520.png

i've re-encoded this particular episode several times and get the error at the same place each time. it doesn't seem to matter where i put the disc image, vob file, or indexed files.