Raise RuntimeError(“Cannot close stream, not opened yet.”)

Hello,

This is my overall task:


In this task, people see a movie for a randomly varied time before responding to a visual analog scale (VAS).
Details of the task and how it is coded are here: Breakdown after stimulus random stop - #10 by Ange. Or right away here the psychopy task:
EmpathySTUDY.zip (77.7 KB)
One movie stimuli example is here: e.mp4 - Google Drive

What specifically went wrong ?:
After the movie, the experiment breaks down with the error

raise RuntimeError(“Cannot close stream, not opened yet.”)

Online I don’t find much about this error… In the VAS routine, I added the following code in the Start section, but it does not help…

Happy for any suggestions… Thanks a lot in advance :slight_smile: