Movie loop crash after a few trials

Hi!
I want to add a video component to a routine, where multiple trials are loaded in a loop, with each trial loading a different video.

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’

Why do you have blank2.mp4 as well as blank1.mp4? Why not the same file?

What do you mean by the third trial not ending? Do you have to end it by pressing escape? How is it supposed to end?

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.

A previous post with this exit code was caused by a clash of component names.

What happens if you delete the second NL_1 row from your spreadsheet?

Is there anything different between those two trials?

interesting… if i delete the second NL_1 row (3rd trial), the 2nd trial is not working(NT_1.MP4 is loading but this trial cannot end)

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.

What is supposed to end the routine?

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.