Go Back   StepMania Forums > Help and Support > Crash questions

Reply
 
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Old 11-06-2009, 06:53 PM   #1
Jeremified
Member
 
Jeremified's Avatar
 
Join Date: Feb 2008
Location: Arizona, USA
Posts: 8
Jeremified is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Rate this thread:
  • Currently 5.00/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
[1]
Default Lots of underruns in Ubuntu Karmic

Stepmania has a ton of underruns on Karmic; is there anything I can do to stop this from happening? I've tried using pasuspender and aoss to start StepMania, but these have no effect, so I'm guessing it's an issue with Alsa or SM itself.

Here's what I think is the significant part of the log.txt file:
Code:
00:00.197: Initializing driver: ALSA
00:00.212: ALSA: Advanced Linux Sound Architecture Driver Version 1.0.20.
00:00.212: ALSA Driver: 0: HDA Intel [Intel], device 0: STAC92xx Analog [STAC92xx Analog], 1/1 subdevices avail
00:00.699: ALSA error: pcm_hw.c:1325 snd_pcm_hw_open: open /dev/snd/pcmC0D0p failed (Device or resource busy)
00:00.699: Could only create 1 buffers; need at least 8 (failed with dsnd_pcm_open(hw:0): Device or resource busy).  Hardware ALSA driver can't be used.
00:00.699: Couldn't load driver ALSA: Not enough substreams for hardware mixing, using software mixing
00:00.699: Initializing driver: ALSA-sw
00:00.700: OS: Linux ver 020631
00:00.826: ALSA: Software mixing at 44100hz
00:00.954: Starting thread: Decode thread
00:00.954: Starting thread: RageSound_ALSA9_Software
00:00.955: Sound driver: ALSA-sw
00:00.955: Starting thread: MusicThread
After it begins to load songs, I get many of these:
Code:
00:01.018: underrun (128 frames)
Jeremified is offline   Reply With Quote
Old 11-09-2009, 02:59 PM   #2
DaVince
Member
 
DaVince's Avatar
 
Join Date: Oct 2008
Location: Amsterdam, Netherlands
Posts: 295
DaVince is a 3 bar user
Reputation: 21

Send a message via AIM to DaVince Send a message via MSN to DaVince
Post rating: Votes: 0 Score: 0rate    
Default

Do underruns cause major crackling and stuttering in audio? Because that's what happens for me...

I'll be compiling the latest SVN with that PulseAudio patch to see if it makes a difference.


