-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash likely due to high solicitation of the playback trigger? #1
Comments
Interesting. Could you post a bit larger chunk of the log file? I'd like to see if that same stimulus was played the trial before and at what time. Looking at the |
Here is the whole output of the session: |
Hello Tyler,
I encountered that problem several times these past weeks: the subject is activating multiple times the playback trigger, maybe too fast, and the code crashes. In the present test, there are only a few unrewarded stims (dozen) and 2 rewarded stims. So the code is likely to call the same stimulus in consecutive trials. The python error I get is:
"2016-10-01 11:58:45,084","INFO","Trial 99 - 11:58:45 - Unrewarded - /home/fet/stimuli/shaping_categories_all/nonreward/TE_Stim_2.wav" "2016-10-01 11:58:46,146","INFO","Finishing session 1 at Sat Oct 1 11:58:46 2016" "2016-10-01 11:58:46,146","INFO","Finished all sessions." "2016-10-01 11:58:46,461","INFO","Exiting Session state" "2016-10-01 11:58:46,461","CRITICAL","IOError('close() called during concurrent operation on the same file object.',)" "2016-10-01 11:58:46,461","INFO","Exiting Idle state" "2016-10-01 11:58:46,461","CRITICAL","IOError('close() called during concurrent operation on the same file object.',)" "2016-10-01 11:58:46,468","ERROR","Unhandled exception: Traceback (most recent call last): File "/home/fet/scripts/pecking_test", line 171, in <module> args.func(args) File "/home/fet/scripts/pecking_test", line 15, in run run_pecking_test(args) File "/home/fet/python_path/pyoperant/tlab/pecking_test.py", line 192, in run_pecking_test exp.run() File "/home/fet/python_path/pyoperant/behavior/base.py", line 548, in run self._idle.start() File "/home/fet/python_path/pyoperant/states.py", line 95, in start state.run() File "/home/fet/python_path/pyoperant/states.py", line 180, in run return self.experiment.session.start() File "/home/fet/python_path/pyoperant/states.py", line 95, in start state.run() File "/home/fet/python_path/pyoperant/states.py", line 137, in run self.experiment.session_main() File "/home/fet/python_path/pyoperant/behavior/base.py", line 572, in session_main trial.run() File "/home/fet/python_path/pyoperant/trials.py", line 117, in run self.experiment.response_main() File "/home/fet/python_path/pyoperant/behavior/go_no_go_interrupt.py", line 141, in response_main self.panel.speaker.stop() File "/home/fet/python_path/pyoperant/components.py", line 587, in stop return self.output.stop(event=self.event) File "/home/fet/python_path/pyoperant/hwio.py", line 431, in stop return self.interface._stop_wav(event=event, **self.params) File "/home/fet/python_path/pyoperant/interfaces/pyaudio_.py", line 155, in _stop_wav self.wf.close() File "/home/fet/anaconda2/envs/pecking_test/lib/python2.7/wave.py", line 187, in close file.close() IOError: close() called during concurrent operation on the same file object.
Thank you for your help!
J
The text was updated successfully, but these errors were encountered: