Experiment does not load: Page Unresponsive

Hi @thomas_pronk & the psychopy/js community!

I am an issue in which I cannot seem to load one of my studies in pavlovia.

After clicking on the study’s link, a web page opens but it is unsuccessful in starting the experiment. It simply loads for a while and then a pop up tells me the page is unresponsive with choices to wait or quit.

I cannot inspect the page either in this case, so am not sure what could have gone wrong…
Any ideas?
The experiment in question s called ‘jsPsych_SimpleReactionTime’.
Although the experiment is quite large, it was working fine not long ago.

Let me know if you would need any other information!
Alexa

Hey again :). Could you share your repo with me? See this link to find out how. Searching for experiments on Pavlovia — PsychoPy v2021.2

Hi @thomas_pronk!
I just added you as a guest, you should have access now!

alexa

Could you make me developer or maintainer? Otherwise I can’t see the code

1 Like

done!

Hi @thomas_pronk!
Did you have a chance to look into my code? You should now have maintainer access.

Thanks in advance!
Alexa

Hey, sorry for the slow reply!

I ran the task and it froze indeed. Once my browser offered to stop it I did so and inspected the browser console. The console said it got stuck inside of your shuffle function. I guess something is happening there that is either extremely computationally intensive or makes the shuffle loop all the time.

What I’d recommend is adding copious amounts of console.log, so you can carefully track what’s happening. This tutorial can provide you some pointers on how to do that.