PluginDirectoryScanner crashes when it scans more than ~800 VST3 from a folder

Hi Juce Forum, please help me with this issue.

I’m creating a scanner that scan VST3 plugins from a folder with PluginDirectoryScanner and scanNextFile. It works well, but when I scan a folder that has a lot of VST3 files (about 800 or more) it crashes.

This is the error that is happening on file juce_VST3PluginFormat. As you can se it is related with CFBundleLoadExecutableAndReturnError.

This is what appears in console as an error:

dyld[5473]: could not create thread local variables pthread key
libc++abi: cannot create thread specific key for __cxa_get_globals()

Any guess what it can be? Thanks in advance for your kindly help!

Does it crash in Release as well as Debug? Protected plugins will crash the debugger.

Rail

3 Likes

Loading 800 vst3 plugins in one process might just simply have run you out of memory. Anything like that seem to be the case?

2 Likes

Thanks for your reply.

Unfortunately no, it crashes even in release version. I think it’s related to a memory issue that cannot handle to scan a lot of plugins. I’m checking what I can do.

I think the same, even in Release version is happening the crashing. Do you have any idea what I can modify to increase the memory involved?

So I think most folks who make reliable scanners end up realizing they have to do them out of process with a sub process that does n at a time and records the done ones. I don’t know if there’s another answer especially if some vsts have big load time footprints

2 Likes