The issue is that when the loop reaches the 4th trial, the program crashes and outputs exit code ‘3221225477’. Does anyone know what might be causing this?
What is the start condition of Interruptmovie. I notice that it’s probably a condition rather than a time.
If your loop is working but crashes on the 4th trial then I assume that your loop is set to sequential and the 4th movie is either blank, corrupt or misspelled.
Hi carter
the start condition of Interruptmovie is “isInterrupt”, if isinterrupt=0, the video file uses a video of less than 1 second (blank.mp4), and the code is written so that it doesn’t display.
However, my issue is that the third trial cannot end, meaning it cannot proceed to the fourth trial, and there is no error code in the output, just outputs exit code ‘3221225477’
I worry that this error occurred because the same video was referenced repeatedly, so I duplicated the video.
The video disappears automatically according to its original duration. After it disappears, the participant needs to continue with the experiment, and each trial ends when “mouse.isPressedIn(confirmButton)”
The third trial not ending means that after the video in the third trial disappears, the participant cannot continue with the mouse clicks.It keeps loading, and eventually, ‘python.exe’ stops responding.
When I deleted all the trials with isinterrupt=0, the experiment ran smoothly. It seems to be an issue with switching between isinterrupt=0 and isinterrupt=1.
If you have a component with a conditional start then the routine will not end when all components have ended if there is a component which has not yet started. What I do in this case is all a timeout to the Routine Settings.