After detailed investigation I can say with a high probability that the issue is related to:
- the overall number of lines of code - whether or not they are just comments or in #ifdef blocks
- when you compile - ie it is random in nature
This fits in with how this issue first arose for me:
working fine -> developing new (working!) code -> Server Error
It seems that I am on the limit of what the cloud compilation service can handle.
Conditional compiliation may be the answer - have raised this ticket:
Any other thoughts?
I will keep this ticket open because it needs to be sorted!