IndexSizeError?

URL of experiment: stroop_WM [PsychoPy]

PsychopyVersion:2021.2.3
Description of the problem: Hello,everyone. I am trying to run this exp online,but it turned out to be like this:

Hello,
Can you please share the relevant pieces of code in your experiment? Maybe share with us your code components?

Thanks,
Chen

I got a different error, but I think this might be causing an issue.

text_ITI_prac = new visual.TextStim({
    win: psychoJS.window,
    name: 'text_ITI_prac',
    text: '',
    font: 'Open Sans',
    units: 'pix', 
    pos: [0, 0], height: 0.1,  wrapWidth: undefined, ori: 0.0,
    color: new util.Color('white'),  opacity: undefined,
    depth: 0.0 
  });

Your units are pix and your height is 0.1, which isn’t possible.

Thanks for your reply, the question had been solved.

1 Like

Thank you very much for your prompt. It is indeed the problem that caused the error, and the problem has been solved after modifying the font and graphic size.