HISE Logo Forum
    • Categories
    • Register
    • Login

    Webview Doesn't Work on Compiled Plugin in Windows

    Scheduled Pinned Locked Moved General Questions
    15 Posts 4 Posters 452 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.
    • bendursoB
      bendurso
      last edited by

      On Mac, it works fine in HISE and in the compiled plugin too.

      In Windows, it works in HISE but not in the compiled plugin.
      I have enableCache enabled and then applied the reset as I saw in other posts.

      I'm using the same commit on Windows and Mac (last week commit Sep 9, 2025)

      I'm rendering a page of my website like in this example https://forum.hise.audio/topic/9159/webview-doesn-t-work-in-compiled-plugins-and-stand-alone-apps/5

      StraticahS 1 Reply Last reply Reply Quote 0
      • StraticahS
        Straticah @bendurso
        last edited by Straticah

        @bendurso does it work with the Webview examples from Christoph?

        Link Preview Image
        GitHub - christophhart/hise_tutorial: The Tutorial project for HISE

        The Tutorial project for HISE. Contribute to christophhart/hise_tutorial development by creating an account on GitHub.

        favicon

        GitHub (github.com)

        I think the browser example in „HISE Tutorials“ is best to test this with.

        creating user interfaces: www.vst-design.com
        founder @prototype.audio https://www.prototype.audio/

        bendursoB 1 Reply Last reply Reply Quote 1
        • bendursoB
          bendurso @Straticah
          last edited by

          @Straticah Thanks, made the test and got the same issue, works on HISE, not in compiled plugin

          Screenshot 2025-09-17 140747.jpg

          StraticahS 1 Reply Last reply Reply Quote 0
          • StraticahS
            Straticah @bendurso
            last edited by

            @bendurso hm the browser example works on my end for both win and mac.

            development build from yesterday.

            Red part is Webview

            8522de45-2b21-4e83-bba2-b31531b4b2c5-image.png

            Make sure you have:

            wv.set("enableCache", true);
            wv.set("enablePersistence", true);
            

            creating user interfaces: www.vst-design.com
            founder @prototype.audio https://www.prototype.audio/

            bendursoB 1 Reply Last reply Reply Quote 1
            • bendursoB
              bendurso @Straticah
              last edited by

              @Straticah Yep, I have these settings enabled. Another setting of the plugin that may be related?

              StraticahS 1 Reply Last reply Reply Quote 0
              • StraticahS
                Straticah @bendurso
                last edited by

                @bendurso Not that i am aware of i guess you have vst3 support enabled already.

                creating user interfaces: www.vst-design.com
                founder @prototype.audio https://www.prototype.audio/

                bendursoB 1 Reply Last reply Reply Quote 0
                • bendursoB
                  bendurso @Straticah
                  last edited by

                  @Straticah I noticed that the ‘PlayCanvas’ example had caching disabled. I changed it to enabled, and it works now in the compiled version.

                  In my project, I had caching and persistence enabled, so there must be another reason why it doesn’t work. But at least now I know it’s supposed to work. Thanks :)

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

                    @bendurso if you‘re loading an external website you should not use any of those flags, there‘s nothing to cache or be persistent.

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

                      @Christoph-Hart Thanks, I tried with and without cache/persistence, but it still doesn’t work.

                      But.. I tested the same script along with the same HTML file in a new project, and it works. There must be something in my project that’s preventing the page from rendering. I used the same project settings.

                      It actually doesnt even load the html in the original project, because I have a spinner while the page is loading. And I don't even see the spinner.

                      1 Reply Last reply Reply Quote 0
                      • bendursoB
                        bendurso
                        last edited by

                        Yeah I found the issue.. for some reason in the compiled plugin it doesn't find the html file. I checked it with File.isFile() and only founds it on Hise.

                        I have the setting "Embed Images Files" enabled. I tried also disabling this and putting the ImageResources.dat into the appdata folder, but same issue.

                        This is how I'm getting the file:

                        const var webroot = FileSystem.getFolder(FileSystem.AudioFiles).getParentDirectory().getChildFile("Images/news");
                        WebView1.setIndexFile(webroot.getChildFile("file.html"));
                        

                        The weird thing is that.. in a new project it works. But on my existing project it doesn't. Any ideas on what else could be blocking the file?

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

                          @bendurso said in Webview Doesn't Work on Compiled Plugin in Windows:

                          const var webroot = FileSystem.getFolder(FileSystem.AudioFiles).getParentDirectory()

                          This will return the app data folder in the compiled plugin.

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

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

                            @d-healey yeah I know. If I embed the Image Files will be into the plugin itself. But the issue is not here because I'm being able to make it work in a new small project with the same script and html (in the compiled plugin).

                            bendursoB 1 Reply Last reply Reply Quote 0
                            • bendursoB
                              bendurso @bendurso
                              last edited by

                              @bendurso After a lot of testing, I figured out why the index.html file wasn’t loading. Once I deleted all the UI components (panels, sliders, etc.), it finally worked.

                              One thing I noticed is that the standalone app now opens way faster—went from 5 seconds to almost instant. Makes sense since there are fewer elements to load, but it always loads fast on Mac.

                              So maybe the HTML file isn’t loading because of too many UI elements? The weird part is I only see this issue on Windows, not Mac. A couple commits ago it was fine, but I can’t roll back since I’m using the new AHDSR Flex now.

                              1 Reply Last reply Reply Quote 0
                              • bendursoB
                                bendurso
                                last edited by

                                I found that commit ffc821ed0dcbde87c3b29dac9023b4b11eaeaf0e (enabled compilation of HISE with IPP by default) works fine. So the issue must be in a newer commit.

                                The plugin loads much faster, and the html file loads too. @Christoph-Hart maybe this info helps :)

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

                                  @bendurso No idea what could have caused this and it might be a secondary bug which is caused by the webview not being initialized in time because something else took too long.

                                  Can you pinpoint this to a specific commit within that timeframe?

                                  Try a binary search algorithm and focus on the commits that have a checkmark in the commit historty as they will compile sucessfully:

                                  1. you know that the HISE commit from July 4th works, but the one from September 15th doesn't. Take a commit from the middle point (eg. August 4th). Compile that one. If it doesn't work, you know the error is introduced between July 4th and August 4th, otherwise the the issue was introduced between August 4th and September 15th.
                                  2. Take a commit from the mid point between July 4th and August 4th (eg. July 18th). If the error...

                                  If you repeat this until you can pinpoint it to 1-2 commits, then I can take a look what could have gone wrong there.

                                  Otherwise if you can create a test project that demonstrates the issue reliably with the latest commit I can debug that too - try creating a project where you create hundreds of dummy UI elements to see if that really causes the problem.

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

                                  14

                                  Online

                                  1.9k

                                  Users

                                  12.5k

                                  Topics

                                  108.9k

                                  Posts