Forum

    • Register
    • Login
    • Search
    • Categories

    Strange behaviour when loading plugin in host

    General Questions
    3
    13
    144
    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

      This message is what I get when I launch one of my plugins in Logic Pro X:
      error launching plugin in host.png
      if I then just close the plugin window (not removing the plug) and then open the plug window the message is gone and it works as it should.

      The behaviour happens every time I launch this particular plugin and it's a bit frustrating...
      Anybody got a clue on what's happening here...?

      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 I should say that Hise is compiled from the "scriptnode" source code 2019-08-02

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

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

          Further explorations:
          Opening the plug in Reaper I'll get the same error message (both for au and for vst3 version)
          Same with DSP-Quatro (au version)
          Opening in Steinbergs Vst3PluginTestHost and in Dorico 2 is working with no error messages (vst3 version)

          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 Anyone having a clue what's going on?

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

            1 Reply Last reply Reply Quote 0
            • Christoph Hart
              Christoph Hart last edited by

              Are you using MIDI files in your project?

              It seems like you've passed an empty string into the loadFile() method, but it's weird that this doesn't fail consistently.

              ulrik 2 Replies Last reply Reply Quote 0
              • ulrik
                ulrik @Christoph Hart last edited by

                @Christoph-Hart Yes I am, but no midi file named .mid only (as it says in the message)

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

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

                  @Christoph-Hart Could it be this code that make this happen:

                  const var DemoSongsArr = ["Bel viso", "Lorda mornar", "Sakkijarven polkka", "Vals i natta", "Miss Karting",
                  "Marias vinter", "Pigornas tango", "Nocturne", "Kass theme", "Libertango", "Hej va de gar"];
                  
                  MIDIPlay.setFile("{PROJECT_FOLDER}"+DemoSongsArr[value]+".mid", true, true);
                  

                  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 Comment it out and see if it works 😉

                    Or use Console.print(DemoSongsArr[value]+".mid");

                    To see if it's the expected file name.

                    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 Haha, beautiful David, I used the "Console.print(DemoSongsArr[value]+".mid");" and at initialising I have nothing chosen in the combobox so it looks for ".mid" 🙂
                      So I guess I have to set a default value for the combobox when init, right?

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

                      1 Reply Last reply Reply Quote 1
                      • Christoph Hart
                        Christoph Hart last edited by

                        @ulrik said in Strange behaviour when loading plugin in host:

                        So I guess I have to set a default value for the combobox when init, right?

                        Or check if the value is 0, which means no selection.

                        ulrik 1 Reply Last reply Reply Quote 1
                        • ulrik
                          ulrik @Christoph Hart last edited by

                          @Christoph-Hart @d-healey Thank you both, now it's solved, I saved the project with a value assigned to the combobox! 🙂

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

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

                            Console.print() - the most important function.

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

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

                              @d-healey true, true, true.....
                              I just have to remember that 🙂

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

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

                              17
                              Online

                              985
                              Users

                              6.6k
                              Topics

                              60.9k
                              Posts