Log in

View Full Version : Avisynth Crash...don't quite know what causes it.


Adub
4th August 2008, 16:36
Okay, I have tried this on two different computers, and I can reproduce it on both.

The thing is, I am not 100% sure what is causing it.

Here are a few specs.

Avisynth 2.57 (both MT and not)
XP SP2
Nvidia 8800 gt and 8600 gt
4gb and 2gb ram

Okay here is my script.

#avisource("example.avi")
BlankClip(length=3000, width=640, height=480, fps=23.976, color=$000000, pixel_type="YV12")
ttempsmoothF(maxr=7, strength=2)
fft3dgpu(sigma=0,sigma2=1.5,sigma3=1.5,sigma4=0,bt=2)
Limitedsharpenfaster(strength=50)
toon(0.4)
Lanczos4resize(704,480)

I have alternated back and forth between the avi and Blankclip, and the avi crashes everytime (I discovered this on a d2v source as well, so that's not it) but the Blankclip section works most of the time as well.

To reproduce, open Media Player Classic HomeCinema. Drag and drop the script in once. Once it has opened and playing, DON'T CLOSE IT, and drag and drop the script on to the open player. You may have to do this a couple of times (2-10) to get it to crash, but it will. It will either crash or display an error.


Also, if you drag and drop the script onto the latest MeGUI (0.3.0.1020) and hit the enque button a few times (1-10) it will also crash.

This is the error that I have been getting.

This one appeared at work, with both Megui and mpc
http://i34.photobucket.com/albums/d125/Merlin7777/meguicrash.jpg


And then at home (where I discovered this bug while working on my Neon Genesis dvds) I got this in MPC
http://i34.photobucket.com/albums/d125/Merlin7777/Clipboard02.jpg


and this in MeGUI
http://i34.photobucket.com/albums/d125/Merlin7777/Clipboard01.jpg

whenever I closed the applications.

Now, if I comment out LimitedSharpenFaster OR fft3dgpu, the script works fine.

I have also tried it with mt_masktools-26.dll (the latest experimental version) and mt_masktools.dll(version alpha 32). It crashes with both.

It seems to be some interaction between fft3dgpu and masktools, but I am not sure.

I will upload the avi file, it which crashes almost every 2nd time.

Can anyone else confirm?


Edit: Debugview is sparse
[988] Creation of mvCore at adresse : 53102532
[988] Destruction of mvCore at adresse : 53102532
[988] Creation of mvCore at adresse : 62998468
[988] Destruction of mvCore at adresse : 62998468
[2136] Creation of mvCore at adresse : 269895620
[2136] Destruction of mvCore at adresse : 269895620
[2136] Creation of mvCore at adresse : 269895620
[2136] Destruction of mvCore at adresse : 269895620


and here is the link to the avi test file (7zipped)
http://www.mediafire.com/download.php?vyzny2g4vi6

Manao
4th August 2008, 19:24
Can you monitor your memory usage during the successive drag & drop. A memory leak would quickly make a malloc return 0, which, if not checked, would then crash. I seriously doubt there's an interaction between the masktools and FFT3Dgpu, it's more likely than when used together, memory usage gets up more quickly.

Finally, masktools-26.dll is meant for avisynth 2.6, and is NOT compatible with avisynth 2.5.x.

Adub
4th August 2008, 19:49
Huh, weird. It seemed to be working. I will use Masktools alpha 35, mt_masktools-25.dll . I will report back on mem usage during my lunch.

Edit:
Okay, for MPC mem usage is as follows:
On the initial opening of the script for the first time, memory settles around 360,000k. Upon re-dragging and dropping, memory reaches...73,768k

For MeGUI,
Initial preview window is 124,000k. Upon pressing "Enqueue" it reaches around 87,000k and then 96,000k when the error dialog window pops up.

Fizick
4th August 2008, 21:15
your debugview messages is from MVTools.

Adub
4th August 2008, 21:52
Yeah, I just thought I would post it incase it was needed. Good old information overload, you know.

Adub
6th August 2008, 16:45
Hmm....It seems if I replace RemoveGrainSSE3 with the SSE2 version, everything works. Very odd. I still get an CAVIStreamSynth: System exception - Access Violation at 0x0, reading from 0x0, error on occasion.

Does anyone know why this is the case? Or can anyone even replicate my problem? I have done this on 2 completely different computers, so I am a little surprised no one has been able to replicate the issue.

mikeytown2
6th August 2008, 17:07
Hmm....It seems if I replace RemoveGrainSSE3 with the SSE2 version, everything works. Very odd.

It's a documented bug with the SSE3 code
http://avisynth.org/mediawiki/RemoveGrain

Adub
6th August 2008, 18:16
Oh, I could kiss you!!

Thank you very much for clearing that up for me! That just erased so many worries.

Much thanks, mikeytown2!

Edit: Aha!! Even better!! There seems to be a link to the fixed versions. I'll update the wiki.