Can't use multiple VSTs at once in the Plugin Host

Yes, sorry. And thank you, Tom. You and your team have always been very helpful with my questions in the past.

std::cout << opcode << " "<< index << " " << value << " " << ptr << " " << opt << std::endl;
result = vstEffect->dispatchFunction (vstEffect, opcode, index, value, ptr, opt);

Here are the list of args to dispatchFunction prior to the crash. This is 100% reproducible for me. Note that if I open StreamPlugin and Constellation in the reverse order, it is always the second one that breaks on the same line. I can successfully open multiple instances of the first plugin at once, it’s once I open the first different plugin.

You’ll also notice I’m trying to build the old VST format at v4.3.1. First off… I’m sorry, I know devs hate when someone brings them old code and complains. I’m picking this project up again after 2 years and I need to finish the job of getting my build system working for the state of the world then before I upgrade. (This whole adventure has been in trying to build JUCE with Bazel). So FWIW, I think this is not a bug in the JUCE library code. I never had these issues when building the plugins as JUCE recommends. (I’m sure you’re shaking your head at me now, haha) Any insights are appreciated.

JUCE v4.3.1
Attempting to load VST: /Users/chetgnegy/vst/StreamPlugin.vst
JUCE v4.3.1
Creating VST instance: StreamPlugin
Creating VST instance: StreamPlugin
49 0 0 0x0 0
Initialising VST: StreamPlugin (V1.0.0)
22 0 0 0x0 0
10 0 0 0x0 44100
11 0 512 0x0 0
0 0 0 0x0 0
2 0 0 0x0 0
31 1 1 0x0 0
31 0 1 0x0 0
32 1 1 0x0 0
32 0 1 0x0 0
35 0 0 0x0 0
29 0 -1 0x7fff5fbfe450 0
51 0 0 0x1006163b9 0
42 0 140734799796080 0x7fff5fbfd3e8 0
51 0 0 0x1006163b9 0
10 0 0 0x0 44100
11 0 512 0x0 0
12 0 1 0x0 0
71 0 0 0x0 0
51 0 0 0x100616387 0
51 0 0 0x100616387 0
51 0 0 0x100616387 0
48 0 0 0x7fff5fbfd7e0 0
48 0 0 0x7fff5fbfd7e0 0
51 0 0 0x100616387 0
Attempting to load VST: /Users/chetgnegy/vst/Constellation.vst
JUCE v4.3.1
Creating VST instance: Constellation
Creating VST instance: Constellation
49 0 0 0x0 0
Initialising VST: Constellation (V1.0.0)
22 0 0 0x0 0
10 0 0 0x0 44100
11 0 512 0x0 0
0 0 0 0x0 0
2 0 0 0x0 0
31 1 1 0x0 0
31 0 1 0x0 0
32 1 1 0x0 0
32 0 1 0x0 0
35 0 0 0x0 0
29 0 -1 0x7fff5fbfe450 0

I at first thought the -1 was a bad sign, but that seems to be ok based on the previous calls (the first plugin always handles it fine).