In my Weathergraph watchface I often run into this error (as I seem to be pushing into many CIQ limits) - I think it has to do with too many variables declared in various scopes (global, class, method).
Failed invoking <symbol>
Stack Overflow Error
I have enough free RAM, so this seems like there is another limit (stack < free RAM), I'd like to understand how exactly stack in Monkey C works so that I can know how to work around this:
- what exactly counts as stack? global variabes? class variables? scope variables? all of them?
- what exactly is the limit? Is there a limited memory for stack? Or is that a number of entries in some variables table? Can I work around this by using eg. an array (have one larger array with all variables instead of having many separately named variables)?
- is there a known workaround for this (having lot of free ram, but running into Stack Overflow limit)?
Thanks - I searched the docs, but I believe this isn't documented anywhere.