Error when setting up a preload queue in testing mode

It seems some people have had similar problems, but I haven’t found a solution that works yet…

I set up an online experiment that started working last week. There have been some issues with images that it’s supposed to show from the very beginning, but it’s worked to change all images from .jpg to .png files, and I was able to pilot the whole experiment last week. Now, it stopped working again, with the same error message.

The experiment runs in PsychoPy, and it runs in js-mode in PsychoPy Builder in pilot mode, but not when I set it to testing mode, nor in Pavlovia.

In the experiment settings, I checked that the “output path” in the online settings is set to blank. I also checked that the relevant files are in the gitlab folder, which can be accessed via Pavlovia in the “view code” tab.

Hello @semantic_learning

Does one of the following help?

Best wishes Jens

Thanks for the fast reply, Jens!

The proposed solution is basically to make sure that the files are listed in the “online” tab of the experiment settings, right?

Unfortunately, that doesn’t seem to help: The files are definitely there, but I still get the same error message (again, only in js run mode).

Hello @semantic_learning

It is always Folie1.png?

Yes, you are correct.

Did you run the experiment in an incognito tab or flushed the cache after correcting any error?

Best wishes Jens

Thanks for the response!

The browser deletes all history/cache after it is closed, so that doesn’t seem to be the issue.

I tried removing the first welcome screen, which is where Folie1.png is needed, but interestingly, still got the error message about Folie1.png. I don’t think it’s specific to this one image, though - I previously had the same problem with the same image files in .jpg format, and changing them to .png worked last week (i.e., I was able to run the experiment in Pavlovia), but over the weekend it stopped working again.

Hello @semantic_learning

Then the code still refers to Folie1.png or uses a cached version of your experiment.

Best wishes Jens

Thanks for the response! So the issue could be that, whenever I run the experiment, it refers to a previous version of the experiment where there is no image file called “Folie1.png”?

Any idea how to check or fix this? The github folder associated with the Pavlovia experiment does have the image file. Deleting the Pavlovia experiment, re-generating the .py and .js-files and re-uploading everything doesn’t work. Neither does deleting the browser history and cache.

Hello @semantic_learning

I mean that somewhere in your experiment you make a reference to Folie1.png. Check the py-code to find the relevant line of code, identify the routine and delete the reference from the component via the Builder. Have you deleted Folie1.png from the list of Online Resources?

Best wishes Jens

Thanks for the suggestions! Well, I don’t really want to remove Folie1.png: it’s my first instruction screen. I did so for the previous post to see what would happen (in response to your question “It is always Folie1.png?”).

The issue is that, for some reason, the image doesn’t seem to be findable in running js-mode. It stops the experiment from running…

Hello @semantic_learning

Do you mind sending me Folie1.png?

Best wishes Jens

Sure, here it is!

Hello @semantic_learning

The file name is Folie1.PNG and not Folie1.png.

Best wishes Jens

1 Like