PDA

View Full Version : Problems in avisynth 2.5 - crashing


Zarxrax
11th June 2003, 06:32
I've got 2 different problems with the 2.5x version of avisynth. I tried 2.08 and that version worked flawlessly, so it must be something thats cropped up in the 2.5x version.
First of all, if I load a script into a program such as virtualdub/mod, or media player classic, upon closing the script the program will crash. This includes closing the program, closing just the script itself, trying to refresh the script, or loading a different file. I get the standard "Program Error" dialogue.

Next, if I have an error in my script, instead of just displaying the error message in virtualdub like it should, virtualdub (or whatever program) will immediately crash upon trying to load the script. No error messages at all, just an abrubt crash.

Hopefully someone will be able to help me through this, cause its really annoying :p

MasterYoshidino
11th June 2003, 07:34
it would help if you posted the script that is causing the crashes

I myself noticed that my script tends to crash randomly in 2.52 alpha but NOT in beta :(


#spirited.avs
LoadPlugin("C:\AVISYNTH2.5\MPEG2Dec3.dll")
LoadPlugin("C:\AVISYNTH2.5\Decomb.dll")
LoadPlugin("C:\AVISYNTH2.5\Dup.dll")
LoadPlugin("C:\AVISYNTH2.5\MSharpen.dll")
LoadPlugin("C:\AVISYNTH2.5\MSmooth.dll")
LoadPlugin("C:\AVISYNTH2.5\TemporalCleaner.dll")
LoadPlugin("C:\AVISYNTH2.5\_2DCleanYUY2_for_25.dll")
LoadPlugin("C:\AVISYNTH2.5\VSFilter.dll")
MPEG2source("F:\spirited.d2v",cpu=6,iPP=true,idct=5)
SeparateFields()
MSharpen(threshold=10,strength=50,mask=false,highq=true,debug=false)
Weave()
ConvertToYUY2()
Telecide(hints=true,post=4,order=1,chroma=true,guide=1,dthresh=8,gthresh=10).Decimate(cycle=5,mode=2,quality=3)
_2DCleanYUY2(0,8,3,3,0,127,127)
crop(26,22,668,432)
BilinearResize(608,320)
yoshit_a = trim(0,34737).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_b = trim(34738,34811).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_c = trim(34812,72905).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_d = trim(72906,73019).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_e = trim(73020,73091).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_f = trim(73092,73211).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_g = trim(73212,74187).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_h = trim(74188,74899).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_i = trim(74900,78660).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_j = trim(78661,79470).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_k = trim(79471,94861).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_l = trim(94862,95104).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_m = trim(95105,97070).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_n = trim(97071,97118).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_o = trim(97119,106859).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_p = trim(106860,107015).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_q = trim(107016,143445).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_r = trim(143446,143939).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_s = trim(143940,144078).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_t = trim(144079,144252).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_u = trim(144253,145250).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_v = trim(145251,145430).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_w = trim(145431,151435).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_x = trim(151436,151684).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_y = trim(151685,153602).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_z = trim(153603,153727).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_a2 = trim(153728,154319).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_b2 = trim(154320,154643).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_c2 = trim(154644,165369).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_d2 = trim(165370,165540).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_e2 = trim(165541,178928).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_f2 = trim(178929,178984).TemporalCleaner(ythresh=2,cthresh=8)
yoshit_g2 = trim(178985,0).Dup(threshold=1.00,show=false,copy=true,maxcopies=20).TemporalCleaner(ythresh=2,cthresh=8)
return yoshit_a + yoshit_b + yoshit_c + yoshit_d + (you get the picture)

then splitting the script into 4 avs/parts with the following lines.
#spirited1.avs thru sprited4.avs
import("spirited.avs")
trim(0,49564)
trim(49565,100305)
trim(100306,144078)
trim(144079,0)

AVISynth tells me there is a memory access error @ 0x0193cdb0, attempting to read from 0x07918640
this seems to be pointing at trim importing from another avs that also has trimmings :(
but I need the script like this since it has the scenes that dup screws up with with NO dup added. And it is RANDOM, not at any specific frame(s)

Zarxrax
11th June 2003, 08:55
These problems occur on ANY script.

Wilbert
11th June 2003, 10:38
Does emptying the plugin-dir help?

MasterYoshidino
11th June 2003, 18:26
O_o I am thinking 2.52 may have a memory handling glitch ...

Zarxrax
11th June 2003, 20:57
Wilbert: That did the trick! Placing my plugins back one at a time, I discovered that each of these filters would cause the problem:
Mipsmooth.dll
tprivtc.dll
SmoothHiQ.dll
MaskTools.dll
bordercontrol.dll
aWarpSharp.dll
WarpSharp.dll

This sounds awefully fishy to me... what could be causing these filters to act up?

sh0dan
12th June 2003, 08:59
Warpsharp.dll

Zarxrax
12th June 2003, 20:51
No, even if I put a single one of those filters that I listed into my plugins folder, I get the crashes, even with warpsharp.dll left out.