Problem in running experiment on Pavlovia

URL of experiment: https://run.pavlovia.org/CogPsyDoc/test/

Description of the problem:
This is my gitlab with the code: [https://gitlab.pavlovia.org/CogPsyDoc/test]

I have made an experiment in PsychoPy3 including Python codes and need to run it online.
However, I just can see white screen after run this experiment on Pavlovia.

I really wanna know what caused this problem, and I’d really appreciate it if you could help me solve it.

Please let me know if more information is needed!

Thank you in advanced.

Hi,
The link to your Gitlab doesn’t work, but the experiment link does work. From what I can see (the white screen), it looks like your resources aren’t loading correctly. I can’t tell you exactly why because I can’t see your code, but I’m guessing it may have something to do with the JS script not compiling correctly or you have something in the ‘Begin Experiment’ tab of a code component that it doesn’t like.

You can open the Inspector on your browser to see these errors. In Chrome, you can do this with Ctrl + Shift + I

Hope this helps!

Thank you for your kind reply

I changed the link so that you can check it.
I would appreciate it if you let me know if there is a problem with my code.

URL of experiment: https://run.pavlovia.org/CogPsyDoc/test
->not working now…
gitlab with the code: [https://gitlab.pavlovia.org/CogPsyDoc/test]

@Hugh the first problem I notice is that there is no html folder in your experiment and therefore no JS code. Therefore, there is nothing in your experiment folder that is able to be run online.

Did you manually create the Git repo or did you use the ‘Sync with web project’ button in Pavlovia? If you did the second, it should automatically create everything for you.

1 Like

Thanks again for your answer.
I uploaded it by syncing in Pavlovia.
But it’s still not working.
I’m sorry, but could you take a look again?

Thank you in advance for your review.

Hi @Hugh, sorry for the delayed reply. So far I haven’t been able to come up with anything definitive, but my first guess would be it has something to do with your initial instruction loop. If you delete this loop (and everything in it) and re-upload your experiment and try running again, does it work (or at least start)? If so, your problem lies within this loop.

1 Like

Hi Hugh,

I have made some edits to your files and an updated version of your project can be found here https://gitlab.pavlovia.org/lpxrh6/test-refresh

Edits:

  1. I removed the html folder since that is no longer needed (for reasons explained here See this post for more information.
  2. The code in your ‘code_set01’ code component from ‘before experiment’ to ‘begin experiment’ (this was not the cause of the error so feel free to move back if you need).
  3. in experiment settings I selected use version 2020.2.10 rather than 2020 (I think this was the cause of your original white screen error)
  4. Following the white screen issue, you had an ‘unknown resource’ error. I added resources you need manually in the experiment settings > online tab (see this page https://psychopy.org/online/fromBuilder.html for details on unknown resources error).

Hope this helps moving forwards,
Becca

1 Like