Out of memory

TwineCompile - Cut C++Builder compile times by up to 50x!
Post Reply
eelke
Posts: 2
Joined: Wed Aug 28, 2024 2:56 am

Out of memory

Post by eelke »

We have a build pipeline that sometimes gives the following error:

C:\Program Files (x86)\JomiTech\TwineCompile\TCTargets120.Targets(776,5): error : Fatal: Out of memory

When the pipeline is rerun it often does succeed. This strongly suggests it is a random error as each time the pipeline runs a new VM is created from the same baseimage so the start state is identical and is not influenced by the previous run. The command we use for building id:

jtmake -B -p:BCC_ExtendedErrorInfo=false -ide"12.0" Alle.groupproj

The group contains many projects but I have only seen the error occur on the large projects. Mostly on one with over 500 cpp files.

The VM has 8GB of memory and i have not seen memory usage go above 4.5 GB.

Any suggestions for resolving/finding the cause of this?
Eelke
jomitech
Site Admin
Posts: 2175
Joined: Wed Oct 08, 2008 12:23 am

Re: Out of memory

Post by jomitech »

Which compiler are you using? (Classic, Win32 CLANG, Win64 CLANG, Win64 Modern)?
Jon
eelke
Posts: 2
Joined: Wed Aug 28, 2024 2:56 am

Re: Out of memory

Post by eelke »

Classic
Eelke
jomitech
Site Admin
Posts: 2175
Joined: Wed Oct 08, 2008 12:23 am

Re: Out of memory

Post by jomitech »

It sounds like your projects are running into the linker memory bug. Try some of the suggestions on this page and see if it resolves your issue - https://docwiki.embarcadero.com/RADStud ... ory_Errors
Jon
Post Reply