compiler is out of heap space...

  • Hello I'm getting this error one of my plugins while compiling (in Windows)
    I have 12 GB RAM. Why it does that?

    d:\ortak\vocalFX\binaries\source\presetdata.cpp(779906): fatal error C1060: compiler is out of heap space
    Done building project "vocalFX_SharedCode.vcxproj" -- FAILED.

  • Your binary resources are too big, you need to exclude the audio files and images from your plugin. Set Embed AudioFiles in Plugin to false in the project properties.

  • @christoph-hart
    I have IR samples only. And it they take only 1,74 MB. If I say "Embed AudioFiles in Plugin to false " so how can I adress them for the user's usage in their computers?

    Also microsoft site says that I should use the 64bit Visual Studio Toolset for compiling. And procedure is this:

    Is it might be about that?

    By the way I can compile my project on Mac and plugin works good...

  • @orange If your files have that small amount, it shouldn't do that.
    Do you have other files that you don't use in the project's Audio folder? If yes, move them to out of your project folder. Because even if you don't use them; they uses heap space in VS.

  • Images also get embedded. As soon as you have more than ~50MB of images and audio files the compiler on Windows chokes.

    Just read the help on the EmbedAudioFiles property itβ€˜s all there.

  • @Christoph-Hart @remarkablex
    I have a referance audio track (30MB wav) for designing fx plugins in Audio folder. I don't use this audio file in plugins, just using for monitoring sound. I removed it out of the project folder, then boom, it works. Thank you πŸ™‚

  • Actually the Visual Studio command line compiler is using the 32bit toolset by default, which limits the memory usage to 3GB (which is weird).

    I've changed it so from now on you have more resources. However it won't save you from embedding a 30MB audio file into your plugin for no reason πŸ™‚

Log in to reply