Memory overflow error

Hi @ulasus23,

I have a suspicion where your issue’s coming from…
All the green attributes of components are stored in the RAM - which for most devices is limited to 3584 bytes. A common reason for users to run out of RAM is that they make too many components global. While making them global is the easiest way to make their properties persistent (f.ex. remember the value when switching between pages), it is also extremely RAM consuming because all of the components attributes become global.
In case you wondered, global variables/attributes are always kept within those 3584 bytes of RAM, while local variables/attributes are only loaded into the RAM when their page is active.

It is particularly annoying that the built-in keyboard makes people believe that making components global was a good idea or the way to go.

I’ve detailed this topic in another post and also cover a few possible solutions: Need to keep page load in preinitlaization while values update from arduino - #7 by Max

Kind regards,
Max

2 Likes