I am instanciating 2 Apple AudioUnits (Opening AU: AudioUnit:Effects/aufx,dcmp,appl), but getting an error "libc++abi.dylib: Pure virtual function called!" sporadically.
ScopedPointer<PluginDescription> lmtr = new PluginDescription();
I've been seeing this bug as well after an upgrade to El Capitan. It's hard to debug as the pure virtual function exception is catched by the debugger at [NSApp run] which doesn't really help. Not sure if this is a JUCE bug. There is a new AU API where you can now specify a completion callback but this will take some thinking on how to implement this in JUCE properly.
Any progress on this? I’ve distilled my crash down to the function below, which crashes ~50% of the time somewhere under scanAndAddDragAndDroppedFiles or createPluginInstance. As Fabian said, hard to nail down exactly where.
I’m seeing this with both JUCE 4.0.3 and 4.1 (4.2 doesn’t build). Using Xcode 7.0 on OS X 10.10.5.
Sorry if my initial question was so badly worded. I had literally started C++ and JUCE a few days before, and didn’t know how to phrase the question properly, as I had trouble even interpreting what was going wrong.
Thanks for the update Fabian, however, we moved away from attempting to use the Apple audio units, and instead created their functionality as custom audio processors. This did have the added advantage of being cross platform anyway.