Hello,
I have been scouring the google forums and this forum for an answer to my issue and so far have not had any luck. I apologize in advance if my issue has already been solved and if so, please point me in the right direction.
I am currently running v1.83.04. I have an experiment setup that, at its core, plays videos(.avi,with sound) and then waits for the participant to answer either num_1 or num_2 based on our instructions. There are 32 videos (~500KB each) that are repeated 5 times per trial. The experiment has 4 trials separated by user defined breaks and at the end of the experiment, the data is saved as a csv.
We had a fully working experiment on version 1.80.06 but we recently updated our paradigm and created new videos. During this process we updated to version 1.83.04 and now the experiment fails due to a memory error.
Error Message
Running: C:\Users\gibbsintern\Desktop\TBW research Psychopy - New Experiment with lip movement\TBW stimuli presentationTestingVersionFinal_lastrun.py
Traceback (most recent call last):
File "C:\Users\gibbsintern\Desktop\TBW research Psychopy - New Experiment with lip movement\TBW stimuli presentationTestingVersionFinal_lastrun.py", line 2348, in <module>
depth=-2.0,
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.83.04-py2.7.egg\psychopy\visual\movie3.py", line 121, in __init__
self.loadMovie(self.filename)
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.83.04-py2.7.egg\psychopy\visual\movie3.py", line 169, in loadMovie
sampleRate = self._mov.audio.fps)
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.83.04-py2.7.egg\psychopy\sound.py", line 222, in __init__
self.setSound(value=value, secs=secs, octave=octave)
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.83.04-py2.7.egg\psychopy\sound.py", line 151, in setSound
self._setSndFromArray(numpy.array(value))
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.83.04-py2.7.egg\psychopy\sound.py", line 308, in _setSndFromArray
thisArray= (thisArray*2**15).astype(numpy.int16)
MemoryError
I have tried the experiment on two different machines.
-Dell Inspirion(x64) Intel i7, 1280Mb graphics, 8Gb Ram, windows 8
-Dell Inspirion(x64) Intel i5, 256Mb Graphics, 8Gb Ram, windows 10
As suspected, the machine with the 1280Mb of graphical memory gets almost through the entire experiment (almost 4 trials) before having the memory error compared to the other machine barely making it through two of the four trials.
I have tried all three backends and the OpenCv will allow the experiment to complete, but drops frames and sometimes crashes due to frame loss. The current backend being used is moviepy.
Disabling sound also allows the experiment to complete without issue.
Any help would be greatly appreciated as I am at a loss on what else to try.
Thanks,
Blake