# PluginListComponent assertion error

**URL:** <https://forum.juce.com/t/pluginlistcomponent-assertion-error/66320>\
**Category:** General JUCE discussion\
**Created:** [June 9, 2025, 6:45pm UTC](https://forum.juce.com/t/pluginlistcomponent-assertion-error/66320 "2025-06-09T18:45:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpolito](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@dpolito](https://forum.juce.com/u/dpolito)\
**Post date:** [June 9, 2025, 6:45pm UTC](https://forum.juce.com/t/pluginlistcomponent-assertion-error/66320/1 "2025-06-09T18:45:33Z")

</div>

When running the AudioPluginHost example and scanning for VSTs I get  
`JUCE Assertion failure in juce_VST3PluginFormat.cpp:301` which seems to imply that this function should be called on the message thread but the stack strace show it spawning from a `juce::ThreadPool` Is something wrong in this example?

---

<div class="post-metadata">

**Author:** ![dpolito](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@dpolito](https://forum.juce.com/u/dpolito)\
**Post date:** [June 9, 2025, 6:54pm UTC](https://forum.juce.com/t/pluginlistcomponent-assertion-error/66320/2 "2025-06-09T18:54:23Z")

</div>

interesting. it only seems to cause the assertion failure whenever I run it “in-process”

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [June 10, 2025, 5:00pm UTC](https://forum.juce.com/t/pluginlistcomponent-assertion-error/66320/3 "2025-06-10T17:00:32Z")

</div>

> [@dpolito](#):
>
> Is something wrong in this example

Sort of - the VST3 spec says that plugins should only be created on the main thread, but creating a plugin can be time-consuming. The in-process plugin scanner runs on a background thread, so that creating and destroying plugin instances doesn’t block the main thread, which may cause the app to become unresponsive. Blocking the main thread is a pretty big problem: the unresponsiveness could easily prevent the user from cancelling the ongoing scan!

For an in-process scanner, we have to pick the lesser of the two evils: either disobeying the VST3 spec, or blocking the main thread and potentially hanging the application.

The out-of-process scanning approach is the best way to work around these problems. The sub-process can load plugins on its main thread without blocking the main thread of the original application. The out-of-process scanner is also more resilient to plugin crashes, as a crash will only terminate the scanner process instead of the original application.

---

<div class="post-metadata">

**Author:** ![dpolito](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@dpolito](https://forum.juce.com/u/dpolito)\
**Post date:** [June 10, 2025, 7:10pm UTC](https://forum.juce.com/t/pluginlistcomponent-assertion-error/66320/4 "2025-06-10T19:10:10Z")

</div>

makes sense. Can the out-of-process method work for a VST loading VSTs? I would imagine you can use the same commandline initialise approach so you’d either have to do a `juce::ChildProcess::start` type of thing with a separate executable and communicate there or take the In-process method

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [June 10, 2025, 7:20pm UTC](https://forum.juce.com/t/pluginlistcomponent-assertion-error/66320/5 "2025-06-10T19:20:19Z")

</div>

> [@dpolito](#):
>
> Can the out-of-process method work for a VST loading VSTs

I don’t see why not, it’s just a bit more complicated because you need a separate ‘scanner’ executable that you can invoke from the plugin.

---

<div class="post-metadata">

**Author:** ![dpolito](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@dpolito](https://forum.juce.com/u/dpolito)\
**Post date:** [June 10, 2025, 7:31pm UTC](https://forum.juce.com/t/pluginlistcomponent-assertion-error/66320/6 "2025-06-10T19:31:18Z")

</div>

right right. I’ll look into it once I get the standalone version up and running! Will post here if I come up with a clean method
