View topic - Spring and springlobby ramp up my CPU



All times are UTC + 1 hour


Post new topic Reply to topic  [ 19 posts ] 
Author Message
PostPosted: 14 Jun 2010, 12:54 

Joined: 04 Mar 2010, 01:03
I've got an intel core 2 duo T6400 @ 2.0ghz, and 3 gig ram. Running Ubuntu Karmic. Trying to play Balanced Annihilation.

When I open up springlobby, that very instant one of my cores goes to 100%, and then when I open up the game, the spring engine takes up 100% of my other core. In game, I get no more than 10 fps, and when I exit the game and close springlobby, both of those processes stay running and I have to kill them manually.

I don't know whether or not the problems are related, I can live with manually killing the processes. I think I read somewhere that it had something to do with pulseaudio...? I don't have sound in game. I can figure that out later. Mostly I want to know what's up with my processors at 100%. I wouldn't think that running the game is that resource-intensive, and I KNOW it shouldn't require so much power to run just the lobby. So yea, pretty confused.

Someone have any suggestions to help me fix this?
Any help greatly appreciated :mrgreen: Thanks!


Top
 Offline Profile  
 
PostPosted: 14 Jun 2010, 13:23 
Lobby Developer
User avatar

Joined: 14 Aug 2007, 15:15
update to 10.04 (this will fix the pulse/alsa issues that are responsible for 100% cpu in lobby)


Top
 Offline Profile  
 
PostPosted: 14 Jun 2010, 21:11 

Joined: 04 Mar 2010, 01:03
I've been trying to study out what options I have, I see lots of people that use Karmic talking about dumping PulseAudio for Alsa. Other ones too, but mostly Alsa. What is used in 10.04? Did they quit using PulseAudio, or is it just better now?


Top
 Offline Profile  
 
PostPosted: 14 Jun 2010, 21:30 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
newer version of pulseaudio, if i am right.

if you do not want to upgrade yet:
http://springrts.com/wiki/FAQ:trouble#S ... an_i_do.3F


Top
 Offline Profile  
 
PostPosted: 05 Jul 2010, 12:36 

Joined: 05 Jul 2010, 12:33
This is not a Pulse Audio issue, this is a Spring issue and there is no way Im uninstalling something I use everyday with multiple programs to run Spring. You need to fix your code to use Alsa instead or make it work with Pulse. Out of the thousands of programs I use on Linux not one locks up two CPUs on my quadcore just opening up.

And its ridiculous that every single linux user would need to go thru this issue. This should have been fixed at release. Dont even get me started on the compile from source wiki, I dont know one OS that works on. My point is stop blaming issue with the code on other programs.


Top
 Offline Profile  
 
PostPosted: 05 Jul 2010, 12:48 
Server Owner & Developer
User avatar

Joined: 19 May 2006, 18:13
Location: Brno, Czech rep., EU, Terra, Sol, Orion arm, Milky way, Virgo supercluster
Its open source, stop bitching around and go fix it!

Nobody here needs to fix anything for you.


Top
 Offline Profile  
 
PostPosted: 05 Jul 2010, 12:49 

Joined: 05 Jul 2010, 12:33
I am not bitching about it troll. I am bitching about someone blaming the issue on Pulse. This was a coding mistake not a Pulse audio issue. If they said yeah we know about the bug it will be fixed in the future or you can fix it then I wouldnt have an issue. I have an issue when someone blames things they have done on other people.


Top
 Offline Profile  
 
PostPosted: 05 Jul 2010, 12:55 
Server Owner & Developer
User avatar

Joined: 19 May 2006, 18:13
Location: Brno, Czech rep., EU, Terra, Sol, Orion arm, Milky way, Virgo supercluster
And you know it isn't related how exactly?
You found the bug in engine? Ok great, post the patch.


Top
 Offline Profile  
 
PostPosted: 05 Jul 2010, 12:57 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
look trouble. lets assume you are 100% right.
lets assume i am an engine dev, and i read your post.
now.. how would i react:
A: "Ouh, this very client of us is right, we should do what he says."
B: "Faggot has no manners -> put on ignore list"

btw, do not bother answering, it is quite pointless


Top
 Offline Profile  
 
PostPosted: 05 Jul 2010, 13:16 

Joined: 17 Sep 2008, 03:36
Location: your imagination
Troublesome_God, if you come in here with attitude, you will only find attitude in return. If you want some genuine help with your problems, practice some patience.

Is your Pulseaudio the latest version?


Top
 Offline Profile  
 
PostPosted: 05 Jul 2010, 13:35 
Spring Developer

