Help - Search - Members - Calendar
Full Version: Possibly some kind of ram memory problem
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
sylla
Hi, When I start foobar and start to play a song, everything chops* every second, or at least the visualizer and seekbar does. Sometimes I am lucky and it doesn't do this, but if I start to use a lot of memory on other programs it starts again. When it starts to do this, there's no way of getting rid of it without restarting foobar.

When this happens, foobar start to take over from 50 % to 95 % of CPU usage. When I stop playback, hte CPU usage gets down to zero. Nothing comes up in the console...

I am using PanelsUI with this code
CODE

// Global
$puts(TopPanel,70)
$puts(BottomPanel,40)
$puts(LeftPanel,400)
$puts(RatingHeight,125)
$select($add($getpvar(PlaylistSwitcher),2),
$puts(RightPanel,132),$puts(RightPanel,0))

// Background
$drawrect($get(leftpanel),0,%_width%,$get(TopPanel),brushcolor-SYSCOL-15 pencolor-NULL)
$drawrect(0,$sub(%_height%,$get(BottomPanel)),%_width%,$get(BottomPanel),brushcolor-SYSCOL-15 pencolor-NULL)

// PerTrack
$select($add($getpvar(display),1),

//Normala
$panel(Dölj/Visa,Track Display,$sub($get(LeftPanel),10),0,10,$sub(%_height%,$get(Bottompanel)),)
$drawrect(0,0,$sub($get(LeftPanel)-10),$sub(%_height%,$get(RatingHeight),45),brushcolor-255-255-255 pencolor-NULL)
,
//Dölj vänsterpanelen
$panel(Layout,Track Display,0,0,8,$sub(%_height%,$get(BottomPanel)),)
$puts(LeftPanel,8)
$drawrect($get(leftpanel),0,%_width%,$get(TopPanel),brushcolor-SYSCOL-15 pencolor-NULL)
,
//Fullskärm
$puts(Leftpanel,600)
$panel(Dölj2,Track Display,$sub($get(LeftPanel),10),0,10,$sub(%_height%,$get(Bottompanel)),)
//$panel(Dölj2,Track Display,$sub($get(LeftPanel),10),0,10,$sub(%_height%,$get(RatingHeight),45),)
$drawrect(0,0,$sub($get(LeftPanel)-10),$sub(%_height%,$get(RatingHeight),45),brushcolor-250-250-250 pencolor-NULL)

,
//MiniMode
$puts(Leftpanel,300)
$panel(Dölj/Visa,Track Display,$sub($get(LeftPanel),10),0,10,$sub(%_height%,$get(RatingHeight),45),)
$drawrect(0,0,$sub($get(LeftPanel)-10),$sub(%_height%,$get(RatingHeight),45),brushcolor-255-255-255 pencolor-NULL)
)

//Vänsterpanel
$select($add($getpvar(VänsterPanel),4),
$panel(syscolors,Track Display,0,0,$sub($get(LeftPanel),10),$sub(%_height%,$get(RatingHeight),45),)
,
$puts(Styleheight,$div($sub(%_height%,$get(Ratingheight),245),2))
$panel(Genre,Tagger Window,0,0,$sub($get(LeftPanel),10),$sub($get(Styleheight),-$get(Ratingheight),-105),)
$panel(Style,Tagger Window,0,$sub(%_height%,$get(Styleheight),$get(Ratingheight),20),$sub($get(LeftPanel),10),$div($sub(%_height%,$get(Ratingheight),305),2),)
,
$panel(Filter,Library Filter,0,0,$sub($get(LeftPanel),10),$sub(%_height%,$get(RatingHeight),45),)
,
$panel(Art,Track Display,0,0,$sub($get(LeftPanel),10),$sub(%_height%,$get(RatingHeight),45),)
,
$panel(Lyrics,Lyric Show,0,0,$sub($get(LeftPanel),10),$sub(%_height%,$get(RatingHeight),45),)
)

//Playlistview
$select($add($getpvar(Playlistview),1),
$panel(Playlist,Single Column Playlist,$get(LeftPanel),$get(TopPanel),$sub(%_width%,$get(LeftPanel),$get(RightPanel)),$sub(%_height%,$get(TopPanel),$get(BottomPanel)),)
,
$panel(Playlist,Columns Playlist,$get(LeftPanel),$get(TopPanel),$sub(%_width%,$get(LeftPanel),$get(RightPanel)),$sub(%_height%,$get(TopPanel),$get(BottomPanel)),)
)

