I’d like to build an online study, but before uploading the whole thing, I wanted to test the functions first that I need to run it properly. So I build a simple “study” containing most of my functions (written in Python & JS code), a text screen that just displays a word stored in variable “test” and then a line where the variable “test” is assigned a value by using one of the functions.
So far, I could make everything work, but currently every time I try to run the study on Pavlovia (in piloting mode), it gets stuck right at the start when the info dialogue box is displayed, and my dev tools disconnect so I can’t see why it crashes. I also get an error code 5 after a few seconds, but I’m connected to the Internet and Pavlovia is also responding when I’m pinging it.
There’s JS code for everything (so that’s not the issue) and from just looking at my code, I’d say everything should be fine. Does anyone know why this happens and how I can fix it?
You can find out more information about the error by right clicking anywhere on the screen when the screen is stuck, which will open the console. Then, at the top of the window that will pop up, click on ‘Console’ which will display any error messages and point you in the right direction.
You can find our documentation on online troubleshooting here, and it is always worth bookmarking @wakecarter’s amazing crib sheet
thanks for your hints!
I already did that, but the console doesn’t display any errors because the developer tools completely disconnect. I also already checked both crib sheets but I still don’t find the error.
I suspect this has something to do with the PsychoPy version I’m using - I had to download v2021.2.3 because the current version isn’t compatible with my OS (I have an old computer & can’t update to the newest OS). I just don’t get why it isn’t working if my JS code looks okayish (at least to me).
If you have any other ideas on how to troubleshoot this, let me know!
Please can you change the study to running, add a few credits and post the run link? Then someone else could check the console on their computer. (Probably not me because I’m mostly on my phone while on holiday )
The whole thing works btw if I don’t use the range or the repeat function I defined in JS_packages and prep_functions, so I guess they are causing the problem (the repeat function is also calling range btw) - I just don’t get why.
Thanks for providing the link to your study - @wakecarter I’ve tried running it from a couple of my devices and I can’t access the dev console either. When OK is pressed the screen enters full screen mode, the GUI stays on screen, there’s a brief pause there and then for me the overall Google ‘something’s gone wrong’ screen appears.