Is it possible it is just happening on a restart (before the variable is initialised) and you are getting occasional restarts that you are not aware of?
I already wanted to report that I managed to solve it yesterday and the issue was indeed what you guessed The app crashes sometimes due to insufficient memory (1GB) on raspberry pi 3B+ but as systemd is configured to restart it, it happens again and again. So we're currently optimising the use of memory mainly doing certain things at file system level instead of doing it in memory.
Thanks again to all for your efforts and time!
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.