Closed atanisoft closed 3 years ago
That crash looks like it was trying to convert the currently active locos into a json object to display by the status webpage. It looks unlikely to be due to this PR but not entirely unrelated.
Hmm I did fiddle with the WebUI, but that's about it.
Maybe I should've done that before applying this PR just to compare, but here it is now, either way. :)
Yeah, I think it is likely related to https://github.com/atanisoft/ESP32CommandStation/issues/78 which is problematic due to the underlying stack memory usage (until it TX a frame it holds a copy with no hard limit)
Could a check be added for consequent frames so duplicates are not stored, and only one copy is held thus keeping the heap within bounds?
That is similar to what was proposed but not yet implemented.
I'll add this crash here, since it's probably related to this PR and not the dcc branch.
Funny thing is, it just crashed without me doing anything. ESP32 was basically idling...