I wonder if anyone can see an error. I am running an experiment with approximately 220 trials. There are 3 auditory stimuli that I want to turn on for a variable amount of time and terminate when the 'space' is pressed (on some trials). At about trial 148 I get an error, indicating that the sound is the issue and the last line is "memory Error'
Specifically:
if self.lineRGB!=None and self.lineWidth!=0.0: Traceback (most recent call last): File "C:\Users\freemali\Desktop\UGH_lastrun.py", line 4352, in short_stim3 = sound.Sound('C', secs=short_dur) File "C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.81.00-py2.7.egg\psychopy\sound.py", line 217, in init self.setSound(value=value, secs=secs, octave=octave) File "C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.81.00-py2.7.egg\psychopy\sound.py", line 135, in setSound self._setSndFromNote(value.capitalize(), secs, octave, hamming=hamming) File "C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.81.00-py2.7.egg\psychopy\sound.py", line 167, in _setSndFromNote self._setSndFromFreq(thisFreq, secs, hamming=hamming) File "C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.81.00-py2.7.egg\psychopy\sound.py", line 177, in _setSndFromFreq self._setSndFromArray(outArr) File "C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.81.00-py2.7.egg\psychopy\sound.py", line 291, in _setSndFromArray thisArray= (thisArray*2**15).astype(numpy.int16) MemoryError
Is this a result of Psychopy not releasing the auditory stimuli? Because I want the stimuli on for a variable period of time, I am using stimulus.stop()
at the end of the routine. Is this an issue?