Forum

    • Register
    • Login
    • Search
    • Categories

    Problem with more than 1 instance of plugin

    General Questions
    3
    13
    116
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ulrik
      ulrik last edited by

      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.

      Skärmavbild 2022-01-17 kl. 13.56.56.png

      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 😞

      Skärmavbild 2022-01-17 kl. 13.55.15.png

      Thankful for all tips how to debug this, I don't know how to deal with it

      Hise Develop branch
      MacOs 13, Xcode 14.0.1
      http://musikboden.se

      Matt_SF 1 Reply Last reply Reply Quote 0
      • Matt_SF
        Matt_SF @ulrik last edited by

        @ulrik have you tried with another DAW ?

        Develop branch
        Win10 & VS17 / Monterey & Xcode 13.2.1

        ulrik 1 Reply Last reply Reply Quote 0
        • ulrik
          ulrik @Matt_SF last edited by

          @matt_sf yes I just tested in Reaper and it works with more instances

          Hise Develop branch
          MacOs 13, Xcode 14.0.1
          http://musikboden.se

          ulrik 1 Reply Last reply Reply Quote 0
          • ulrik
            ulrik @ulrik last edited by ulrik

            @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
            

            Hise Develop branch
            MacOs 13, Xcode 14.0.1
            http://musikboden.se

            Matt_SF 1 Reply Last reply Reply Quote 0
            • Matt_SF
              Matt_SF @ulrik last edited by

              @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

              Develop branch
              Win10 & VS17 / Monterey & Xcode 13.2.1

              ulrik 1 Reply Last reply Reply Quote 1
              • ulrik
                ulrik @Matt_SF last edited by

                @matt_sf great, thank you very much! 🙂

                Hise Develop branch
                MacOs 13, Xcode 14.0.1
                http://musikboden.se

                ulrik 1 Reply Last reply Reply Quote 0
                • ulrik
                  ulrik @ulrik last edited by ulrik

                  @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:

                  Skärmavbild 2022-01-26 kl. 12.19.12.png

                  Ok it is successfully validated but the version check shows "invalid" ??

                  So I opened up 2 instruments "project_info.xml" files and compared them

                  Skärmavbild 2022-01-26 kl. 12.23.20.png

                  Does these findings mean anything to the issue I'm having?

                  Hise Develop branch
                  MacOs 13, Xcode 14.0.1
                  http://musikboden.se

                  d.healey 1 Reply Last reply Reply Quote 0
                  • d.healey
                    d.healey @ulrik last edited by

                    @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?

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

                    ulrik 2 Replies Last reply Reply Quote 0
                    • ulrik
                      ulrik @d.healey last edited by

                      @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...

                      Hise Develop branch
                      MacOs 13, Xcode 14.0.1
                      http://musikboden.se

                      ulrik 1 Reply Last reply Reply Quote 1
                      • ulrik
                        ulrik @d.healey last edited by

                        @d-healey No thoughts about the issue? or about the difference between the 2 instruments and why Logic says "invalid" on version number?

                        Hise Develop branch
                        MacOs 13, Xcode 14.0.1
                        http://musikboden.se

                        d.healey 1 Reply Last reply Reply Quote 0
                        • ulrik
                          ulrik @ulrik last edited by

                          @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 🙂

                          Hise Develop branch
                          MacOs 13, Xcode 14.0.1
                          http://musikboden.se

                          1 Reply Last reply Reply Quote 0
                          • d.healey
                            d.healey @ulrik last edited by

                            @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.

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            ulrik 1 Reply Last reply Reply Quote 1
                            • ulrik
                              ulrik @d.healey last edited by

                              @d-healey Ok, thanks!

                              Hise Develop branch
                              MacOs 13, Xcode 14.0.1
                              http://musikboden.se

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              16
                              Online

                              1.1k
                              Users

                              6.7k
                              Topics

                              62.1k
                              Posts