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.

Pages: (2) [1] 2  ( Go to first unread post )
Median Filter v0.93 closes VDub, (was: Unexpected Crash Last Night)
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
alextaylor
Posted: May 27 2004, 09:42 AM


Unregistered









I'd installed a new plugin for AviSynth, and written a script. The script didn't yet reference the new plugin or any of its functions. VirtualDub exited immediately I tried to load the script - no warnings, no "Your application has crashed and will be closed" messages, it just vanished. Removing the offending plugin from the AviSynth plugins folder solved the problem.

Anyone know if this is an unfortunate side-effect of using an external handler, or an actual VirtualDub bug?
 
  Top
stephanV
Posted: May 27 2004, 10:06 AM


Spam killer ;)


Group: Moderators
Posts: 4348
Member No.: 8917
Joined: 18-February 04



which plug-in is it? is it a stable version?

could be that some avisynth-plug-ins break VirtualDub every once and a while... but normally there shouldnt be any problems.

--------------------
useful links:
VirtualDub, Input plugins and filters, AviSynth, AVI-Mux GUI, AC3ACM by fcchandler, VirtualDub FAQ
 
    Top
alextaylor
Posted: May 27 2004, 12:36 PM


Unregistered









Off the top of my head I can't remember, and I'm at work right now :-) I will check when I get home and let you know.
 
  Top
NuPogodi
Posted: May 27 2004, 12:55 PM


Advanced Member


Group: Members
Posts: 536
Member No.: 6558
Joined: 1-October 03



Once i've observed the same problem. But... it had neither relation with VDub (running AVS-scripts via players gave me the same result) nor the plugin itself which addition caused this crash (removing any other *.dll from the Plugins folder restored the AVS-functionality).

Actually, i have no ideas what was the exact reason (probably, AviSynth automatically loads all the plugins from the AviSynth\Plugins-folder and it causes a lack of memory). Anyway, i've created another folder and moved therein all dll's which are usually not in use in my scripts... each time i use new dll, i move it back. so, if somebody solved this problem in another way, let us know.

--------------------
Optimists believe that they live in the best of existing worlds. Pessimists are afraid of that's right...
 
     Top
alextaylor
Posted: May 27 2004, 07:08 PM


Unregistered









Ok, the plugin I'd installed was Kevin Atkinson's Conditional Temporal Median Filter v0.93. I'm using it with AviSynth 2.5; no other plugins are currently installed. Both the generic and the SSE-optimised versions have the same effect: VirtualDub vanishes.

Can anyone reproduce this? I've tried on two computers (both Athlon XPs) with the same results.

 
  Top
phaeron
Posted: May 28 2004, 05:19 AM


Virtualdub Developer


Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02



Dunno about the median filter, but the problem with having too many plugins installed is caused by an issue in Windows 95/98/ME/NT4 called the "TLS slot limit." Basically, every EXE and DLL in a process that has a copy of the C runtime library consumes one of these slots, for which there are 64 on Windows 95/NT4, 96 on Windows 98/ME. When you run out of TLS slots, no more DLLs with static CRTs can load in that process. Windows 2000/XP support more than 2K TLS slots per process and basically don't have this problem.

VirtualDub 1.5+ gets around this problem by immediately unloading plugins and only keeping them loaded as required. I don't believe Avisynth does this, but if you can convince plugin authors to recompile their plugins against the DLL version of the C runtime (code generation: multithreaded DLL) then you can avoid this problem, as the shared CRT only takes a single TLS slot. Unfortunately, this is only practical for VC6, as VS.NET DLLs reference MSVCR70.DLL or MSVCR71.DLL, which do not ship with the OS.
 
    Top
i4004
Posted: May 28 2004, 06:20 AM


Advanced Member


Group: Members
Posts: 2432
Member No.: 4935
Joined: 24-June 03



QUOTE (alextaylor @ May 27 2004, 09:08 PM)
Ok, the plugin I'd installed was Kevin Atkinson's Conditional Temporal Median Filter v0.93. I'm using it with AviSynth 2.5; no other plugins are currently installed. Both the generic and the SSE-optimised versions have the same effect: VirtualDub vanishes.

Can anyone reproduce this? I've tried on two computers (both Athlon XPs) with the same results.

depending on the avs version,ctmedian needs "avisynth_c.dll" too
(recent versions of avs deon't require it as they pack this dll by default...for example 2.54 shouldn't need it...2.52 needs it...)

if you didn't installed this it means you're not reading docs...
(isse compile should work on any recent cpu...
http://www.tommesani.com/MMXLatency.html )

i think despot is a better filter;
http://bag.hotmail.ru/despot/despot.dhtml

this is tweaked ctmedian....

(no such bugs in vdub or avs;only thing that can mess things up wold be the filter itself...or missing dll that filter uses)

i used both despot and ctmedian without problems (on cel600 cpu)

--------------------
my signature:
user posted image
 
     Top
alextaylor
Posted: May 28 2004, 08:27 AM


Unregistered









I had the avisynth_c.dll installed. Without it, there's no crash but the filter pops up a dialog telling me that the dll couldn't be loaded. Which is interesting, since I am running 2.54.
 
  Top
i4004
Posted: May 28 2004, 10:11 AM


Advanced Member


Group: Members
Posts: 2432
Member No.: 4935
Joined: 24-June 03



hm..i think avery should buy athlon xp and reproduce it! ( smile.gif )

however,it beats me why the thread on avs(plugin) loading issue is in bugs section of vdub....

this is not a bug of avs or vdub....

it can be asked(in avs forum section);
"subject:this plugin is crashing this system,any help?"

....you never actually post a script itself....perhaps you only got wrong syntax....

this filter is yv12 only,did that?(although for that i'm sure it'll popup error message... smile.gif )

tried despot?i *told* you it's better than ctmedian....
i still mean it....

ps.mods,please move this thread to a proper forum!
this one
http://virtualdub.everwicked.com/index.php?act=SF&f=16

--------------------
my signature:
user posted image
 
     Top
stephanV
Posted: May 28 2004, 11:42 AM


Spam killer ;)


Group: Moderators
Posts: 4348
Member No.: 8917
Joined: 18-February 04



QUOTE (i4004 @ May 28 2004, 12:11 PM)
hm..i think avery should buy athlon xp and reproduce it! ( smile.gif )


maybe alex can lend him one... why does he need 2 anyway tongue.gif
QUOTE

ps.mods,please move this thread to a proper forum!

at your service wink.gif (renamed it a bit as well)


--------------------
useful links:
VirtualDub, Input plugins and filters, AviSynth, AVI-Mux GUI, AC3ACM by fcchandler, VirtualDub FAQ
 
    Top
i4004
Posted: May 28 2004, 01:51 PM


Advanced Member


Group: Members
Posts: 2432
Member No.: 4935
Joined: 24-June 03



QUOTE
why does he need 2 anyway


a betrayal!
mad.gif
smile.gif

we need to give intel some more $$$ so it can go even faster!!!

QUOTE
renamed it a bit as well

see my list of plugins (win2k);
CODE
#--------------------
#plugin loader

loadplugin ("decomb.dll")
#loadplugin ("mam.dll")
loadplugin("RemoveDirt.dll")
loadplugin ("peachsmoother.dll")
#loadplugin ("mpeg2dec.dll")
#loadplugin ("smoothhiq.dll")
#loadplugin("GuavaComb.dll")
#loadplugin("warpsharp.dll")
loadplugin("stmedianfilter.dll")
loadplugin("MPEG2DEC.dll")
#loadplugin ("GaussianNoise.dll")
#loadplugin("UniformNoise.dll")
#loadplugin("undot.dll")
loadplugin("declick.dll")
loadplugin("dgbob.dll")
loadplugin("kerneldeint140.dll")
loadplugin("area.dll")
loadplugin("bordercontrol.dll")
loadplugin("D:\Video\AVISYNTH252 scripts+filters_\loadexplugin-dll\LoadPluginEx2.dll")
loadplugin("D:\Video\warpsharp.dll")
loadplugin("D:\Video\cnr2.dll")
loadplugin("Msmooth.dll")
LoadPlugin("avisynth_c.dll")
LoadCPlugin("CondTemporalMedian-isse.dll")


and it was longer..i shortened it last month or so...

so subject should go
""subject:this plugin is crashing this system,any help?"

ie
"ctmedian.dll crashing vdub(or avs?)"

[edit;WOW that was FAST!]

regarding that,what happens if you open that script in mediaplayer?
(so we know who crashed first,vdub or avs...)

--------------------
my signature:
user posted image
 
     Top
alextaylor
Posted: May 28 2004, 04:10 PM


Unregistered









QUOTE (i4004 @ May 28 2004, 11:11 AM)
....you never actually post a script itself....perhaps you only got wrong syntax....

Ok, as I mentioned at the start, my script did not reference the plugin or any of its functions ;-)
 
  Top
alextaylor
Posted: May 28 2004, 04:20 PM


Unregistered









I have three computers: the main system where I do most of my work, my laptop so I can work while I'm away, and a third box which runs Amithlon. All XPs :-) When I get back to the office next week I'll test this on the P4 I use there, just in case it's an XP thing.


Anyway, I've tried the script with MediaPlayerClassic and the same thing happens. In the interests of eliminating possible causes, I also reduced the script to a single "AVISource()" instruction. Obviously it's now not a VDub bug per se, but I'm still puzzled as to why the problem causes the application to just vanish! I know apps running under Win2K are prone to that (*coughcough*Premiere*coughcough*), but this is the first time I've seen it under WinXP.
 
  Top
i4004
Posted: May 28 2004, 09:44 PM


Advanced Member


Group: Members
Posts: 2432
Member No.: 4935
Joined: 24-June 03



QUOTE
I know apps running under Win2K are prone to that

they are?

--------------------
my signature:
user posted image
 
     Top
Bogalvator
Posted: May 29 2004, 12:33 AM


Unregistered









Try removing the ctmedian plugin from the plugins folder.

AviSynth may be trying to autoload the dll but as you can see from i40004's script you need to use LoadCPlugin to load up this filter, so the autoloading may cause the crash.
 
  Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
23 replies since May 27 2004, 09:42 AM Track this topic | Email this topic | Print this topic
Pages: (2) [1] 2 
<< Back to Avisynth Filtering, Processing and Scripts Discussion