Re: Crash in MusicPlayerStart - OS X bug?
Re: Crash in MusicPlayerStart - OS X bug?
- Subject: Re: Crash in MusicPlayerStart - OS X bug?
- From: Simone Tellini <email@hidden>
- Date: Wed, 10 Jan 2007 19:49:52 +0100
Il giorno 09/gen/07, alle ore 23:26, Stephen Davis ha scritto:
Did you set the MALLOC_ALTIVEC_SIZE=1 in your environment before
launching your app? By default, Guard Malloc does not vector-align
allocations (no, I don't know why) which violates the Mac OS X
contract that all allocated pointers are vector-aligned. All sorts
of weird things will occur unless you do this...
thanks. Setting that variable solved my problems: now the application
runs without any problem even with Guard Malloc.
I've tested it both on a MacBookPro and a G4 Mini. The user who
reported the problem is on a G4 Powerbook, but we both are using Mac
OS X 10.4.8
So I'm still stuck at the same point. Do you know by chance what
conditions might lead to a crash at this point?
Exception: EXC_BAD_INSTRUCTION (0x0002)
Code[0]: 0x00000002
Code[1]: 0x94260d80
Thread 0 Crashed:
0 ...apple.audio.units.AudioUnit 0x94260d80
AudioUnitSetRenderNotification + 36
1 ....audio.toolbox.AudioToolbox 0x941b571c
AUNodeSequenceDestination::EstablishCallback(bool, bool) + 276
2 ....audio.toolbox.AudioToolbox 0x941985a0 SequencePlayer::Start
() + 140
3 ....audio.toolbox.AudioToolbox 0x94191144 MusicPlayerStart + 128
I haven't found AUNodeSequenceDestination in the docs, so I guess
it's a private class... I'm out of clues.
Before invoking MusicPlayerStart() I do the following:
NewMusicPlayer( &player );
MusicPlayerSetSequence( player, sequence );
MusicSequenceSetUserCallback( sequence, NULL, NULL );
MusicPlayerSetTime( player, startTime );
MusicPlayerPreroll( player );
MusicSequenceSetUserCallback( sequence, PlayerCallback, this );
MusicPlayerStart( player );
--
Simone Tellini
http://tellini.info
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden