Memory error when for-loop contains too many videos (python, psychopy function visual.MovieStim3)

Open the task manager and check whether a new video instance is added to the python.exe once you load the next video. If so, this would indicate that you are not yet successful in unloading the video.

Also check my answer in the following thread for unloading the movie. In particular, also add the ‘del video._mov.reader’ command to your script before the ‘del video._mov’ line:

1 Like