# Can't progress to next routine in online study

**URL:** <https://discourse.psychopy.org/t/cant-progress-to-next-routine-in-online-study/14335>\
**Category:** Online experiments\
**Created:** [June 17, 2020, 1:58pm UTC](https://discourse.psychopy.org/t/cant-progress-to-next-routine-in-online-study/14335 "2020-06-17T13:58:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jemmasedgmond](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@jemmasedgmond](https://discourse.psychopy.org/u/jemmasedgmond)\
**Post date:** [June 17, 2020, 1:58pm UTC](https://discourse.psychopy.org/t/cant-progress-to-next-routine-in-online-study/14335/1 "2020-06-17T13:58:05Z")

</div>

URL of experiment: [https://run.pavlovia.org/jemmasedgmond/ch5\_online/html/](https://run.pavlovia.org/jemmasedgmond/ch5_online/html/)

Description of the problem: My experiment seems to be freezing at different time points.

Initially I was able to get halfway through the 9th routine before the experiment froze.  
After making some unrelated changes to a slider earlier on in the flow, I was then unable to get past the 4th routine (the spacebar to continue did nothing).  
And now after finalising the changes to the slider, I’m unable to get past the 2nd routine.

I’m not receiving any errors so I’m struggling to understand what’s causing these crashes.

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [June 18, 2020, 10:37am UTC](https://discourse.psychopy.org/t/cant-progress-to-next-routine-in-online-study/14335/2 "2020-06-18T10:37:55Z")

</div>

The error in your second routine is this:

` thisKey = Continue_Ex.getKeys({keyList: [], waitRelease: false});`

I haven’t yet got the new keyboard class working online for me.

> **[PsychoPy Python to Javascript crib sheet](https://docs.google.com/document/d/13jp0QAqQeFlYSjeZS0fDInvgaDzBXjGQNe4VNKbbNHQ/edit?usp=sharing)**
>
> PsychoPy version 2020.1.3Python to JavaScript Crib Sheet Compiled by Wakefield Morys-Carter, Oxford Brookes UniversityPlease retweet Psych\_Stats. PsychoPy 2020 has an automatic Python to Javascript translation tool. This document contains...

---

<div class="post-metadata">

**Author:** ![jemmasedgmond](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@jemmasedgmond](https://discourse.psychopy.org/u/jemmasedgmond)\
**Post date:** [June 18, 2020, 11:04am UTC](https://discourse.psychopy.org/t/cant-progress-to-next-routine-in-online-study/14335/3 "2020-06-18T11:04:19Z")

</div>

Thanks @wakecarter  
I added that code in three of my routines as I wanted to make sure participants couldn’t progress without making a response but I’ve temporarily removed it from all routines.

However the experiment still freezes halfway through the first of 4 experimental blocks.  
In your experience is this likely to be due to a code component? As the only other code components I have are right at the end of the study.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [June 18, 2020, 11:46am UTC](https://discourse.psychopy.org/t/cant-progress-to-next-routine-in-online-study/14335/4 "2020-06-18T11:46:20Z")

</div>

In my experience, five things cause problems:

Resources (movies, images, sounds) which are either too big, can’t be found or aren’t in the html/resources folder.

Components which don’t work online, such as voice keys, forms and rating scales.

Memory leakage errors due to objects being updated every frame.

Code translation errors.

Code being entering into component parameters (where it doesn’t get translated).

---

<div class="post-metadata">

**Author:** ![jemmasedgmond](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@jemmasedgmond](https://discourse.psychopy.org/u/jemmasedgmond)\
**Post date:** [June 19, 2020, 9:07am UTC](https://discourse.psychopy.org/t/cant-progress-to-next-routine-in-online-study/14335/5 "2020-06-19T09:07:43Z")

</div>

All fixed, thank you!
