Re: AU resources (plist problem)
Re: AU resources (plist problem)
- Subject: Re: AU resources (plist problem)
- From: Howard Moon <email@hidden>
- Date: Tue, 17 Dec 2002 11:35:42 -0800
Hi Bill...
The following is part of the console output that I get when Logic
Audio crashes. This is when run outside the CodeWarrior IDE. It
suggests a problem in my App_Editor constructor's code.
However, when run inside the IDE, that code is never reached.
Instead, I get the access fault exception prior to my plug-in's
constructor ever getting called. The stack trace in the IDE, in that
case, shows some calls in Logic Audio, followed by ones in Carbon Core,
then Core Foundation, then libSystem.B.dylib, then dyld, then some
addresses that have no labels at all. Then the crash. And no
breakpoint I set ever gets hit. (I have moved my destination for the
target to the Library:Audio:Plug-Ins:Components folder just to be sure
I'm not trying to debug something that is not what is being actually
run, by the way.)
I have found two more bits of info on this: 1) the plist gets written
if I remove all object code and recompile, but not if just delete the
component and relink; and 2) the crash occurs not just because the
plist exists, but when that plist includes the following nodes (that
I've added to assist in getting the bundle handle):
<key>CFBundleIdentifier</key>
<string>com.Antares.Finder.AutoTune</string>
Without those nodes (or without the entire plist file), the host runs
fine, but of course my plug is not loaded because I can't get the
bundle handle. (Does any of this info shed more light on the problem?)
(I'm not sure if I want to try doing all of this in PB...seems like
that's not as good a development environment, and I'm not sure where to
begin doing that, what with all the library dependencies, etc.)
Thanks for the help...
Howard
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
Thread 0 Crashed:
#0 0x03224750 in App_Editor::App_Editor[in-charge](AudioEffect*)
#1 0x0321c678 in App_Effect::App_Effect[in-charge](long
(*)(AEffect*, long, long, long, void*, float))
#2 0x03203544 in CVST2AURegister::CVST2AURegister[in-charge]()
#3 0x03200ddc in __sinit_:VST2AUPlugin_cpp
#4 0x8fe16594 in call_module_initializers_for_objects
#5 0x8fe160a0 in call_module_initializers
#6 0x8fe106f0 in link_in_need_modules
#7 0x8fe121a4 in _dyld_link_module
#8 0x90017008 in NSLinkModule
#9 0x9015d63c in _CFBundleDYLDLoadBundle
#10 0x9015d24c in CFBundleLoadExecutable
#11 0x9015cfcc in CFBundleGetFunctionPointerForName
#12 0x902411a0 in _cf_lookupLibraryEntry
#13 0x9023a3b8 in LoadComponent
#14 0x902340c4 in OpenAComponent
#15 0x0031e164 in 0x31e164
#16 0x00320c04 in 0x320c04
#17 0x002f78e8 in 0x2f78e8
#18 0x001f0998 in 0x1f0998
#19 0x001bc610 in 0x1bc610
#20 0x001bdee4 in 0x1bdee4
#21 0x000cce4c in 0xcce4c
#22 0x000bb168 in 0xbb168
#23 0x000bde3c in 0xbde3c
#24 0x00004374 in 0x4374
#25 0x000041f4 in 0x41f4
On Tuesday, December 17, 2002, at 10:46 AM, Bill Stewart wrote:
>
At this point I don't think that it is Core Audio that is throwing the
>
exception - but I'd like to see the back trace that you're getting
>
when its crashing... (off list is fine)
>
>
Please don't flame me for this suggestion:) - have you tried using
>
Project Builder? We haven't had any of these kinds of problems when
>
using that. Maybe someone has already got a PB version of the VST2AU
>
project they could send you if you're interested in trying this route?
>
>
Bill
>
>
On Tuesday, December 17, 2002, at 09:07 AM, Howard Moon wrote:
>
>
> Hi..
>
>
>
> following suggestions about making my resources visible in my AU
>
> (which is a vst port using VST2AU), I added the following to the
>
> VST2AUplist.plc file:
>
> ...
>
> key "CFBundleIdentifier" value string "com.Antares.AutoTune"
>
> ...
>
>
>
> (This is inside the "dictionary" node along with the other key/values
>
> pairs.)
>
>
>
> Sometimes, CodeWarrior fails to write out the plist file into the
>
> contents of the component (bundle). In those cases, my call to
>
> CFBundleGetBundleWithIdentifier returns null (since it can't find the
>
> key I'm looking for), and then my plug-in won't be created. Then,
>
> the host continues to launch but without my plug-in being available.
>
>
>
> Sometimes, the plist file IS created. (I have yet to know when/why
>
> this difference.) In THOSE cases, the CoreAudio code throws an
>
> Access Fault Exception even before any of my code is executed.
>
> (Which of course makes it impossible to debug!) I am totally
>
> confused as to what to do about this problem. I've been stuck for
>
> weeks unable to get my vst plug ported to AU using this VST Porting
>
> SDK.
>
>
>
> One other note: even though I renamed the bundle to
>
> AutoTune.component, CodeWarrior still creates a folder hierarchy
>
> called Plugin.component (although it has no content, just folders).
>
> Could this be related somehow to the plist generation problem? Is
>
> there something not mentioned in the readme.h or porting doc that I
>
> missed regarding the target?
>
>
>
> Anyone have any idea what is going on here??? Why would the presence
>
> of Info.plist cause CoreAudio to throw an exception? And why would
>
> the plist only be written *sometimes*? Can somebody shed some light
>
> on this?
>
>
>
> Thanks for any advice...
>
>
>
> Howard
>
> _______________________________________________
>
> coreaudio-api mailing list | email@hidden
>
> Help/Unsubscribe/Archives:
>
> http://www.lists.apple.com/mailman/listinfo/coreaudio-api
>
> Do not post admin requests to the list. They will be ignored.
>
>
>
>
>
-- 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
>
_______________________________________________________________________
>
___
>
_______________________________________________
>
coreaudio-api mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.