Forum

    • Register
    • Login
    • Search
    • Categories

    Compiler is out of heap space

    General Questions
    4
    7
    407
    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.
    • orange
      orange last edited by orange

      Hi
      I'm getting "Compiler is out of heap space" error while compiling a fx plugin.
      I'm using 10 different 400x29600 px (10 x 11 MB) size high res image strips for knobs. If I use lower size images it doesn't give this error. Actually I am making a resizable GUI for retina display (4K).

      Can we increase this value or is it a dangerous thing to use large images?

      develop Branch / XCode 13.1
      macOS Monterey / M1 Max

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

        @orange Maximum embedded file size is 50mb I think.

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

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

          @d-healey So it should be increased because of the high resolution GUI's. Why there is a limitation of 50MB?

          develop Branch / XCode 13.1
          macOS Monterey / M1 Max

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

            Google Visual Studio + /bigobj. But be aware that using images that big will use a lot of memory when the plugin is loaded because the images are stored uncompressed in memory (in your case, I am guessing 500-600MB).

            orange hisefilo 2 Replies Last reply Reply Quote 1
            • orange
              orange @Christoph Hart last edited by orange

              @Christoph-Hart Ok, that's what I want to know. So I shouldn't increase this limitation value.
              I guess I will use those picture optimization tools that reduces file size with a little lossy compression. Thank you so much 😉

              develop Branch / XCode 13.1
              macOS Monterey / M1 Max

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

                @Christoph-Hart hi man!!! Just facing this issue. Im using the Raw C++Api and really huge vectors. MacOs compiled like a charm. VS complaining. /bigobj is not enough I guess. Any idea?

                hisefilo 1 Reply Last reply Reply Quote 0
                • hisefilo
                  hisefilo @hisefilo last edited by

                  Well. Fixed. If anyone face the same issue. Splitting std::vector or arrays in multiple files not larger than 500kb is the solution

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

                  25
                  Online

                  1.1k
                  Users

                  6.8k
                  Topics

                  62.5k
                  Posts