Description of the problem: Hello, I have an online experiment that needs to show a lot (768) of visual.rect in each trial. The whole experiment works fine on my laptop. However, starting from some point of the experiment, it fails to load the visuals and just show a blank page on some other machines. For example, machines with macos, but it also happens on some windows machines (typically the less powerful ones). Annoyingly, I didn’t get any error messages, nor from psychopy or browser inspector. I suppose memory/buffer/garbage collection plays a role in this? Is there a way that I can manually do garbage collection in psychopy?
PS, input 1 for surveyID and 0 for participant when you open the experiment, leave the rest empty. You may need to try a few trials until it happens, with a less power machine.
I create rects in beginRoutine at the outside of the loop of trials. My experiment has multiple ‘blocks’ and each block has 8 trials. The rects are created at the beginning of a block. In beginRoutine of each trial routine, I change rects’ pos, color, etc. And then setAutoDraw true, and then setAutoDraw false at the endRoutine.
I didn’t create rects in beginExperiment since some ‘block’ varies in the number of rects
I just tried it and there was a delay between the space bar and the numbers appearing. Is that intentional. If it’s caused by the randomisation of the numbers, that could be done earlier.
It didn’t go blank after the practice plus 5 or so trials.
Thank you! The delay is not intentional. I want it to appear immediately. The numbers are not generated from randomization. It’s read from csv files. The numbers and the position of rects are all from csv files. Is there a way to help the delay?
And when it happens, all the following trials won’t show stimuli anymore (it still shows numbers after ‘space’ is pressed). So the study will stuck because of this
This is my flow in psychopy. Rects are created in the beginRoutine of ‘blockInstr’. ‘trials’ loops 8 trials, trials_3 if for wrong answers, trials_2 loops all blocks
I just find It’s not caused by rects! I deactivate the ‘verification’ and ‘feedback’ routine and it works perfectly this time, no blank page, no delay. So the issue is actually related to text rendering because I set all the numbers autoDraw in ‘verification’
Here is how I render the numbers in ‘blockinstr’ routine, verification_numtext is a list