[solved] Crashing after one trial when recording audio
I've been running into a recurrent error when I try to run an experiment that involves recording audio. Essentially, everything works perfectly for the first trial, but rather than going on to the second trial, the program exits and then crashes.
I've included two screenshots below (clickable thumbnails). The first is of the interface when everything is normal. (This also shows the design of the experiment.) The second screenshot shows what happens after the program exits the one perfect trial, but before it crashes. I do not get error messages when the experiment exits, so I include the "post-error" screenshop in the hopes that the funny way my entire project design disappears from the overview pane might be diagnostic in some way.
The audio is recorded using the in-line script from here: http://forum.cogsci.nl/index.php?p=/discussion/107/solved-recording-speech-response/p1
I changed a few lines to specify the name of my file and the recording location, but I doubt that they are the problem, because the resulting wave file is correctly labeled and stored in the correct location for the first trial. The relevant lines are here:
import os os.chdir("C:/Users/Clara Cohen/Documents/Dropbox/D/ENproduction/testExperiment")
WAVE_OUTPUT_FILENAME = CONDITION+LIST+SENTNUM+SUBJECT+POSITION+".wav"
However, something about the audio recording script item is responsible, because the experiment runs fine when I take it out.
After the error, when I close the program, I get the following error message:
"The logfile 'C:\Program Files\OpenSesame\opensesame.exe.log' could not be opened:
[Errno 13] Permissoin denied: 'C:\Program Files\OpenSesame\opensesame.exe.log' "
Please let me know if there is any other information you need to help me figure out why the program keeps crashing after the first trial.