Dear all,
I am in the process of porting my experiment to Pavlovia. As expected, it does not work right out of the box So I decided to build my experiment anew from the bottom up and to check if the “easy” things might work.
So, I have created a single routine where I simply want to present the consent sheet (and some additional stuff as well). The consent sheet is a png file which I present in an image component.
When I start the experiment, I can very briefly see the consent image but instead of waiting for the right key press, the experiment terminates immediately and a window pops up that allows me to download the “data” of this very short session. I suspect that specifying “$consent_key.status==FINISHED” in the Basic tab of the image component does is not translated properly to JS, right? How can I fix this?
Also, I am getting lots of warnings of this sort:
“WebGL context was lost.”
“setting the mask of… with argument: undefined” and
“setting the value of attribute… as undefined”
However, I tried manually specifying the arguments that JS complained were “undefined” and I can see those changes in the *.js file in my repo but JS somehow does not recognize this, it seems.
- Why does my experiment terminate right after the beginning?
- Could the “undefined” warnings have something to do with this?
- How can I change the “undefined” arguments to something that JS will not complain about?
My problem is somewhat similar to what has been described here Unable to run experiment on pavlovia - "Warning setting value of attribute"
… and I am aware of the crib sheet PsychoPy Python to Javascript crib sheet 2021 - Google Docs
What could be the problem?
Cheers,
Michael