jsPsych 6.3 image preloading errors on Pavlovia #2559
Replies: 2 comments 5 replies
-
Is there some limit as to how many images can be preloaded at once? I've noticed that after clearing the cache, it will reliably fall over. Once I've refreshed the page/started the experiment a couple of times, however, all is well—presumably because every time I run it, more and more of the images have been cached? My ugly workaround for now is to preload the same images five times at the very start of the experiment with the preload property "continue_after_error" set as true — that appears to do the trick (but does not make me very happy :)) |
Beta Was this translation helpful? Give feedback.
-
Hi @iholzleitner, do you have a live version of this task that you could share with me? That might help me figure out the problem. There's no set limit to the number of images that can be preloaded. However different browsers/computers will have different cache limits, so you could be running into that problem. But the specific error that you're seeing ("File did not begin loading") makes me wonder if there's something else going on here. If this is a cache limit issue, then I'm wondering if we can at least improve the error messages, because the message you're getting suggests either a file name error or a CORS problem, and it sounds like neither of those explanations are correct. In the meantime, another workaround might be to preload your files in smaller batches/blocks throughout your experiment, i.e. preload batch 1 stimuli, run a block of trials using batch 1 stimuli, preload batch 2, etc. This would be the solution I would suggest anyway if this does turn out to be a cache limit issue. Please let me know if you have questions or need help setting up this solution. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there
I keep getting preloading errors and I can't figure out why!
I have quite a few stimuli, so I'm preloading them in four batches of 378 images (each is about ~31 KB). The paths look correct; sometimes all blocks will load and run correctly, but often they won't! What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions