HISE Logo Forum
    • Categories
    • Register
    • Login

    error C2148: total size of array must not e xceed 0x7fffffff bytes.

    Scheduled Pinned Locked Moved Faust Development
    31 Posts 3 Posters 1.3k 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.
    • J
      jeffd @d.healey
      last edited by

      @d-healey
      in the task manager i see it hovering around 75 mb

      d.healeyD 1 Reply Last reply Reply Quote -1
      • d.healeyD
        d.healey @jeffd
        last edited by

        @jeffd Try compiling it manually in Visual Studio

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

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

          @d-healey hise or the dll?

          not sure how to do compile the dll manually if that is what you mean

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

            @jeffd The dll - do you have the problem compiling HISE too?

            In the networks binaries folder there should be a VS solution file.

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

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

              @d-healey no hise works fine

              J 1 Reply Last reply Reply Quote 0
              • J
                jeffd @jeffd
                last edited by

                @jeffd
                yeah same error

                C:\Users\jeff\Desktop\HISE\hi_dsp_library\snex_basics\snex_Types.h(1167,4): error C2148: total size of array must not exceed 0x7fffffff bytes

                in visual studio

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

                  @jeffd Are you using the develop branch?

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

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

                    @d-healey yes.

                    maybe i have something set to compile this in 32-bit mode? which is why i am running out of memory?

                    is that possible

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

                      @jeffd Yeah I was wondering that, but then I would expect it to reach 4GB of RAM before failing.

                      The offending line seems to be an array that is dependent on the number of voices. Is your effect heavily polyphonic?

                      Link Preview Image
                      HISE/hi_dsp_library/snex_basics/snex_Types.h at develop · christophhart/HISE

                      The open source framework for sample based instruments - HISE/hi_dsp_library/snex_basics/snex_Types.h at develop · christophhart/HISE

                      favicon

                      GitHub (github.com)

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

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        jeffd @jeffd
                        last edited by

                        @jeffd i dont even know if that is a thing

                        just guessing

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

                          @jeffd Yes it is a thing, and by default I think the compiler tries to use the 32bit linker before the 64bit one.

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

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

                            @d-healey no i dont think so.

                            but now im also just testing it out with a simple project with faust.

                            to see if it that works

                            same problem arrises with my bigger project and the simple one i made with a faust delay.

                            on mac it works fine

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

                              @jeffd said in error C2148: total size of array must not e xceed 0x7fffffff bytes.:

                              on mac it works fine

                              Same version of Faust?

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

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

                                @d-healey yes and no actually. I first tried it with the older version of faust im using on mac. 2.63 I believe?

                                got the c2148 error

                                then i updated faust and hise to the latest to see if that would fix it.

                                same issue.

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

                                  @jeffd You built HISE from source?

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

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

                                    @d-healey using that script

                                    REM Build HISE
                                    %projucer_path% --resave "%output_dir%/HISE\projects\standalone\HISE Standalone.jucer"
                                    %msbuild% "%hise_source%\projects\standalone\Builds\VisualStudio2022\HISE Standalone.sln" /p:Configuration="Release with Faust" /verbosity:minimal

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

                                      @jeffd Does it work if you use a scriptnode network without faust?

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

                                      J 2 Replies Last reply Reply Quote 0
                                      • J
                                        jeffd @d.healey
                                        last edited by

                                        @d-healey let me try it and see

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

                                          @d-healey yes it worked

                                          i was able to compile a dll with just a simple scriptnode effect

                                          so it is something to do with faust

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

                                            @jeffd said in error C2148: total size of array must not e xceed 0x7fffffff bytes.:

                                            so it is something to do with faust

                                            Or that particular faust effect. Try the most basic faust effect you can think of and see it that works.

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

                                            J 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            19

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.3k

                                            Posts