Hello Max,
I am running in Linux (actually a Linux guest in VirtualBox on a Win10 host).
I found this thread, which suggests that typing “quit” in the Debug Console might be better than pressing the “stop” (square) button in the debugger button-bar.
https://community.platformio.org/t/jlinkgdbserver-graceful-shutdown/5349
And it does seem to work more reliably after that. I am no longer seeing the “low on memory” message.
If I encounter the issue again, I will run the ps
terminal command to see if another GDB process is running.
Thanks.