HISE Logo Forum
    • Categories
    • Register
    • Login

    Validate plugin parameters freezes Hise

    Scheduled Pinned Locked Moved Solved Bug Reports
    22 Posts 4 Posters 265 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.
    • ustkU
      ustk @Christoph Hart
      last edited by

      @Christoph-Hart Yup! -> PM

      Hise made me an F5 dude, browser just suffers...

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

        @ustk I've found an issue with some thread deadlocks when recompiling the scripts caused by some LAF functions (eg. createPresetBrowserIcons), but not sure if that fixes your issue too.

        But I can validate the plugin parameters here now without crash - you're talking about the Export -> Validate plugin parameters function, right?

        ustkU 3 Replies Last reply Reply Quote 0
        • ustkU
          ustk @Christoph Hart
          last edited by ustk

          @Christoph-Hart Cool you found something 👍

          finger crossed it was related to the Logic hard crash issue... But it was definitely related to this one: https://forum.hise.audio/topic/11895/createpresetbrowsericons-giving-a-high-crash-count?_=1754664135122

          Yeah we're definitely talking about the same validation process

          Hise made me an F5 dude, browser just suffers...

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

            @Christoph-Hart It's still freezing, having plugin parameters or not... (I threw the build folder for a clean 2nd build, same...)

            Hise made me an F5 dude, browser just suffers...

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

              @Christoph-Hart Oh... it works with the debug build, it's the release that freezes ☃ ❄

              Hise made me an F5 dude, browser just suffers...

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

                @ustk See if a particular optimisation level triggers the issue

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

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

                  @d-healey It didn't, I tried no optimisation at all to mimic a debug but it still freezes

                  Hise made me an F5 dude, browser just suffers...

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

                    @ustk yeah my guess is that it's still a deadlocking issue, but because the debug build / running under debugger is slower, it doesn't create the multithreading scenario that leads to the crash (or the probability of the crash goes down). The only option is to smash that compile button in Debug mode until you get the issue.

                    ustkU 3 Replies Last reply Reply Quote 0
                    • ustkU
                      ustk @Christoph Hart
                      last edited by

                      @Christoph-Hart But does it relates to the parameter validation or the LAF? or both? or any? ☺

                      Hise made me an F5 dude, browser just suffers...

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

                        @Christoph-Hart Oh wait... It was working in debug because I didn't recompiled my DLL (which is btw annoying when switching from release to debug to release...).
                        Now they are recompiled and the projects loads entirely in debug, the parameter validation freezes here too...

                        Hise made me an F5 dude, browser just suffers...

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

                          @Christoph-Hart I'm hitting this on parameter validation. (Freq is a NaN for some reason, I checked my networks, nothing fancy, all value are set between 750 and 7500 throughout the whole parameter chain)

                          Screenshot 2025-08-08 at 20.35.29.png

                          Hise made me an F5 dude, browser just suffers...

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

                            @Christoph-Hart So I removed the last biquad and replaced it with an SVF so the assertion disappeared.
                            Now I get this one, signing the end of my debugging skills...

                            Screenshot 2025-08-08 at 21.01.44.png

                            Hise made me an F5 dude, browser just suffers...

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

                              @ustk It looks like there are so many different things.
                              The last one was because of hasTail set in the networks. Once disabled the assertion goes away. But it's still freezing on parameter validation, and this time no crash to tell what is happening

                              Hise made me an F5 dude, browser just suffers...

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

                                Gotcha!!! the culprit is:

                                const var global_LAF = Engine.createGlobalScriptLookAndFeel();
                                
                                global_LAF.registerFunction("getAlertWindowMarkdownStyleData", function(obj)
                                {
                                    obj.font = "Regular";
                                    obj.fontSize = 16.0;
                                    obj.textColour = fontColour;
                                    
                                    return obj;
                                });
                                

                                Interfering with the parameter validation result message of Hise:

                                Screenshot 2025-08-09 at 00.33.52.png

                                Quick recap:

                                • biquad freq is NaN for whatever reason
                                • hasTail assertion
                                • getAlertWindowMarkdownStyleData interference

                                Hise made me an F5 dude, browser just suffers...

                                dannytaurusD 1 Reply Last reply Reply Quote 3
                                • dannytaurusD
                                  dannytaurus @ustk
                                  last edited by

                                  @ustk Excellent detective work! 👏

                                  Meat Beats: https://meatbeats.com
                                  Klippr Video: https://klippr.video

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

                                    @ustk good catch but are you using the latest version? Because I swapped the ScopedReadLock at callDefinedFunction with a ScopedTryReadLock so that it doesn't deadlock when another thread holds the write lock, but your call stack still implies that it uses the ScopedReadLock.

                                    The other things are noise.

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

                                      @Christoph-Hart yep definitely the last after deleting the build folder for a clean new build

                                      Hise made me an F5 dude, browser just suffers...

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

                                        @ustk yeah, I'm the idiot, I forgot to include the line with the actual fix in the commit...

                                        Try again now, it should now work correctly. If it still keeps freezing in Release mode I'll take another look.

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

                                          @Christoph-Hart That was it! Thanks Chris! 😎

                                          Hise made me an F5 dude, browser just suffers...

                                          1 Reply Last reply Reply Quote 0
                                          • ustkU ustk marked this topic as a question
                                          • ustkU ustk has marked this topic as solved
                                          • First post
                                            Last post

                                          24

                                          Online

                                          1.9k

                                          Users

                                          12.3k

                                          Topics

                                          106.8k

                                          Posts