HISE Logo Forum
    • Categories
    • Register
    • Login

    Execution time out while loading samples

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 287 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.
    • d.healeyD
      d.healey
      last edited by

      I have a loop that loads my sample maps into samplers. When I'm loading a big patch with a lot of samples I'm getting a timeout in this loop. @Christoph-Hart Are the samples loading on the same thread that the script is running? I thought they were on a separate thread.

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

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @d.healey
        last edited by

        @d-healey Yes they are but they are synchronised so the scripting thread waits until the sample loading thread has completed its job.

        There are a bunch of ways to solve this problem, either by raising the global compile timeout on your local machine or by adding a Engine.extendTimeout() call in your loop.

        Link Preview Image
        HISE | Docs

        favicon

        (docs.hise.audio)

        d.healeyD 2 Replies Last reply Reply Quote 0
        • d.healeyD
          d.healey @Christoph Hart
          last edited by

          @Christoph-Hart Ah thanks, I'll look into that. I should mention that the samples are currently not compressed to monoliths. Will that make a difference do you think?

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

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

            @Christoph-Hart said in Execution time out while loading samples:

            Engine.extendTimeout()

            Hmm the docs say this has no effect in a compiled plugin, but my problem is triggered when changing presets (which triggers the loading of sample maps) at this point the scripts are already compiled.

            Can I use a background task for this to avoid the issue?

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

            Christoph HartC 1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart @d.healey
              last edited by

              @d-healey said in Execution time out while loading samples:

              Hmm the docs say this has no effect in a compiled plugin,

              There is no timeout in a compiled plugin, AFAIK it's a safety mechanism built only into the HISE IDE (just like breakpoints & stack traces).

              But yes, a background thread would be the better tool for the job.

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

              34

              Online

              1.7k

              Users

              11.8k

              Topics

              102.8k

              Posts