phobos icon indicating copy to clipboard operation
phobos copied to clipboard

[ERROR] GC overhead limit exceeded

Open WaterKnight1998 opened this issue 3 years ago • 1 comments

Good morning,

I have been using this library in my project for a while. However, since Today I am getting the following error GC overhead limit exceeded while compiling my project. This errors comes from the Decoders and encoders.

WaterKnight1998 avatar Sep 15 '22 11:09 WaterKnight1998

Hi!

Could you provide some details?

  • Does this error reproduce constantly?
  • What is the size of the heap for your build tool? (If it's SBT - sbt -v 2>/dev/null version | grep 'Xm')
  • Does increasing the heap size help to resolve this problem?
  • How many decoders/encoders do you have?
  • Are there any "heavy" classes? E.g. with lots of fields, with deep nesting, recursive definitions, etc?

valentiay avatar Sep 15 '22 18:09 valentiay

Closing for now, as there is no activity in this issue. Feel free to reopen it, if the issue needs further investigation.

My best guess is that your SBT heap is too small. Compilation of scala macros (phobos has plenty of them) requires a lot of memory, so it is ok to increase the heap

valentiay avatar Nov 13 '22 11:11 valentiay