• 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: Disconnected AU causes crashes on AUGraphRun
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disconnected AU causes crashes on AUGraphRun


  • Subject: Re: Disconnected AU causes crashes on AUGraphRun
  • From: William Stewart <email@hidden>
  • Date: Tue, 4 Apr 2006 15:01:27 -0700


On 04/04/2006, at 10:09 AM, Mark Coniglio wrote:

This is a more focused repost of my earlier question.

In an AU Graph, leaving one audio unit disconnected (i.e., with no Generator) causes a crash after calling AUGraphRun. One would think that, leaving an AU without a source would cause it to produce no output, and wouldn't be a problem. But instead it seems to crash as soon as you start the graph.

No, I've not seen this behaviour at all - and this situation can arise in many situations where the AUGraph API is used. For instance, generator AU's were only introduced in Tiger, and we've been using AUGraph's for some time before then. For instance, with many of our Mixer AUs we have more inputs allocated than are connected, and these don't cause problems.


It really sounds to me like the problem you have is a memory smasher - so, one thing you can do is run this using the various malloc debug options to see if the crash can be sourced more reliably.

Oh, and the API is called AUGraphStart (not AUGraphRun) - if you are indeed calling AUGraphRun, then that must come from somewhere else, so that might be a cause of your problem?

Bill


If anyone has insights on allowing these dangling AUs to exist, I'd be really glad to hear them. It's important in my app, because I'm creating a kind of "front end" for the AUGraph, and the user might forget to connect some input to an AU, temporarily have the AU input disconnected as they try things out, etc.


If its impossible to have this, I'm going to have to go through the connetions and track down any AU's that don't have input connections and not include them in the graph.

You can try my sample code to cause the crash at http:// www.troikatronix.com/files/show-augraph-crash.sitx

Steps To Reproduce:

0) Create an AUGraph
1) Create Default Output Unit
2) Create Stereo Mixer Unit with Two inputs
3) Create two Low Pass Filter Units
4) Create on Sound File Player Unit and set output format to match that of source file
5) Connect Stereo Mixer output to Default Output unit input
6) Connect both Low Pass Filter outputs to Stereo Mixer inputs 1 and 2
7) Connect Sound File Player to Low Pass Filter #1
8) Do not connect anything to Low Pass Filter #2
9) Start the graph running using AUGraphRun
10) Crash


Best Wishes,
Mark
--
=====================================================================
Mark Coniglio, Artistic Co-Director | email@hidden
Troika Ranch Dance Theater          | http://www.troikaranch.org
=====================================================================
_______________________________________________
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

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
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: 
 >Crashing in AUGraph (From: Mark Coniglio <email@hidden>)
 >Re: Crashing in AUGraph (From: William Stewart <email@hidden>)
 >Re: Crashing in AUGraph (From: Mark Coniglio <email@hidden>)
 >Disconnected AU causes crashes on AUGraphRun (From: Mark Coniglio <email@hidden>)

  • Prev by Date: Disconnected AU causes crashes on AUGraphRun
  • Next by Date: Compiling CoreAudio Examples
  • Previous by thread: Disconnected AU causes crashes on AUGraphRun
  • Next by thread: Re: Disconnected AU causes crashes on AUGraphRun
  • Index(es):
    • Date
    • Thread