SDL_mixer Midi-Playing Crash in MacOS X

I’m having a crash occur every time a midi finishes
playing under MacOS X. The music is set to loop (used
"-1" as the second argument to Mix_PlayMusic()) and
the crash occurs when the tune ends before it
re-starts.

The same code does not cause a crash under linux nor
windows.

Is there a known problem with SDL_mixer and midis
under MacOS X? Any way to work around it?

In case it helps anyone the exception is
EXC_BAD_INSTRUCTION. Here’s the trace for the crashing
thread:

Thread 3 Crashed:
#0 0x01877910 in 0x1877910
#1 0x90723cc8 in
HPIOThread::PerformIO(AudioTimeStamp const&)
(HPIOThread::PerformIO(AudioTimeStamp const&) + 532)
#2 0x90722e7c in HPIOThread::WorkLoop()
(HPIOThread::WorkLoop() + 1100)
#3 0x90739368 in
HPIOThread::ThreadEntry(HPIOThread*)
(HPIOThread::ThreadEntry(HPIOThread*) + 28)
#4 0x907393ac in CAPThread::Entry(CAPThread*)
(CAPThread::Entry(CAPThread*) + 48)
#5 0x900247e8 in _pthread_body (_pthread_body + 40)

Thanks.

http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.

We’ve already fixed several major bugs in the OS X native midi code,
and I suspect there are additional bugs depending on what midi files
you are trying to play. But it is getting better as bug reports
continue to come in. The last work on it was July '03 so be assured
that we’re still interested in fixing bugs.

If you can provide a link to the specific midi file that is
consistently crashing your app, we (Max Horn and myself) may be able to
locate the bug. Also, please provide us with your OS version and
QuickTime version. If you can provide sample code or get it to crash in
the playmus utility (part of SDL_mixer source code) let us know that
too.

Thanks,
DarrellOn Friday, October 17, 2003, at 03:01 PM, sdl-request at libsdl.org wrote:

I’m having a crash occur every time a midi finishes
playing under MacOS X. The music is set to loop (used
"-1" as the second argument to Mix_PlayMusic()) and
the crash occurs when the tune ends before it
re-starts.

The same code does not cause a crash under linux nor
windows.

Is there a known problem with SDL_mixer and midis
under MacOS X? Any way to work around it?