Page 1 of 1

Out of memory

Posted: Wed Aug 28, 2024 3:09 am
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?

Re: Out of memory

Posted: Wed Aug 28, 2024 8:01 am
by jomitech
Which compiler are you using? (Classic, Win32 CLANG, Win64 CLANG, Win64 Modern)?

Re: Out of memory

Posted: Thu Aug 29, 2024 12:08 am
by eelke
Classic

Re: Out of memory

Posted: Thu Aug 29, 2024 9:38 am
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