Routine at end of block causes endless loop of final image of slideshow

(macOS Sequoia 15.1.1)
(PsychoPy Standalone v2024.1.4, Builder view)

Hi, thanks for the help!

I’m trying to create a slideshow of images which participants press through, then at the end of the slideshow they recount what they saw. There are 3 slideshows in total each with 10 images. This is the setup in Builder view:

Details about the conditions sheet setup are in my other recent post, so I won’t repeat them here: "No parameters set (conditionsFile not found)" whenever reopening PsychoPy or rerunning experiment.

The recount routine is causing issues. It is a text component saying ‘Tell me what happened in the slideshow’ and a keyboard component to force the end of routine. If I disable it, the experiment works fine – slideshow 1-3 is randomly chosen, images loop through and then the next slideshow starts.

When the recount routine is enabled, this is what happens:

  1. slideshow is randomly chosen and loops through the 10 images fine
  2. recount routine plays fine
  3. image 10 is repeated, followed by recount routine
  4. step 3 repeats in endless loop until I esc out of the experiment

The data csv shows these ‘none’ rows

slideshowConds imagePath
conditions_sheets/slideshow2.xlsx image_stim/slideshow2/slideshow2_001.png
conditions_sheets/slideshow2.xlsx image_stim/slideshow2/slideshow2_002.png
conditions_sheets/slideshow2.xlsx image_stim/slideshow2/slideshow2_003.png
conditions_sheets/slideshow2.xlsx image_stim/slideshow2/slideshow2_004.png
conditions_sheets/slideshow2.xlsx image_stim/slideshow2/slideshow2_005.png
conditions_sheets/slideshow2.xlsx image_stim/slideshow2/slideshow2_006.png
conditions_sheets/slideshow2.xlsx image_stim/slideshow2/slideshow2_007.png
conditions_sheets/slideshow2.xlsx image_stim/slideshow2/slideshow2_008.png
conditions_sheets/slideshow2.xlsx image_stim/slideshow2/slideshow2_009.png
conditions_sheets/slideshow2.xlsx image_stim/slideshow2/slideshow2_010.png
None
None
None

I know these can be caused by empty cells in conditions sheets, so I opened them all as csv files to confirm that there are no empty rows, hidden characters / spaces at the start of column names etc. I also recreated the entire experiment with new conditions files that I checked for empty rows. Still having the same issue.

Does anyone have advice for this? Thanks! :slight_smile:

here is my .psyexp file if that’s helpful:
image_repeat_error.psyexp (16.9 KB)

How many rows is chooseSlideshow.xlsx supposed to have?

PsychoPy thinks it has 11.

1 Like

Thanks for this solution @wakecarter. I had updated the conditions sheet to remove all blank rows, but hadn’t refreshed the outer block.