[SDL] SDL_Mixer crash in Timidity
Bruno Coudoin
bruno.coudoin at free.fr
Mon Nov 20 17:08:42 PST 2006
We have a problem with SDL_mixer-1.2.7-1. It crashes all the time when
we close and reopen audio.
To reproduce, take the demo package here:
http://jcatki.no-ip.org/SDL_mixer/
And replace the LEFT key binding to look like this:
case SDLK_LEFT:
Mix_HaltMusic();
Mix_HaltChannel(-1);
Mix_CloseAudio();
Mix_OpenAudio(44100,MIX_DEFAULT_FORMAT,2,audio_buffers);
//Mix_RewindMusic();
break;
Here is the 100% reproductible crash.
0xb7dec203 in open_file () from /usr/lib/libSDL_mixer-1.2.so.0
(gdb) bt
#0 0xb7dec203 in open_file () from /usr/lib/libSDL_mixer-1.2.so.0
#1 0xb7df6dde in Timidity_Error () from /usr/lib/libSDL_mixer-1.2.so.0
#2 0xb7df79e4 in Timidity_Init () from /usr/lib/libSDL_mixer-1.2.so.0
#3 0xb7dd24b6 in open_music () from /usr/lib/libSDL_mixer-1.2.so.0
#4 0xb7dd11a7 in Mix_OpenAudio () from /usr/lib/libSDL_mixer-1.2.so.0
#5 0x0804924a in main (argc=Cannot access memory at address 0xffffffff
) at sdlwav.c:163
Attached is patch.
User on which their distro did not compiled in the timidity support
don't see the problem. That make it very hard to support because some
user see the problem, some don't. In the GCompris case, I don't see a
workaround. Do you plan to make a new release?
--
Bruno Coudoin
http://gcompris.net Free educational software for kids
http://ofset.org Free educational software for all
http://toulibre.org Logiciel Libre à Toulouse
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sdl_mixer_timidity.patch
Type: text/x-patch
Size: 576 bytes
Desc: not available
Url : http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20061121/c2e3fda0/attachment.bin
More information about the SDL
mailing list