Page 1 of 1

Crash on startup: SDL Audio?

Posted: Sat Jun 28, 2008 4:32 am
by coriolis
Just followed the build instructions on the stick topic, and firing it up. I get:

Code: Select all

┌─(nash@harmoni:pts/7)──────────(~/work/upstream/oolite/trunk)─┐
└─(139:14:25:%)── oolite.app/oolite 

.:3: validity error : Validation failed: no DTD found !
<plist version="1.0">
                    ^
2008-06-28 14:26:37.554 oolite[21177] [log.header]: Opening log for Oolite version 1.72 (x86-64 test release) under Linux at 2008-06-28 14:26:37 +1000.
2 processors detected.
Note that the contents of the log file can be adjusted by editing logcontrol.plist.

2008-06-28 14:26:37.556 oolite[21177] [unclassified.MyOpenGLView]: initialising SDL
ALSA lib pcm_dmix.c:874:(snd_pcm_dmix_open) unable to open slave
2008-06-28 14:26:37.594 oolite[21177] [unclassified.MyOpenGLView]: Mix_OpenAudio: No available audio device

zsh: segmentation fault (core dumped)  oolite.app/oolite
The backtrace is:

Code: Select all

(gdb) bt
#0  0x00007ff7df66b25d in objc_msg_lookup () from /usr/lib/libobjc.so.2
#1  0x000000000042d17b in -[GameController applicationDidFinishLaunching:] (
    self=0xc85160, _cmd=<value optimized out>, 
    notification=<value optimized out>) at src/Core/GameController.m:198
#2  0x000000000044014b in main (argc=2, argv=0x7fffe8d44048)
    at src/SDL/main.m:88
Machine is a 64 bit ubuntu box (recent release).

Suggestions on what could be the problem?
Sound works fine otherwise on the system.

Re: Crash on startup: SDL Audio?

Posted: Tue Aug 12, 2008 1:40 am
by hircus
coriolis wrote:
Just followed the build instructions on the stick topic, and firing it up. I get:

Code: Select all

2008-06-28 14:26:37.556 oolite[21177] [unclassified.MyOpenGLView]: initialising SDL
ALSA lib pcm_dmix.c:874:(snd_pcm_dmix_open) unable to open slave
2008-06-28 14:26:37.594 oolite[21177] [unclassified.MyOpenGLView]: Mix_OpenAudio: No available audio device
[/quote]

Is this Ubuntu 8.04? It's the first Ubuntu release with Pulseaudio, and depending on what version of SDL you're using, it might not support Pulseaudio yet.

Try 'pasuspender oolite' to see if it helps.

Re: Crash on startup: SDL Audio?

Posted: Tue Aug 12, 2008 5:57 am
by coriolis
hircus wrote:
Is this Ubuntu 8.04? It's the first Ubuntu release with Pulseaudio, and depending on what version of SDL you're using, it might not support Pulseaudio yet.

Try 'pasuspender oolite' to see if it helps.
Yep, 8.04 it is.

I'll give that a try this evening, and see if it fixes it.

Thanks a lot!
hircus ++;

Re: Crash on startup: SDL Audio?

Posted: Tue Aug 12, 2008 9:13 am
by coriolis
coriolis wrote:
hircus wrote:
Is this Ubuntu 8.04? It's the first Ubuntu release with Pulseaudio, and depending on what version of SDL you're using, it might not support Pulseaudio yet.

Try 'pasuspender oolite' to see if it helps.
Yep, 8.04 it is.

I'll give that a try this evening, and see if it fixes it.

Thanks a lot!
hircus ++;
That's the trick.

Is there a FAQ to put this in? Solved the problem straight up.

Re: Crash on startup: SDL Audio?

Posted: Tue Aug 12, 2008 9:06 pm
by hircus
coriolis wrote:
That's the trick.

Is there a FAQ to put this in? Solved the problem straight up.
Not sure, actually. Ubuntu should have a PulseAudio FAQ; actually, you should file a bug on Ubuntu's Launchpad, as newer SDLs has the ability to use PulseAudio for output natively.

Another option if you're on GNOME is to set SDL_AUDIODRIVER=esd . On Fedora, at least, PulseAudio comes with ESD emulation, and older versions of SDL can be coaxed to work that way.

If your PulseAudio is < 0.8.11, though, using pasuspender might be the best bet. Earlier versions have sound problems when combined with SDL.