Hi everyone,
OS: Win10
PsychoPy version: 1.90.3
Standard Standalone?: Yes. Using the coder.
What are you trying to achieve?: I have an experiment in which several short videos (~5 seconds each) with sound (required) are displayed. The experiment is divided into 5 blocks, with 8 trials each. One video is displayed on each trial.
What did you try to make it work? I play the videos with MovieStim3 and pygame as backend. I create just one video object per block, and then simply load a specific file on each trial.
What specifically went wrong when you tried that?
The experiment runs smoothly until it crashes, after ~32 videos. This is the error message I get:
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\visual\movie3.py", line 163, in setMovie
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\visual\movie3.py", line 180, in loadMovie
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 111, in __init__
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\audio\io\AudioFileClip.py", line 63, in __init__
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\audio\io\readers.py", line 50, in __init__
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 256, in ffmpeg_parse_infos
File "C:\Program Files (x86)\PsychoPy2\lib\subprocess.py", line 745, in __init__
OSError: [Errno 24] Too many open files
What I have tried so far
Before this, I kept getting the MemoryError that other users have reported before. After trying different suggestions, reducing the size of the videos got rid of this error, but now I keep having the “too many open files” error. I’ve also tried to use MovieStim2, but didn’t manage to make it work, even though I have VLC installed (both PsychoPy and VLC are 32-bits versions).
I’ve seen this question has been asked before but was never answered, so I would very much appreciate some help!