Re: Disconnected AU causes crashes on AUGraphRun
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