Compile hangs the 2.0.3 (and 1.8.19) IDE

I have a sketch which when I try to compile it, the Arduino IDE hangs - i.e. the compile never ends / reports errors or a successful completion.

After some browsing / reading I tried disabling my antivirus program for the time during which the compile was underway, but that did not help.

My machine has lots for cpu power, ram and disk space. However as of the time of this posting the compile has been running for about 20 minutes. Other sketches complete well within a couple minutes.

If after too long a wait, I click on File - Quit from the IDE menu, the program exits but the application cc1plus.exe continues to run and chew up cpu and memory resources until I end task it with Windows task manager (I suspect this is another problem, but I thought I would point it out here all the same).

The compile hanging happens on the 2.0.3 IDE and the 1.8.19 IDE as well.

I turned on verbose reporting and below is what I get
output

Suggestions for next steps would be appreciated.

EDIT: after posting I noticed that if you click the output link above it seems to repeat the contents of the text file many times; not sure why that is - but if you download the file from the link - which is https://6ec1f0a2f74d4d0c2019-591364a760543a57f40bab2c37672676.ssl.cf5.rackcdn.com/arduinocompileproblem.txt
then you get the text file with the text showing up only once.

Update: I am now 100% sure this has to do with the amount of space used up by data in my sketch. However, I don't yet have a solution.

Update: so I'm out of the frying pan into to the fire.

I was able to resolve the hanging compile issue by updating one of my arrays to use
static constexpr
in other words:
static constexpr uint16_t arrayName[41][2496] = { ...
instead of
uint16_t arrayName[41][2496] = { ...

However, the array is inside a class and I'm now having lots of difficulty referencing it - but I'll open a new post for that.

In any case, if you get a compile hang like I did - try looking at how much space you are using for arrays and the like - as you may have to find a way to reduce.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.