I'm having an issue with an application I am writing, where it becomes unresponsive after ~12 hours. The application gathers data from a sensor every ~1-2 seconds, and plots the the data for the user to see.
The sensor puts out a LOT of different data, so I have (currently) individual 13 series which I spread out over 8 different plots.
The basic flow of my application is this: When the user presses "start", create a new thread with a while(run) loop attached to it. This loop is responsible for the collection of data. When the loop is complete (emits loopDone signal), I use ui->plot_XXX->graph(X)->addData(newX, newY), followed by rescaleAxes(), and finally replot().
This method works great and has good UI responsiveness initially, but when I leave it running for a long time, overnight for example, the UI becomes unresponsive. Interestingly, the thread is still running because I can see the sensor's LED blinking which indicates activity.