Problem with more than 1 instance of plugin
-
I'm developing a 5 voice synth and testing it in Logic Pro X but as soon as I load more than 1 instance of the plugin all goes silent, the cpu is ok so that is not the problem.
I don't know where to start investigating why it's happening, I'll be most grateful for all help and tricks I can get.
This is the instrument, in short there is 10 Syntheziser Groups with 2 Generators in each
I have 5 Global Modulator containers, one for each voice, and 1 more Global Modulator container for all voices (Global)For each voice I have:
- 1 LPF Effect with 12 different Modulators / Filter 2 x (2 LFOs MW, Vel, 2 Envelopes) that's 6 mods for freq modulation and 6 for resonance
- 1 Gain Effect also with 12 mods for Gain and Pan
- 4 mods for Detune and 4 mods for Spread
and some more...
In Hise it works nicely, also in Logic but only with 1 instance :(
Thankful for all tips how to debug this, I don't know how to deal with it
-
@ulrik have you tried with another DAW ?
-
@matt_sf yes I just tested in Reaper and it works with more instances
-
@ulrik I ran Tracktions Plugin validation tool, it failed here:
Starting test: pluginval / Audio processing... Testing with sample rate [44100] and block size [64] !!! Test 1 failed: NaNs found in buffer -- Expected value: 0, Actual value: 128 !!! Test 4 failed: NaNs found in buffer -- Expected value: 0, Actual value: 128 !!! Test 7 failed: NaNs found in buffer -- Expected value: 0, Actual value: 128 !!! Test 10 failed: NaNs found in buffer -- Expected value: 0, Actual value: 128 !!! Test 13 failed: NaNs found in buffer -- Expected value: 0, Actual value: 128 !!! Test 16 failed: NaNs found in buffer -- Expected value: 0, Actual value: 128 !!! Test 19 failed: NaNs found in buffer -- Expected value: 0, Actual value: 128 !!! Test 22 failed: NaNs found in buffer -- Expected value: 0, Actual value: 128 !!! Test 25 failed: NaNs found in buffer -- Expected value: 0, Actual value: 128 !!! Test 28 failed: NaNs found in buffer -- Expected value: 0, Actual value: 128 Testing with sample rate [44100] and block size [128] !!! Test 31 failed: NaNs found in buffer -- Expected value: 0, Actual value: 256 !!! Test 34 failed: NaNs found in buffer -- Expected value: 0, Actual value: 256 !!! Test 37 failed: NaNs found in buffer -- Expected value: 0, Actual value: 256 !!! Test 40 failed: NaNs found in buffer -- Expected value: 0, Actual value: 256 !!! Test 43 failed: NaNs found in buffer -- Expected value: 0, Actual value: 256 !!! Test 46 failed: NaNs found in buffer -- Expected value: 0, Actual value: 256 !!! Test 49 failed: NaNs found in buffer -- Expected value: 0, Actual value: 256 !!! Test 52 failed: NaNs found in buffer -- Expected value: 0, Actual value: 256 !!! Test 55 failed: NaNs found in buffer -- Expected value: 0, Actual value: 256 !!! Test 58 failed: NaNs found in buffer -- Expected value: 0, Actual value: 256 Testing with sample rate [44100] and block size [256] !!! Test 61 failed: NaNs found in buffer -- Expected value: 0, Actual value: 512 !!! Test 64 failed: NaNs found in buffer -- Expected value: 0, Actual value: 512 !!! Test 67 failed: NaNs found in buffer -- Expected value: 0, Actual value: 512 !!! Test 70 failed: NaNs found in buffer -- Expected value: 0, Actual value: 512 !!! Test 73 failed: NaNs found in buffer -- Expected value: 0, Actual value: 512 !!! Test 76 failed: NaNs found in buffer -- Expected value: 0, Actual value: 512 !!! Test 79 failed: NaNs found in buffer -- Expected value: 0, Actual value: 512 !!! Test 82 failed: NaNs found in buffer -- Expected value: 0, Actual value: 512 !!! Test 85 failed: NaNs found in buffer -- Expected value: 0, Actual value: 512 !!! Test 88 failed: NaNs found in buffer -- Expected value: 0, Actual value: 512 Testing with sample rate [44100] and block size [512] !!! Test 91 failed: NaNs found in buffer -- Expected value: 0, Actual value: 1024 !!! Test 94 failed: NaNs found in buffer -- Expected value: 0, Actual value: 1024 !!! Test 97 failed: NaNs found in buffer -- Expected value: 0, Actual value: 1024 !!! Test 100 failed: NaNs found in buffer -- Expected value: 0, Actual value: 1024 !!! Test 103 failed: NaNs found in buffer -- Expected value: 0, Actual value: 1024 !!! Test 106 failed: NaNs found in buffer -- Expected value: 0, Actual value: 1024 !!! Test 109 failed: NaNs found in buffer -- Expected value: 0, Actual value: 1024 !!! Test 112 failed: NaNs found in buffer -- Expected value: 0, Actual value: 1024 !!! Test 115 failed: NaNs found in buffer -- Expected value: 0, Actual value: 1024 !!! Test 118 failed: NaNs found in buffer -- Expected value: 0, Actual value: 1024 Testing with sample rate [44100] and block size [1024] Testing with sample rate [48000] and block size [64] Testing with sample rate [48000] and block size [128] Testing with sample rate [48000] and block size [256] Testing with sample rate [48000] and block size [512] Testing with sample rate [48000] and block size [1024] Testing with sample rate [96000] and block size [64] Testing with sample rate [96000] and block size [128] Testing with sample rate [96000] and block size [256] Testing with sample rate [96000] and block size [512] Testing with sample rate [96000] and block size [1024] Time taken to run test: 176 ms FAILED!! 40 tests failed, out of a total of 450
What does this mean, and how do I correct it?
NaNs found in buffer
-
@ulrik maybe this will help, I found this in the Juce forum :
https://forum.juce.com/t/pluginval-nans-found-in-buffer/39636/5
And in the thread there's a github page link which explain the procedure to debug an issue with pluginval :
https://github.com/Tracktion/pluginval/blob/develop/docs/Debugging a failed validation.md -
@matt_sf great, thank you very much! :)
-
@ulrik still having problem with this
I think I've fixed the Nans in the pluginval, either it was because of 2 missing "breaks" in a switch statements or,
which I think is the real issue, the missing of isDefined(value) in several knob control callbacks (all knobs and buttons are panels)I discovered in Logic this:
Ok it is successfully validated but the version check shows "invalid" ??
So I opened up 2 instruments "project_info.xml" files and compared them
Does these findings mean anything to the issue I'm having?
-
@ulrik said in Problem with more than 1 instance of plugin:
all knobs and buttons are panels)
Not that I think it will fix this issue - but why are you using panels for controls and not LAF?
-
@d-healey said in Problem with more than 1 instance of plugin:
but why are you using panels for controls and not LAF?
I need the contextual menu...
-
@d-healey No thoughts about the issue? or about the difference between the 2 instruments and why Logic says "invalid" on version number?
-
@ulrik said in Problem with more than 1 instance of plugin:
@d-healey said in Problem with more than 1 instance of plugin:
but why are you using panels for controls and not LAF?
I need the contextual menu...
Actually it would be nice to have the "menuItems" opportunity on sliders as well :)
-
@ulrik said in Problem with more than 1 instance of plugin:
@d-healey No thoughts about the issue? or about the difference between the 2 instruments and why Logic says "invalid" on version number?
If I did I would have mentioned it :) I don't do much stuff on MacOS and so far haven't run into any issues like this.
-
@d-healey Ok, thanks!