HISE Logo Forum
    • Categories
    • Register
    • Login

    Server.callWithGET broken on Mac compiled plugins

    Scheduled Pinned Locked Moved General Questions
    69 Posts 8 Posters 3.7k Views
    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.
    • LindonL
      Lindon @LeeC
      last edited by Lindon

      @LeeC sorry cant point you at the server - as its the clients and its restricted...
      but heres some parts of it:

      // this is just setting up the URL to use...it could be anything you want..
      Server.setBaseURL("https://your.servername.com");
      var temp = "api/user/login/";
      
      
      inline function doServerValidation(Mail, Pass)
          {
              // set up the post "packet" to send across..
              const var p =
              {
                  "email": Mail,
                  "password": Pass
              };
              // call the server....
              Server.callWithPOST(temp, p, function(status, response)
              {
                   // display the results...
                  Console.print("status is:" + status);
                  Console.print("response is:" + trace(response));
              });
      };
      

      HISE Development for hire.
      www.channelrobot.com

      LindonL L 2 Replies Last reply Reply Quote 1
      • LindonL
        Lindon @Lindon
        last edited by

        Actually I do lot more that you might want to consider

        • first start a timer( lets make it execute after 90 seconds....)

        • in the timer call back - if it executes it means we've been hanging around for 1.5 mins with no response from the server so tell the user their internet connection is broken...

        • callWith POST callback turn the server off... so we never get to the "hey your internet no worky" problem...

        HISE Development for hire.
        www.channelrobot.com

        d.healeyD 1 Reply Last reply Reply Quote 1
        • L
          LeeC @Lindon
          last edited by

          @Lindon no worries thanks.

          Yeah that's pretty much the same setup that I've got in the snippet I posted above.

          If you get chance to try my snippet it would be appreciated but no worries if not.
          Honestly, I'm lost as to what's going on after trying multiple servers/setups... All work in HISE but in DAWs it's blah blah blah

          1 Reply Last reply Reply Quote 0
          • L
            LeeC
            last edited by LeeC

            @Lindon said in Server.callWithGET broken on Mac compiled plugins:

            Actually I do lot more that you might want to consider

            • first start a timer( lets make it execute after 90 seconds....)

            • in the timer call back - if it executes it means we've been hanging around for 1.5 mins with no response from the server so tell the user their internet connection is broken...

            • callWith POST callback turn the server off... so we never get to the "hey your internet no worky" problem...

            Sure, this is exactly the kind of logic I have in the plugin I have ready to release. I noticed that a connection to the internet wasn't being made on some DAWs which gave birth to this thread.

            The snippets posted are just to demonstrate the problem.

            Appreciate the insight though thanks and if anybody has a few quick minutes to test the snippet their end and can spot anything it would be great.

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

              @Lindon

              so tell the user their internet connection is broke

              There is a function to check for a working connection. Server.isOnline()

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

              1 Reply Last reply Reply Quote 0
              • orangeO
                orange
                last edited by orange

                Actually I am having the same issue in all of my macOS systems. (Catalina and High Sierra)

                Standalone works, Hise project works but compiled plugin doesn't work in Logic Pro X. Can't connect to the server. Windows works also.

                Has anyone figured it out to fix it?

                develop Branch / XCode 13.1
                macOS Monterey / M1 Max

                L 1 Reply Last reply Reply Quote 1
                • L
                  LeeC @orange
                  last edited by LeeC

                  Hi @orange, I tried multiple servers and setups but couldn’t get things to work with Logic Pro X, so
                  I decided to remove the code that depended on these server calls in the end.

                  If you need help testing anything out further just let me know :)

                  1 Reply Last reply Reply Quote 0
                  • L
                    LeeC
                    last edited by LeeC

                    Hey @Christoph-Hart, myself and @orange have just been doing some testing and it looks like it’s possible to get a server response in LPX, but it’s not the prettiest workaround.

                    It seems that playback through the plugin is required in order to trigger the Timer Object that returns the response.

                    You can see in the video below that initially no response is returned when hitting the ‘Call With Post’ button, but as soon as audio is played back through the plugin the response is returned.

                    https://i.imgur.com/5z2Ktk6.mp4

                    Thanks for putting together the code snippet for testing btw @orange :grinning_face_with_big_eyes:

                    LindonL ulrikU 2 Replies Last reply Reply Quote 3
                    • LindonL
                      Lindon @LeeC
                      last edited by

                      @LeeC @orange -woah - good catch - is this true for effect plugins only or instrument ones too?

                      HISE Development for hire.
                      www.channelrobot.com

                      orangeO 1 Reply Last reply Reply Quote 0
                      • orangeO
                        orange @Lindon
                        last edited by orange

                        @Lindon only AU fx plugins in LPX. Standalone and Instrument versions work

                        @LeeC Thanks goes to @ustk for this test plugin 🙂

                        develop Branch / XCode 13.1
                        macOS Monterey / M1 Max

                        LindonL 1 Reply Last reply Reply Quote 2
                        • LindonL
                          Lindon @orange
                          last edited by

                          @orange said in Server.callWithGET broken on Mac compiled plugins:

                          @Lindon only AU fx plugins. Standalone and İnstrument versions works

                          ..and only in Logic?

                          HISE Development for hire.
                          www.channelrobot.com

                          orangeO 1 Reply Last reply Reply Quote 0
                          • orangeO
                            orange @Lindon
                            last edited by

                            @Lindon said in Server.callWithGET broken on Mac compiled plugins:

                            @orange said in Server.callWithGET broken on Mac compiled plugins:

                            @Lindon only AU fx plugins. Standalone and İnstrument versions works

                            ..and only in Logic?

                            Yes only on LPX. Interestingly, same AU plugin works in Ableton or Reaper. But in LPX we see this issue

                            develop Branch / XCode 13.1
                            macOS Monterey / M1 Max

                            1 Reply Last reply Reply Quote 1
                            • orangeO
                              orange
                              last edited by orange

                              @Christoph-Hart This is the exported fx plugin, you can see yourself: https://www.dropbox.com/s/b4qq5z8qopwlzzo/ServerTest_FX.zip?dl=1

                              Also snippet of this plugin is in below. In Hise works, instrument plugin works, but compiled fx plugins doesn't work in LPX.

                              HiseSnippet 1645.3ocuXssbZaDFVxwaRrbbmjYxE8RMzafo1bvw4PSm1.FiSoECLVX61qRERKvFK1kJsXBwimI8IpuB8QpuAs+qNwJrD1wyjpKX1C+eq99Ot+nttLKrmGyUQcidymfUTeDxXNkOp9HSBUo4A9Kfcu.61C6wU1e9DSOOrshp58dqPB0MVWw+4edy9lNlTK7hkTTNkQrvsHiI7Eq1s5uPbbNzzF2iLVR58p1zhQqybXSA1bOTYkIlVmaND21TH1ZHE062vlvYtFbSN1SQc88Y1yMFwlQCj+ThGouCVLohhAbPAKeHywVvXwpJ0GQbr6Fo0dJvozcgM3dA1fmhNhXShWegs3w9anu.gr8PcsUQuJxzq7smdpRza8.58DjgkKYBewNBtsIpIkicGXBt.YZEHqxZ+0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nLM+MIZ9oet5Ru94W60+igZBz9Z+gQM29HTkx6Utxqd4y9tJJC.yrA4iRcBWt5shfagjp2lEGqd5+GbTKKNtIJtokrb1JOs5M5DOnJFRELi6dNM9DnCODEz5SVZhLq2LaVGeIfDqqhk88muDqqNIEVGwofNrxhS2rtIVK3uAsEpF01zAqeDixRnMOJ63DoKnj8B6IqO+wR5ym9yqoOjP8QCE0N3sSiLcHCoi8I48QN3AbkrzmaJNayrSVitkP1g8QIE7u6ubXlcJNrUD+mFeCrGO.4WiOE1u6Rws2JcYKjzEwY4u9BpNZnnq1+L0nLqT8Pj+3JxJyWKWBnYjxfTOClFoHH0uAlEYjabTslsjCld.x0WNeVxmKnz8gKIcr+rX0tWiUH0dvvajQZnt0LLNqywGbKI00+m7OFcDydpiIO4GYP7kUB2.5THw+lW7O1odPrg7Wd4KxWd31R2mf5R3ViRmuqkBegdK9Ry2vuiyVnFCF.satfrqiN7W+x+QaTNlMUzw7QlPaoPzEp8zwFPZnEFXBkhcDcyotlnuqf4kEyEVFCL01ex+BOgaVQLWMbyJQapL1zxk8NqfdHEeonG5uBvIpep8FniDy0qn32WIfCUtXYkwDax6rrDlhc.tmNlcuCXd1c.yd2ALO+Nf4E2ALu7Nf4UqDi3aGVaJmMNHMAVnaC+lsUUaPEkT8iHU9OWkXzqC
                              

                              NOTE: Create an account for login from here: https://www.noiseash.com/my-account/

                              develop Branch / XCode 13.1
                              macOS Monterey / M1 Max

                              NatanN 1 Reply Last reply Reply Quote 2
                              • NatanN
                                Natan @orange
                                last edited by

                                @orange What's The Purpose Of This?
                                Plugin Activation?
                                Downloading On The Fly?

                                orangeO 1 Reply Last reply Reply Quote 0
                                • orangeO
                                  orange @Natan
                                  last edited by

                                  @Natan said in Server.callWithGET broken on Mac compiled plugins:

                                  @orange What's The Purpose Of This?
                                  Plugin Activation?
                                  Downloading On The Fly?

                                  It can be both of them

                                  develop Branch / XCode 13.1
                                  macOS Monterey / M1 Max

                                  NatanN 1 Reply Last reply Reply Quote 1
                                  • NatanN
                                    Natan @orange
                                    last edited by

                                    @orange Hmmm 🤔 Sounds Intresting

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

                                      @LeeC Good finding :)

                                      Hise Develop branch
                                      MacOs 15.3.1, Xcode 16.2
                                      http://musikboden.se

                                      1 Reply Last reply Reply Quote 1
                                      • ustkU
                                        ustk
                                        last edited by

                                        Hi all,
                                        I have to bring some more information on this server plugin test.
                                        The Timer start and the server call are not in relation with each other. Although they are triggered inside the same button callback, this is done sequentially, one after the other (timer first then server call)

                                        This is important to know because it tells us none of them are triggered at all when the playhead is stopped. This why I don’t think it’s a timer or server issue anymore…

                                        Could Logic have a function like the one we find in ProTools, that put the plugin in standby when it’s not playing or even between audio containers like ProTools can do?

                                        This might explain these functions are bypassed or not triggered…

                                        @Christoph-Hart Does it make sense?

                                        Can't help pressing F5 in the forum...

                                        ustkU 1 Reply Last reply Reply Quote 1
                                        • ustkU
                                          ustk @ustk
                                          last edited by ustk

                                          I’d like to add that the timer and the server are launched, but they are in standby (we can see the server thread is ACTIVE)

                                          So maybe Hise could « disapprove » this forced standby for vital functions like server and timer, what do you think @Christoph-Hart?

                                          Can't help pressing F5 in the forum...

                                          L 1 Reply Last reply Reply Quote 1
                                          • L
                                            LeeC @ustk
                                            last edited by

                                            Think you might be right that it's not a timer or server issue @ustk.

                                            Here's a cleaner example of the behaviour in Logic Pro X.

                                            As you can see, movement of the playhead is actually not required to 'Activate' the plugin, running a simple test tone through the plugin is enough to get things moving.
                                            Furthermore once this is done, the plugin stays 'Activate' for the entire session (as closing and reopening the plugin demonstates).

                                            alt text

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

                                            22

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.6k

                                            Posts