I’m currently programming an experiment in PsychoPy 3.0.5 with Python 2 where I present participants with 10 movies followed by 28 rating scale questions after each one.
Basically, presenting multiple rating scales throughout the experiment seems to slowly be eating up my RAM until psychopy decides to crash right around the last movie.
I’ve tried editing the rating scale code as described in the link above but it still crashes.
Has anyone been able to fix this issue? My last resort is to split the experiment into two.
It looks like @jeremygray fixed (most of) that issue with the commit here to his fork of PsychoPy:
But:
This is just a partial fix for an underlying problem in the pyglet drawing library, which is outside of PsychoPy. It should greatly reduce the rate of the memory leak, but not entirely eliminate it.
It doesn’t look like this fix was ever sent as a pull request to the main PsychoPy repository, so the fix has not yet been applied centrally.
You’ve made the fix yourself locally but it hasn’t changed things (which is surprising, I would have thought it would have given you a much longer period of useful time before the leak became problematic).
So perhaps for you, the best option would be to switch from using the complex but comprehensive Rating Scale to the newer but simpler Slider class:
Thanks for your response. The fix Jeremy posted actually did help as the experiment lasted a bit longer, but it did still eventually crash (remember that I’m loading movies as well, which eats up memory).