OS (e.g. Win10): Windows 10
PsychoPy version (e.g. 1.84.x): 1.90.2
Standard Standalone? (y/n) If not then what?: Yes
What are you trying to achieve?:
I am trying to run a loop that plays sound stimuli for a perception task.
What did you try to make it work?:
Tried restarting PC and it often works for the first or second run. But, the problem comes back in the next runs.
What specifically went wrong when you tried that?:
The program works fine the first time I run it. But, when I run it a second or third time, the sounds stop playing after 2/3 stimuli. The loop still works fine (keeps displaying the accompanying texts for the number of repetitions in the loop); just the sounds don’t play.
HERE’S THE ERROR MESSAGE:
From cffi callback <function callback_ptr at 0x1E913370>:
Traceback (most recent call last):
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\sounddevice.py”, line 1008, in callback_ptr
return _wrap_callback(callback, data, frames, time, status)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\sounddevice.py”, line 2773, in _wrap_callback
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\sound\backend_sounddevice.py”, line 199, in callback
ValueError: list.remove(x): x not in list