//Permanenta
$panel(liteknappar,Buttons,$get(LeftPanel),0,200,30,)
$panel(search,Quick Search Toolbar,$get(LeftPanel),$sub($get(Toppanel),30),200,30,)
$panel(playlistinfo,Track Display,$sub($get(LeftPanel),-200),$sub($get(Toppanel),30),$sub(%_width%,200,$get(LeftPanel),$get(RightPanel)),30,)
$panel(bytpvars,Track Display,$sub(%_width%,150),,$sub(%_width%,100,$get(LeftPanel),$get(RightPanel)),30,)
$panel(play,Track Display,$sub($div($get(LeftPanel),2),100),$sub(%_height%,$get(BottomPanel)),200,$get(BottomPanel),)
$panel(stilbyte,Track Display,$sub($get(%_width%),-10),$sub(%_height%,$get(BottomPanel)),100,$get(BottomPanel),)
//$panel(seekbar,Seekbar,,$sub(%_height%,15),$get(LeftPanel),15,)
$panel(Rating,Track Display,0,$sub(%_height%,$get(Ratingheight),5,$get(BottomPanel)),$sub($get(LeftPanel)),50,)
$panel(seekbar,Seekbar,$get(LeftPanel),$sub(%_height%,$get(bottompanel)),$sub(%_width%,$get(LeftPanel),$get(rightpanel)),$get(bottompanel),)



$select($add($getpvar(Spectrum),1),

$panel(vis,Egoh Spectrum analyser,0,$sub(%_height%,$get(Ratingheight),-5),$sub($get(LeftPanel)),$sub($get(ratingheight),$get(bottompanel),5),)
,
$drawrect(0,$sub(%_height%,$get(Ratingheight),-5),$get(LeftPanel),$sub($get(ratingheight),$get(bottompanel),5),brushcolor-220-220-220 pencolor-NULL)
$panel(Menu,Menu,0,$sub(%_height%,$get(Ratingheight),-5),$sub($get(LeftPanel)),30,)
$panel(allehandaknappar,Track Display,0,$sub(%_height%,$get(Ratingheight),-35),$sub($get(LeftPanel)),$sub($get(ratingheight),$get(bottompanel),35),)
)

$panel(Playlist Switcher,Playlist switcher,$sub(%_width%,$get(RightPanel)),$get(TopPanel),$get(RightPanel),$sub(%_height%,$get(TopPanel),$get(bottompanel)),)



And also Windows xp sp2 2ghz 512 ram

I think it has something to do with // PerSecond, but everytime I try to put that in the code, the layout becomes really strange...


*just translated this, don't know if it's the right word... but it freezes and only gets updated every second.
The Judge
What components are you using?
sylla
QUOTE(The Judge @ Jul 13 2007, 00:09) *

What components are you using?


hmm alot, here's some, I highly doubt anything else could cause these problems...

PanelsUI 0.13.6
Quicksearch toolbar 2.8l
iPod manager 0.4.4
Run services 0.3.2
ColumnsUI 0.1.3
foo_uie_vis_egoh 1.1.2
foo_cwb_hooks 1.2.5
lyric show panel 0.3.1. 1b5
foo_audioscrobbler 1.3.5

And also, I had the same layout in columnsUI before, and never had this problem...
Hakubo
I suggest you backup your configuration just in case and try to remove the components one by one, until the problem dissolves. That'll reveal the problematic one.
sylla
QUOTE(Hakubo @ Jul 13 2007, 00:28) *

I suggest you backup your configuration just in case and try to remove the components one by one, until the problem dissolves. That'll reveal the problematic one.



Yeah, maybe I have to do that :/

But the PanelsUI code seems fine then you say? Because I thought it might be that, as I don't have a // PerSecond in it... Maybe the vis and seekbar don't need it? I tried to put it in there but it just messed up everything, guess it was because I use all these $select PVAR everywhere...
Hakubo
QUOTE(sylla @ Jul 13 2007, 03:35) *
But the PanelsUI code seems fine then you say? Because I thought it might be that, as I don't have a // PerSecond in it... Maybe the vis and seekbar don't need it? I tried to put it in there but it just messed up everything, guess it was because I use all these $select PVAR everywhere...
Your code syntax seems fine. I didn't examine it too close, though.
You may want to update Panels UI to 0.13.7 or the latest test version, but my guess is that your problem's probably caused by a combination of components.
I'm using Panels UI without any major problems since much earlier version.
sylla
Okay, so I reinstalled the program for another reason, and only have columns ui 0.1.3 beta 1v7 and Panels_UI 0.13.8 with the same code as above, and the same thing happens.....

Do you have any idea what is wrong?

It's like it's often okay when I start the program, even if I have many other programs running, but if I click every program to focus at the same time, then foobar starts to mess in this way - and doesn't recover until I restart the program!
Hakubo
There are various additional panel used in this code. Did you comment out those strings?
Does the problem persist with basic configuration?
sylla
hmm no, I didn't notice any problem with the basic config that comes with panelsUI..Didn't think about taking away things in the code that I don't use, will try that...

EDIT: I think I found the problem; I use Rocketdock, and every time I hover it foobar starts to behave like that.. Thanks for the help anyway
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.