OOM debug: warn about String reallocation by d-a-v · Pull Request #7908 · esp8266/Arduino (original) (raw)

Frequent String reallocation is the ram-without-mmu fatal disease, users should fix their code or disable OOM debug.
If that's too hurting, what about printing a message at least once per String ?

(edit1)

They are expected and normal, no?

I'd say they are possible, silent in non-OOM debug mode, abnormal in this environment, and avoidable with String::reserve().

(edit2)
I'd add that if user is too much bugging the core, the core is in its damn right to bug the user back ;)

(edit3)
It is not clear in the log above, that the first reallocation is silent (mention added)