Forum
    • Categories
    • Register
    • Login

    HISE segfaults when loading large sample maps

    Scheduled Pinned Locked Moved Bug Reports
    crashbugsegfault
    9 Posts 3 Posters 1.2k 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.
    • David HealeyD
      David Healey
      last edited by David Healey

      I have two large sample maps in my project, about 20GB of wav files in total. I loaded these into my samplers and saved the project. Now each time I try to open the project, HISE loads the samples and then crashes.

      If I convert the samples to monoliths then no crash. However sometimes loading the monoliths causes execution timeout errors in my script.

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - HISE tutorials
      My Patreon - More HISE tutorials

      ustkU 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey
        last edited by David Healey

        Seems to be happening somewhere within sampler->killAllVoicesAndCall(f); but the logic is a bit too deep for me to follow.

        @Christoph-Hart I can upload my test project for you when you have time to take a look.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - HISE tutorials
        My Patreon - More HISE tutorials

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

          @d-healey said in HISE segfaults when loading large sample maps:

          sometimes loading the monoliths causes execution timeout errors

          Have you tried raising the timeout in the settings?

          Hise made me an F5 dude, any other app just suffers...

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @ustk
            last edited by

            @ustk I'll try it, but HISE shouldn't timeout my script when loading samples should it?

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - HISE tutorials
            My Patreon - More HISE tutorials

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

              @d-healey 🤷

              Hise made me an F5 dude, any other app just suffers...

              1 Reply Last reply Reply Quote 1
              • David HealeyD
                David Healey
                last edited by

                Working on a large project again - probably the same one :) and the same issue, loading wavs the project crashes/times out, convert to monoliths - in fact I only converted one of the maps to monolith - and the project loads. I will try poking Claude about this but just wanted to give this thread a bump.

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - HISE tutorials
                My Patreon - More HISE tutorials

                1 Reply Last reply Reply Quote 0
                • David HealeyD David Healey referenced this topic
                • David HealeyD
                  David Healey
                  last edited by

                  @Christoph-Hart I've pinned it down. The issue is when loading the wav files HISE is opening lots of file readers (up to 2 per file) and it doesn't close them until the instrument unloads. With a lot of samples it's hitting my system ulimit -n file descriptor limit. I temporarily increased the limit to 65536 and I was able to load and save my large sample map without issue which confirms that this is the cause.

                  It also ties into the same issue I had in this thread where I noticed if I had more than 8160 samples the project crashed.

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - HISE tutorials
                  My Patreon - More HISE tutorials

                  dannytaurusD 1 Reply Last reply Reply Quote 1
                  • dannytaurusD
                    dannytaurus @David Healey
                    last edited by

                    @David-Healey Nice find 👌

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

                    1 Reply Last reply Reply Quote 0
                    • David HealeyD
                      David Healey
                      last edited by David Healey

                      This is Claude's minimal fix: https://github.com/christophhart/HISE/pull/1003

                      I've tested it and it appears to work. The fix just closes each file reader after reading the data into the preload buffer.

                      Free HISE Bootcamp Full Course for beginners.
                      YouTube Channel - HISE tutorials
                      My Patreon - More HISE tutorials

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

                      29

                      Online

                      2.4k

                      Users

                      13.9k

                      Topics

                      120.8k

                      Posts