umts / embedded-departure-board

A Zephyr based departure board that frequently GETs & displays bus stop departure times over LTE-M
Apache License 2.0
2 stars 0 forks source link

`jsmn_parse` occasionally returns `JSMN_ERROR_PART` #15

Closed bandogora closed 1 year ago

bandogora commented 1 year ago

After a couple of hours jsmn_parse seems to fail with JSMN_ERROR_PART.

The string is not a full JSON packet, more bytes expected

bandogora commented 1 year ago

Seems to be related to modem and/or lte_lc lib running out of heap memory.

bandogora commented 1 year ago

Memory leak fixed by in 398249374975

bandogora commented 1 year ago

Occasionally we don't get the full JSON string. Either a socket error on our side or an error on the server side.