A problem with mercurial of sdl-mixer

I’m not sure if it’s better to report this problem here or into
bugzilla. Also, I’m not subscribed, so if this list is moderated, CC me
on replies.

Recently I’ve decided to test some of the recent additions, mostly
modplug backend.

That part seems fine, but I encountered a segfault while testing
fluidsynth backend.

I used playmus in tests. I’ve simply set SDL_SOUNDFONTS and that was
enough to trigger a crash. After a bit of testing, I found out that
adding ‘Mix_InitFluidSynth();’ in fluidsynth_loadsong_common at the
start of ‘if (SDL_BuildAudioCVT…’ block fixes the crash (as it was due
to fluidsynth.new_fluid_settings==NULL at this point), but that’s likely
not a correct solution (though perhaps ‘if ( fluidsynth.loaded == 0 )
Mix_InitFluidSynth();’ would be).

Do you have better ideas ?

Can you report this in bugzilla? We’re working on an SDL_mixer release so
it would be great to have this there for tracking.

Thanks!On Sun, Jan 1, 2012 at 12:52 PM, Rafa? Mu?y?o wrote:

I’m not sure if it’s better to report this problem here or into
bugzilla. Also, I’m not subscribed, so if this list is moderated, CC me
on replies.

Recently I’ve decided to test some of the recent additions, mostly
modplug backend.

That part seems fine, but I encountered a segfault while testing
fluidsynth backend.

I used playmus in tests. I’ve simply set SDL_SOUNDFONTS and that was
enough to trigger a crash. After a bit of testing, I found out that
adding ‘Mix_InitFluidSynth();’ in fluidsynth_loadsong_common at the
start of ‘if (SDL_BuildAudioCVT…’ block fixes the crash (as it was due
to fluidsynth.new_fluid_settings==NULL at this point), but that’s likely
not a correct solution (though perhaps ‘if ( fluidsynth.loaded == 0 )
Mix_InitFluidSynth();’ would be).

Do you have better ideas ?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org