[SDL] Mix_OpenAudio crashes on Mandrake 9.2 when artsd is active

Shlomi Fish shlomif at vipe.technion.ac.il
Sun Jan 18 06:36:00 PST 2004


Hi!

When I run the following program:

<<<
#include "SDL.h"
#include "SDL_mixer.h"

int main()
{
    // start SDL with audio support
    if(SDL_Init(SDL_INIT_AUDIO)==-1) {
        printf("SDL_Init: %s\n", SDL_GetError());
        exit(1);
    }
    // open 44.1KHz, signed 16bit, system byte order,
    //      stereo audio, using 1024 byte chunks
    if(Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 1024)==-1) {
        printf("Mix_OpenAudio: %s\n", Mix_GetError());
        exit(2);
    }

    return 0;
}
>>>

I get the following errors, and eventually the program crashes:

<<<
ALSA lib pcm_hw.c:1055:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed:
Device or resource busy
mcop warning: user defined signal handler found for SIG_PIPE, overriding
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
>>>

According to gdb, the problem occurs at:

<<<
Program received signal SIGSEGV, Segmentation fault.
0x409c2e67 in Arts::StartupManager::startup() () from
/usr/lib/libmcop.so.1
(gdb) bt
#0  0x409c2e67 in Arts::StartupManager::startup() () from
/usr/lib/libmcop.so.1
#1  0x406c2010 in Arts::The_WaveDataHandle_impl_Factory ()
   from /usr/lib/libartsflow.so.1
>>>

This problem makes me unable to play pysol or frozen-bubble when I hear
music in the background.

Regards,

	Shlomi Fish

----------------------------------------------------------------------
Shlomi Fish        shlomif at vipe.technion.ac.il
Home Page:         http://t2.technion.ac.il/~shlomif/

You are banished! You are banished! You are banished!

Hey? I'm just kidding!




More information about the SDL mailing list