We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 579

Summary: mixer crashes on looping
Product: SDL_mixer Reporter: Rene Dudfield <renesd>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED WONTFIX QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2    
Version: unspecified   
Hardware: PowerPC   
OS: Mac OS X 10.4 (Intel)   
URL: http://pygame.motherhamster.org/bugzilla/show_bug.cgi?id=5

Description Rene Dudfield 2008-05-02 16:25:02 UTC
Looping midi crashes on OSX.


1   com.apple.audio.CoreAudio           0x91476d9a
IOA_Device::CallIOProcs(AudioTimeStamp const&, AudioTimeStamp const&,
AudioTimeStamp const&) + 274
2   com.apple.audio.CoreAudio           0x91476b21
HP_IOThread::PerformIO(AudioTimeStamp const&) + 1299
3   com.apple.audio.CoreAudio           0x91474f49 HP_IOThread::WorkLoop() +
953
4   com.apple.audio.CoreAudio           0x91474b8b
HP_IOThread::ThreadEntry(HP_IOThread*) + 17
5   com.apple.audio.CoreAudio           0x91469171 CAPThread::Entry(CAPThread*)
+ 93
6   libSystem.B.dylib                   0x90024227 _pthread_body + 84



Here's a test case which uses pygame here:
wget http://209.197.86.65/19841988/rock/beatles/ISawHerStandingThere.mid
wget http://rene.f0o.com/~rene/stuff/midi.py
python midi.py ISawHerStandingThere.mid
Comment 1 Rene Dudfield 2008-05-04 16:19:30 UTC
Updated the OS to mac osx 10.4 intel.

Also updated the Severity to critical since it's a crash bug.
Comment 2 Sam Lantinga 2009-09-26 02:18:05 UTC
Ryan, can you look at this?  Thanks!
Comment 3 Sam Lantinga 2009-10-03 02:05:43 UTC
This might be fixed with the last checkin, which fixed memory corruption problems.

Can you retest with current subversion?

You'll probably need to edit configure.in to re-enable darwin native MIDI which doesn't build on Mac OS X 10.5+
Comment 4 Sam Lantinga 2009-10-10 23:50:18 UTC
The Mac OS X midi support needs to be completely rewritten for CoreAudio, which will hopefully take care of this issue.