Joined: 01 Jun 2005, 10:36
Location: The Netherlands
This weekend I heard from a former Fedora games packager that it's quite probably actually an OpenAL issue or an OpenAL <-> PulseAudio interaction issue, and not PulseAudio (only). Maybe someone should try sometime to compile Spring against lots of different OpenAL versions to see if that helps. It sounds like Troublesome_God is the perfect candidate for this, because this way he could determine which code really is to blame and correct the wiki ;-)


Top
 Offline Profile  
 
PostPosted: 05 Jul 2010, 13:49 
Blood & Steel Developer
User avatar

Joined: 25 Aug 2004, 12:31
Location: Has not played *a in years.
Can we refrain from "faggot" comments?


Top
 Offline Profile  
 
PostPosted: 05 Jul 2010, 14:50 

Joined: 04 Mar 2010, 01:03
Tobi wrote:
This weekend I heard from a former Fedora games packager that it's quite probably actually an OpenAL issue or an OpenAL <-> PulseAudio interaction issue, and not PulseAudio (only). Maybe someone should try sometime to compile Spring against lots of different OpenAL versions to see if that helps. It sounds like Troublesome_God is the perfect candidate for this, because this way he could determine which code really is to blame and correct the wiki ;-)


Good call


Top
 Offline Profile  
 
PostPosted: 07 Jul 2010, 03:05 
AI Coder

Joined: 16 Nov 2009, 18:26
I do not have have pulse audio installed and I see this issue. I'm going direct to ALSA for all my audio; excluding whatever additional layers the game and components impose. I also see this behavior but only when the client has been idle for an extended period. I have not been able to reliably reproduce. Furthermore, I have audio disabled in the lobby client. I compiled the lobby (springlobby) my self. I assumed this was a side effect of the bittorrent client libs.

Whatever it is, pulseaudio, at least in my case, has absolutely ZERO to do with this issue. Accordingly, please stop blaming pulseaudio for every bump on the road.


Top
 Offline Profile  
 
PostPosted: 07 Jul 2010, 17:11 
Lobby Developer
User avatar

Joined: 25 Sep 2006, 12:56
your issue is different, what we are talking about is 100% of a single core usage from lobby/spring start, not blocking functionality;
and the problem "magically" disappears when upgrading PA, compiling it manually or uninstalling it, or disabling sound ( latest versions of ubuntu such as 10.4 do not have the bug anymore ), so yeah, it's 100% PA's fault for our problem, yours is simply another thing.

can you get me a stacktrace of your hang? it looks like a deadlock
Quote:
gdb /path/to/springlobby
run
....wait it locks....
thread apply all bt


Top
 Offline Profile  
 
PostPosted: 17 Jul 2010, 23:59 

Joined: 04 Mar 2010, 01:03
BrainDamage wrote:
can you get me a stacktrace of your hang? it looks like a deadlock
Quote:
gdb /path/to/springlobby
run
....wait it locks....
thread apply all bt


Working on it. I don't understand the gdb thing tho... I run gdb, run the game, my CPUs go to 100%, but at that point I can't enter in the part that says 'thread apply all bt' because I don't have a command prompt. Like as in if I were just in the regular old boring terminal, running some program and until I exit that program I can't enter in any more commands and whatnot. How do I do that?

Also, sometimes it works sometimes it doesn't. Twice now I've tried to get you some output, but my processors remained where they should've with my framerate where it should be instead of dropped waaaay down like when it eats up my processors.

Anyway, I'm on it. I just need help on the gdb thing. Thanks.


Top
 Offline Profile  
 
PostPosted: 18 Jul 2010, 00:30 
Lobby Developer
User avatar

Joined: 25 Sep 2006, 12:56
when it locks, send ctrl c in the console, this will give a SIGTERM which will give you back access to gdb


Top
 Offline Profile  
 
PostPosted: 18 Jul 2010, 00:40 

Joined: 21 Oct 2008, 01:54
Licho wrote:
Its open source, stop bitching around and go fix it!

Nobody here needs to fix anything for you.

Do you seriously say that every time a user comes here and haves a problem with the software? Other users response are 100 times better than your lousy "fuck you!" response.


Top
 Offline Profile  
 
PostPosted: 18 Jul 2010, 06:32 
Server Owner & Developer
User avatar

Joined: 19 May 2006, 18:13
Location: Brno, Czech rep., EU, Terra, Sol, Orion arm, Milky way, Virgo supercluster
Super Mario wrote:
Licho wrote:
Its open source, stop bitching around and go fix it!

Nobody here needs to fix anything for you.

Do you seriously say that every time a user comes here and haves a problem with the software? Other users response are 100 times better than your lousy "fuck you!" response.


No, I do that every time arrogant person comes here and demands something or blames others people. People should realize it's not a help support line for paid product. Nobody here is obliged to fix other people's problems by any moral standards. Not to mention being yelled at or blamed.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.