Note to the devs: StepMania seems to pick up 44100 hz for my sound card, but 48000 Hz would definitely stop all crackling (I know because a different game, EDuke32, had the same effect). Can I force this somewhere, or could it maybe autodetect the best rate, or could I set it up in the program itself? (I've missed options like this in the configuration menu anyway, SM has surprisingly little audio settings options for a music program...)
__________________
My Stepfiles (1 new in August 2009. Latest stepfile)
DaVince is offline   Reply With Quote
Old 11-09-2009, 03:41 PM   #3
shakesoda
I code things sometimes
 
shakesoda's Avatar
 
Join Date: Jun 2007
Location: Seattle, WA
Posts: 5,916
shakesoda is an 8 bar usershakesoda is an 8 bar user
Reputation: 149

Send a message via AIM to shakesoda Send a message via MSN to shakesoda Send a message via Skype™ to shakesoda
Post rating: Votes: 0 Score: 0rate    
Default

Quote:
Originally Posted by DaVince View Post
Do underruns cause major crackling and stuttering in audio? Because that's what happens for me...

I'll be compiling the latest SVN with that PulseAudio patch to see if it makes a difference.
If you get the latest SVN you don't need to patch it. I added PulseAudio last night.

Quote:
Note to the devs: StepMania seems to pick up 44100 hz for my sound card, but 48000 Hz would definitely stop all crackling (I know because a different game, EDuke32, had the same effect). Can I force this somewhere, or could it maybe autodetect the best rate, or could I set it up in the program itself? (I've missed options like this in the configuration menu anyway, SM has surprisingly little audio settings options for a music program...)
SoundPreferredSampleRate=0 -> SoundPreferredSampleRate=48000
__________________
"Most problems are side effects of solutions to other problems." -- Eskil Steenberg
shakesoda is offline   Reply With Quote
Old 11-09-2009, 04:07 PM   #4
DaVince
Member
 
DaVince's Avatar
 
Join Date: Oct 2008
Location: Amsterdam, Netherlands
Posts: 295
DaVince is a 3 bar user
Reputation: 21

Send a message via AIM to DaVince Send a message via MSN to DaVince
Post rating: Votes: 0 Score: 0rate    
Default

Thanks. :) Should be an option inside the program, I think!
__________________
My Stepfiles (1 new in August 2009. Latest stepfile)
DaVince is offline   Reply With Quote
Old 11-14-2009, 08:24 PM   #5
Jeremified
Member
 
Jeremified's Avatar
 
Join Date: Feb 2008
Location: Arizona, USA
Posts: 8
Jeremified is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default

Quote:
Originally Posted by shakesoda View Post
If you get the latest SVN you don't need to patch it. I added PulseAudio last night.
How do I get the latest SVN? I tried compiling it myself yesterday, but it seems to have built it for Windows instead of Linux. Did I do something wrong?
Jeremified is offline   Reply With Quote
Old 11-15-2009, 05:02 AM   #6
Jeremified
Member
 
Jeremified's Avatar
 
Join Date: Feb 2008
Location: Arizona, USA
Posts: 8
Jeremified is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default

Okay, I got it to compile correctly... but now it occasionally causes the entire screen to glitch up a LOT. It seems like the monitor becomes horizontally out-of-sync (and there's blocks of garbage everywhere), and what's weirder is that by moving the mouse I can control how fast the screen rotates. o_O Where would I look to find the exact error message produced here?

Also, killing StepMania and gdm didn't help; I had to force-reboot.

Edit:
Code:
02:05.156: //////////////////////////////////////////////////////

02:05.156: Exception: Fatal I/O error communicating with X server.

02:05.156: //////////////////////////////////////////////////////
This must be significant.

Last edited by Jeremified; 11-15-2009 at 05:45 AM..
Jeremified is offline   Reply With Quote
Old 11-15-2009, 08:35 PM   #7
howl
Member
 
Join Date: Nov 2009
Posts: 62
howl is a 2 bar user
Reputation: 12

Post rating: Votes: 0 Score: 0rate    
Default

Exception: Fatal I/O error communicating with X server. only means that the StepMania window was close before StepMania itself tried to close the window. You can reproduce it playing in window mode and closing the window with the X icon.
howl is offline   Reply With Quote
Old 11-16-2009, 01:17 AM   #8
Jeremified
Member
 
Jeremified's Avatar
 
Join Date: Feb 2008
Location: Arizona, USA
Posts: 8
Jeremified is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default

The same exact thing happens when running StepMania 3.9 under Wine (as opposed to 4.0a under Ubuntu), so now I'm almost certain it's a problem with the way Xorg handles fullscreen applications now. (Edit: other full-screen apps don't have this problem, so it's SM after all.)

Last edited by Jeremified; 11-16-2009 at 01:29 AM..
Jeremified is offline   Reply With Quote
Old 11-16-2009, 02:15 AM   #9
howl
Member
 
Join Date: Nov 2009
Posts: 62
howl is a 2 bar user
Reputation: 12

Post rating: Votes: 0 Score: 0rate    
Default

I have been looking at the X11 part of the code os StepMania and it uses an old method to get FullScreen but anyway still a valid method nowadays. What Window Manager are you using?
howl is offline   Reply With Quote
Old 11-16-2009, 07:00 PM   #10
DaVince
Member
 
DaVince's Avatar
 
Join Date: Oct 2008
Location: Amsterdam, Netherlands
Posts: 295
DaVince is a 3 bar user
Reputation: 21

Send a message via AIM to DaVince Send a message via MSN to DaVince
Post rating: Votes: 0 Score: 0rate    
Default

I found that setting SoundWriteAhead=2048 gets rid of all crackling and popping on my PC, this could prevent underruns too. You might want to play around with the value a bit (512 actually made the popping worse for me).
__________________
My Stepfiles (1 new in August 2009. Latest stepfile)
DaVince is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lots of songs that need banners and backgrounds (1/29/07) Foti Simfile/Song Requests 11 11-19-2008 12:13 AM
20080401|StepMania 150 simultaneous players, requires large screen, lots of USB chrisdanford News 82 08-20-2008 05:04 AM
Fixing slow startup with lots of songs? Kral General StepMania 9 06-12-2008 07:58 PM
DesuCab V1.0 TV Test *Warning, Lots of Technobabble* dancedanceowch General StepMania 4 05-15-2008 09:33 PM
lots of things wrong Zenatsu Crash questions 0 10-02-2007 12:23 AM


All times are GMT. The time now is 01:50 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Translate

Thanks to

SourceForge.net Logo

Random Pictures