AudioPluginHost jassert on startup

I’m trying to use AudioPluginHost to test a project.

It was working previously but now it fails on startup with the below output

JUCE v6.1.6
2022-04-09 01:19:03.260787+0900 AudioPluginHost[27620:7031040] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=27620
2022-04-09 01:19:03.279358+0900 AudioPluginHost[27620:7031040] SecTaskCopyDebugDescription: AudioPluginHost[27620]/0#-1 LF=0
2022-04-09 01:19:03.597024+0900 AudioPluginHost[27620:7031040] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000021a67a0> F8BB1C28-BAE8-11D6-9C31-00039315CD46
JUCE v6.1.6
JUCE Assertion failure in juce_ReferenceCountedObject.h:401

I’m using macOS big sur.

I’m quite confused by this issue so any advice would be appreciated!

The fact that “JUCE 6.1.6” has been printed twice implies that the error is coming from a plugin that’s been loaded (the first JUCE is probably from the AudioPluginHost, the second is from somewhere else, likely a plugin). If you’re testing your own plugin, then perhaps you’ve introduced a bug somehow.

Things to try:

  • Look at the stack trace at the point of the error. This should clearly indicate where the error is coming from.
  • Test your project in standalone instead of as a plugin. Do you still see the same error?
  • Delete the AudioPluginHost settings file from ~/Library/Preferences/Juce Audio Plugin Host.settings and try re-testing. After deleting the settings file, the host will load in a default (blank) state, so if you still see the assertion you’ll know it’s an issue in the host itself - otherwise, you’ll know the problem is in one of the plugins being hosted.
1 Like

I didn’t realise it was loading my plugin on startup, I was able to find the bug in the plugin I’m working on so all good now.

Thanks the help!

1 Like