Pavlovia-Error message when loading experiment online

URL of experiment:
https://run.pavlovia.org/Loubna/lou/?__pilotToken=c74d97b01eae257e44aa9d5bade97baf&__oauthToken=72a2cf51aec2230b3d66d1223efd1ce88837f38f3c613d58ed4a6acb9f69b144

Description of the problem: Hi, I am trying to load an experiment developed locally in Psychopy 2022.2.4 to Pavlovia. When I click on piloting, the resources are downladed, but the experiment crashes immediately after, showing the following message.
Unfortunately we encountered the following error:

  • when setting the image of ImageStim: image
  • he argument: �PNG IHDR � �፩ IDATx���1 �0���a�Gb�o� ���>1�@��B�}b��c�� ��a!�>1�@��B�}b��c�� ��a!�>1�@��B�}b��c�� ��a!�>1�@��B�}b��c�� ��a!�>1�@��B�}b��c�� ��a!�>1�@��B�}b��c�� ��a!�>1�@��B�}b��c�� ��a!�>1�@��B�}b��c�� ��a!�>1�@��B�}b��c�� ��a!�>

Try to run the experiment again. If the error persists, contact the experiment designer.

I have no idea what the source of the problem is, and would appreciate any leads.

Do you have an image component called image?

It looks like you are setting it’s value to a png file rather than the filename of a png file.

You can’t, for example, use image as a variable name.

Capture
Capture1

Thank you for your response. I changed the file’s name in accordance with the do’s and the don’ts , and checked the properties of the image component. Yet, I keep getting the same error when I try to upload to pavlovia (the experiment works fine locally). Attached are screenshots of the console’s error message. Thank you.

Please could you show a screenshot of your image component?


Sure. Here it is.

Is stimuli_images a column in your spreadsheet?

Is it anything else?

Does your stimuli_images column in your spreadsheet contain embedded images, or image file names?

Yes, it is a column in the speadsheet. The column contains image names/path. Attached is a screenshot of the spreadsheet.

I’ve occasionally had issues with png files created by certain image packages. It might be worth trying to recreate them or converting to jpg.

.ogg sound files don’t work online, so I recommend .mp3 for that.

Thank you very much for the suggestions. I will try these options and get back.

I converted all the png images to jpg and all ogg files to mp3. The error persists (The argument is neither an image nor a video). It seems it’s mainly an image problem, but I cannot figure out what is going on exactly.

Does the error still mention PNG\r\n or does it now say something different?

Do you still get the error in an incognito tab? If yes, please could you upload a copy of your psyexp file?

**Tried on Incognito, exactly the same error **
FATAL 06:56:21.155 _GUI.dialog psychojs-2022.2.4.js:1257 | {“origin”:“ImageStim.setImage”,“context”:“when setting the image of ImageStim: visual_stim”,“error”:“the argument: �PNG\r\n\u001a\n\u0000\u0000\u0000\rIHDR\u0000\u0000\t�\u0000\u0000\f�\b\u0006\u0000\u0000\u0000\u0017፩\u0000\u0000 \u0000IDATx���1\u0001\u0000 \u0000�0���a�Gb�o�\u001d\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000 ��\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u001d�>\u0000\u0000\u00…} is neither an image nor a video" }”}

experiment.psyexp (35.2 KB)
stimuli.xlsx (14.3 KB)
Here is my spreadsheet and psychexp file. Thank you for following up with this.

The issue is that in your spreadsheet, many of the filenames have additional spaces in the cell after .jpg.

I’ve just done a search and replace in Excel and removed 200 spaces

stimuli.xlsx (13.8 KB)

It WORKED. I really cannot thank you enough for solving this issue.