• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Crash in MusicPlayerStart - OS X bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Crash in MusicPlayerStart - OS X bug? (From: Simone Tellini <email@hidden>)
 >Re: Crash in MusicPlayerStart - OS X bug? (From: Daniel Jalkut <email@hidden>)
 >Re: Crash in MusicPlayerStart - OS X bug? (From: Simone Tellini <email@hidden>)
 >Re: Crash in MusicPlayerStart - OS X bug? (From: Stephen Davis <email@hidden>)

  • Prev by Date: [Newby] : how to mix Quicktime sound tracks with live audio ?
  • Next by Date: Re: Converting to LPCM 32bit
  • Previous by thread: Re: Crash in MusicPlayerStart - OS X bug?
  • Next by thread: Re: Crash in MusicPlayerStart - OS X bug? [Test case added]
  • Index(es):
    • Date
    • Thread