- AVS Troubleshooting
- AVS fails to work [Trying to fix with v2.91 TEST #1]
Archive: AVS fails to work [Trying to fix with v2.91 TEST #1]
earwigsrazor
17th April 2011 12:45 UTC
AVS fails to work [Trying to fix with v2.91 TEST #1]
Hi all
Am trying to use AVS and it fails to work at all. Using windows 7 and latest version of winamp.
All other visualisations work (milkdrop,geiss etc) yet when I try to use AVS I get a screen that is either very light cyan or a faun colour and no visualisations at all.
Anyone know if there is a fix for this or is this because of the operating system I am using?
thanks
Warrior of the Light
17th April 2011 20:09 UTC
There have been a few reported issues already concerning compatibility with newer Winamp versions and newer Windows versions.
AVS 2.81d was made in late 2006 and was but a small upgrade of 2.81b, which was made in late 2003/early 2004, about when Winamp 5 was introduced. The sourcecode is very fragile and although it is open sourced today, nobody has been able (yet) to make serious improvement. In a way, it's surprising that there haven't been any issues earlier.
One of the suggestions that have been posted, is to disable Aero when you're running Winamp.
Right-click winamp.exe and go to properties. Go to the compatibility tab and check 'Disable desktop composition' or something alike.
You could read some relevant threads on these forums, and try to mess around yourself. If you get it to work, and also if you don't, please keep us informed of your progress. Others who are reading this benefit from it as well.
earwigsrazor
17th April 2011 20:20 UTC
thanks will check this and report back asap.
earwigsrazor
17th April 2011 20:38 UTC
ok have tried this and have also tried using windows xp compatability mode and it starts to crash winamp :(
Yathosho
21st April 2011 13:19 UTC
winamp 5.6 works best with avs 2.9, but avs 2.9 isn't working as good as 2.81d (and previous incarnations). so you need to downgrade winamp to version 5.5 and use it with avs 2.81 for full compatibility. it stinks, but that's the way you have to go.
Menschenfleisch
15th May 2011 20:19 UTC
I have this problem too, but with Windows XP.
I actually liked in the past the Unconed - Speeder3k.
This one actually is nice to watch, because its not just some random eye stuff, it is something like a track you drive. This is much better.
At milkdrop I didnt find such a visualization so far.
But unfortunately avs doesnt run for me. Same problem here.
Cordwainer
21st May 2011 02:06 UTC
You're a genius. I recently upgraded to Windows 7 from XP and then upgraded to the latest version of Winamp (561) and AVS didn't work. I tried various suggestions on other threads (such as lowering the resolution) but they didn't work. Finally I found this thread, uninstalled 561, and then installed 558. Now AVS works!
Winamp shouldn't release an upgrade if it doesn't work with AVS IMO. Or they should unbundle AVS. It's such an important part of Winamp for me that if AVS doesn't work, I don't want to upgrade.
DrO
23rd May 2011 08:49 UTC
AVS was reverted to the version everyone kept saying was the one that works which now seems to have been a load of fud from the complainers and hence causes the few Vista / Win7 AVS users immediare crashes again *grr*
AVS should just be split from the distro and provided separately - and i was shot down for that suggestion even though it's the only way when there's no developement resources to work on a dead plug-in which no one can get working compile (especially since most of the issue is coming from the ape's used by the presets which no one has code for).
-daz
Yathosho
23rd May 2011 13:30 UTC
i hate to admit it, but i agree that splitting avs from winamp would be the best solution (this will be the end of avs, but still it makes more sense than shipping a broken product!) so i was wondering under what terms the dll can be distributed. (i'm not sure if the same conditions as for the source apply)
DrO
21st December 2012 22:55 UTC
so since it's all screwed up with all of the versions floating about, the following is going to happen and then i need input on what will happen after that...
rather than just shipping 2.81d and it not working on Vista and higher, we're going to include 2.82 in the installer and install 2.82 on Vista and higher (as it's DEP friendlier and less prone to crashing - ignoring the preset display issues, etc) and install 2.81d on XP and before (where that version seems to behave better).
that is to alleviate the posts about it just not working (something is better than nothing).
---------------------------------------------------------------------------
and so for the future, i now have a local build of chavs 2.9 which i've been flipping through presets to get it to crash and then trying to fix those crashes there and then (i'm doing this all on Win7 x64 so the fact it runs at all is welcome).
after re-reading everything, is it even worth me trying to sort out a 2.91 based on chavs (which sadly is based on the 2.81b source code) or just put this to bed and forget about it ? i'm willing to put in the time (if only to get it to a point were we don't get crash reports about it continually) but is this something that will help (and yes i know people don't care much now) ?
from what i can see, the main things that aren't right with the chavs base are:
still randomly crashes (have seen it and fixed 2 issues so far)issues with rand(..) as per http://forums.winamp.com/showpost.ph...27&postcount=6- people don't like the ui / want it changed to one of the typically used mods (if so which one ?)
version resource is messed up- not doing presets correctly compared to 2.8x ? (not sure what can be done about that)
main example is "convolution.ape" which is incompatible with Vista an up - blocking loading of it for the time being so it gives a UI indicator in the preset editor instead of bombing out, etc - fullscreen mode won't hold without using compatibility mode
- overlay mode just shows a solid colour instead of the preset
- anything else??
[edit]as issues are deemed 'resolved' i'll strike them through, as well as adding anything new (assuming anyone cares and reports anything).
-daz
QOAL
22nd December 2012 21:28 UTC
In case anyone is looking for the chavs source:
http://1014.org/shiz/code/chavs.zip -- git clone WDL from http://cockos.com/wdl too, it has the latest EEL (which chavs needs).
From:
https://twitter.com/JustinFrankel/st...02381790334976The convolution filter doesn't work in chavs (but I guess that falls under "not doing presets correctly"?)
A unified working version of AVS that works nicely with modern OSes and Winamp versions can't be a bad thing.
I'm a fan of the improvements chavs brings, and as it seems that Justin hasn't worked on chavs since his initial chavs post, fixing the bugs in it may get a couple more people to try out the improved syntax.
But whatever happens, presets that use the GVM APE will still cause crashes. (I assume)
DrO
23rd December 2012 17:30 UTC
i'd really need examples or something specific to know what to look at / attempt to fix as i've no idea what the expected behaviour of the convolution filter or what uses the gvm ape to target testing / fixes for it.
-daz
Warrior of the Light
23rd December 2012 23:02 UTC
First off, thank you very much for still wanting to fix this beast. I mean it.
The convolution filter is like a custom blur filter. It works per pixel and can copy that pixel to (or remove from) the surrounding pixels.
The GVM is a variable manager. I added example presets for both effects. The GVM has a help window if you hit the [?] in the bottom right of the window. I remember that Jheriko lost the sourcecode for it, but I'm confident he'll help you if you have specific questions.
DrO
23rd December 2012 23:20 UTC
well from what i've seen (haven't tried with the examples) is GVM only crashed when there was a preset transition due to an issue in HeapFree(..) (so some form of memory freeing issue which could be just down to AVS built with a different compiler and abi differences).
i've still to try it out but some extra exception handling in AVS during that phase should help resolve the crash issue.
my main thing from friday night and a few hours today) has been looking into not being able to use AVS in full-screen or overlay modes and if anything, it's looking like trying to move over to use Direct3D instead of DirectDraw to be able to do what's needed (seeing as the DirectDraw interface has been legacy since Vista).
alas i need to read up on that as it's not a simple change from what i've taken in so far (and i could probably do something with re-using Milkdrop's code but that's one heck of a beast to combine into AVS when i don't think most of it's functionality is needed (i.e. just need enough to get the generated frames onto the screen - i believe a Direct3D Surface may be what's needed since we've using DirectDraw Surfaces already).
-daz
DrO
23rd December 2012 23:44 UTC
ok, just tried the GVM example from above and with 2.82 (2.81d or 2.83 won't run for me on my dev machine) and i get a reasonably consistent crash when transitioning away from the preset.
using my build with some extra exception handling on where the crash appears to be triggered, the GVM error still happens but AVS keeps going (i just get the odd 'beep' due to how i'm testing for it when forcing it to go through all of the presets quickly).
and just had a look at the other ones and #3 shows the issue the best i think (moving blob which should have blurred edges - when comparing 2.82 vs 2.81d on XP) .
[edit]
so the convolution filter comes from convolution.ape i assume?
-daz
Warrior of the Light
24th December 2012 01:01 UTC
Originally posted by DrO
[edit]
so the convolution filter comes from convolution.ape i assume?
Personally, I've never been too confident on that issue. There's one built-in and a separate .ape which originates (I think) from before when it was integrated with AVS.
Same goes for the video delay ape and some other ape's. (I'm on my laptop and it's 2 am now so I can't check which ones exactly). I get duplicates in my list and adding 'the wrong one' crashes AVS.
I personally try to just not install the extra ones, but maybe someone else has a better idea. I'm just a user, and really not a programmer who'd know about how things work internally.
DrO
24th December 2012 01:33 UTC
i've had a bit of a look and it's a crash in that ape though the crash location doesn't give me anything useful to work against - it doesn't show as an actual crash unless you 'Disable SEH for effects' on the debug window. though when i try on XP it works ok, which makes me wonder if it's something with the memory handling which is causing the issue.
so will have a bit more of a look tonight as i wouldn't be surprised if it's something simple causing it (like most of the AVS crash issues, heh). otherwise won't be tinkering with it until late next week (or this week as it now seems to be based on the time).
-daz
DrO
27th December 2012 10:35 UTC
i spent more time than i should have trying to figure out the convolver crash and it just seems like that ape really doesn't like newer versions of Windows as i've made sure that the sent data to it is the same between the different versions (only thing might be due to how DirectDraw surfaces are handled between XP and Win7 but i cannot tell anything from the limited crash details i get).
so other than trying to find source code (doubtful) or decompiling it to work out what's going on (painful), i'm not sure what can be done other than looking for a replacement / writing one myself (that'll be fun, not).
-daz
DrO
29th December 2012 01:25 UTC
i think i'm just going to have to put in a block on loading convolution.ape on non-XP installs as i just cannot work out what on earth it's doing which makes it fail on Windows 7 and not XP (unlike http://forums.shoutcast.com/showpost...60&postcount=8 implied which is not the case from my testing with my build on the different OSes).
not an ideal solution but it at least means it's possible to indicate the issue visually without causing things to crash, etc until a solution can be created (as this has to be an issue with that ape specifically on newer OSes as i'd have to expect it not to work on XP if it was specifically due to the AVS version).
and i've updated my post higher up with the status of the 'issues' i'd listed so that some are now classed as done. really the killer seems to be the whole fullscreen/overlay modes being borked now as i've not had a crash in a while (ignoring when i'm allowing convolution.ape to crash). might even consider uploading a test version in the coming week or two...
-daz
Warrior of the Light
29th December 2012 18:57 UTC
I posted a journal on my dA page hoping for more replies.
I think that most could live without a working overlay mode.
If only things were better commented.
QOAL
29th December 2012 21:04 UTC
Thank you very much for spending your time on this DrO. (I hope it hasn't been too much of a chore to get to this point)
News of the crash fixes alone is very welcome.
I'm surprised Yathosho (or even people from #avs) haven't voiced their opinion on this yet though.
I know it's a long shot (considering the source code for many apes has been lost), but is it worth trying to contact the convolution.ape author? This is their forum account.
DrO
3rd January 2013 15:33 UTC
v2.91 TEST #1To install,
download the attachment and extract
vis_avs.dll into your
Winamp\Plugins folder (if you prefer you can rename it to something else before installing or rename the existing vis_avs.dll).
Note: This depends on MSVCR90.DLL so needs to be used with a recent version of Winamp (i can hear the complaints about that already) but this is how all of the official plug-ins are done.This is my test build (obviously the fullscreen stuff is still borked like all of the other versions on Vista and up) and is the CHAVS 2.9 code combined with the 2.81d changes and then my 'fixes' (so is back to 2.81b as a base with updates and anything i changed in 2.82/2.83 is not part of this).
This should fix the random GVM related crash (we're catching the error instead of failing)
Other crash fixes as i've come across in my tinkerings
Version resource is correct for this version
rand() seems to work as expected now (could do with confirmation)
Indicates the current preset in the right-click menu
If there are issues, will need to know the specific preset (attached to the thread if needed) and any useful information. Otherwise it's basically fullscreen mode that's the main breakage but that's more down to using DirectDraw instead of Direct3D for the overlays etc.
-daz
QOAL
3rd January 2013 18:11 UTC
I've found a crash with Synth-C's Lift Off pack. Inverse Eruption is the first preset in the pack that seems to trigger it when navigating away.
I suppose it's worth asking about the Dynamic Movement too.
I came across many presets that render incorrectly which seems to be down the DM.
An example could be the intro preset for Unconed's Final Whack.
Edit: Thanks again for your work
DrO
3rd January 2013 19:10 UTC
can reproduce a crash with the 'Inverse Eruption' preset though it's not liking it when i run it under the debugger so will need to find out why it's struggling to deal with the exception.
just tried the intro preset from the second one and that's a hell of a difference in output between this one and 2.81d (yet all i've ever seen is complaints but never anything to show what is going wrong). have attached a screenshot of 2.81d (left) and my 2.91 (right).
will investigate further on both as time allows in the coming days.
-daz