error C2148: total size of array must not e xceed 0x7fffffff bytes.
-
@jeffd
yeah same errorC:\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
-
@jeffd Are you using the develop branch?
-
@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
-
@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?
https://github.com/christophhart/HISE/blob/develop/hi_dsp_library/snex_basics/snex_Types.h#L1167
-
@jeffd i dont even know if that is a thing
just guessing
-
@jeffd Yes it is a thing, and by default I think the compiler tries to use the 32bit linker before the 64bit one.
-
@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
-
@jeffd said in error C2148: total size of array must not e xceed 0x7fffffff bytes.:
on mac it works fine
Same version of Faust?
-
@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.
-
@jeffd You built HISE from source?
-
@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 -
@jeffd Does it work if you use a scriptnode network without faust?
-
@d-healey let me try it and see
-
@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
-
@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.
-
@d-healey ok
let me try something.
this one i was doing before was just a smooth delay.i think there is an even simpler one
-
@d-healey yeah it must be that particular effect.
a tried an even simpler delay and it compiled and worked!
seems so odd. works on mac but not on windows.
it was just the smooth delay i am using found here:
https://faustdoc.grame.fr/examples/delayEcho/#smoothdelay
that is throwing the error.
doesnt seem that complicated but that is the problem.
Ill try to smooth out the other delay that works with some smoothing nodes in scriptnode to try to match my mac version i guess.
-
@jeffd the problem is if you use a Faust effect with lots of delay lines in a polyphonic context it blows up the memory size of the C++ class that the faust code generator is trying to build.
I „fixed“ that a few months ago by defaulting to a non-polyphonic FX code generation so make sure you use the latest build and that the polyphony flag of the network is unticked.
-
@Christoph-Hart
ok thanks!i got it working with a different delay type.
but ill try this fix as well.