"The Experiment Failed to Load" issue when preloading images on Pavlovia

280 views
Skip to first unread message

Yaren Koca

unread,
Nov 21, 2020, 8:25:01 PM11/21/20
to jsPsych
Hi,

Hope you are all doing well and staying safe. :)

I set up an experiment on Pavlovia (it is on Piloting) and I have several images to be preloaded. When run locally, I have no problems, however, on Pavlovia, it's giving me a very hard time. It takes multiple refreshes to have it stop giving that error, and sometimes, even several refreshes do not solve the issue. My max_load_time parameter is set to 30k so I don't think the time runs out. The error appears a lot sooner than 5 minutes anyways. Here's what I see in the console when that happens:

jspsych.js:2559 Uncaught TypeError: Cannot read property 'style' of null
    at update_loading_progress_bar (jspsych.js:2559)
    at Image.img.onload (jspsych.js:2411)

I posted the same issue on PsychoPy discourse forum (https://discourse.psychopy.org/t/experiment-failed-to-load-while-image-pre-loading-with-jspsych/18171). I did not try to convert the images to PNG/JPG yet as suggested, but I still don't think this is going to solve it completely. I ran a couple experiments before with smaller stimuli sets and ran into the same issue. As a solution, I told my participants to refresh the page multiple times but I don't want to do that anymore as I cannot afford losing any data this time.

Any help would be highly appreciated. If you need me to provide anything to help solve this issue please let me know.

Best
Reply all
Reply to author
Forward
0 new messages