# Pavlovia Black Screen No Error Message After Initialization on version 2020.2.5 but not 2020.2.4

**URL:** <https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697>\
**Category:** Online experiments\
**Created:** [October 31, 2020, 12:01pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697 "2020-10-31T12:01:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkempner](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/rkempner/32/13432_2.png) [@rkempner](https://discourse.psychopy.org/u/rkempner)\
**Post date:** [October 31, 2020, 12:01pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/1 "2020-10-31T12:01:14Z")

</div>

My experiment works fine when compiling the javascript code and uploading to pavlovia with version 2020.2.4, but with 2020.2.5 my screen goes black after inputing participant id without any error message in the console.

Any ideas?

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [November 2, 2020, 5:41pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/2 "2020-11-02T17:41:06Z")

</div>

Hey again,  
Could you share your gitlab repo with me? Then I can take a look. I’m tpronk

---

<div class="post-metadata">

**Author:** ![rkempner](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/rkempner/32/13432_2.png) [@rkempner](https://discourse.psychopy.org/u/rkempner)\
**Post date:** [November 3, 2020, 4:39pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/3 "2020-11-03T16:39:34Z")

</div>

Thanks!

I will share two versions of the experiment. One repo will be clearly marked with the tag “NEW\_PSYCHOPY” denoting that 2020.2.5 is used and 2020.2.4 on the other repo I share with you.

I think the difference is in how the javascript is converted.

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [November 3, 2020, 7:10pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/4 "2020-11-03T19:10:34Z")

</div>

Tagging @sotiri to think along. Could you give him access as well?

---

<div class="post-metadata">

**Author:** ![rkempner](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/rkempner/32/13432_2.png) [@rkempner](https://discourse.psychopy.org/u/rkempner)\
**Post date:** [November 3, 2020, 8:03pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/5 "2020-11-03T20:03:09Z")

</div>

Yes, added. Thanks! @sotiri @thomas_pronk

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [November 3, 2020, 8:43pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/6 "2020-11-03T20:43:43Z")

</div>

@rkempner OK thanks for giving me access, on it, s.

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [November 3, 2020, 10:08pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/7 "2020-11-03T22:08:05Z")

</div>

Sorry @rkempner, could you make it developer access? The code is hidden from me as guest. Also, is this the 2020.2.4 repo? Thanks, x

---

<div class="post-metadata">

**Author:** ![rkempner](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/rkempner/32/13432_2.png) [@rkempner](https://discourse.psychopy.org/u/rkempner)\
**Post date:** [November 3, 2020, 10:19pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/8 "2020-11-03T22:19:19Z")

</div>

Gave developer access, sorry about that.

The experiment is still in a testing phase, so there are some quirks I must tell you about it in order for it to run.

When asked for participant id, you must insert the digit 1 or the program will not work.

I shared two repositories with you, “pilot2\_testing.” and “pilot\_NEW\_PSYCHOPY.”

The 2020.2.4 version which works for me is under the repo, “pilot2\_testing.”

The 2020.2.5 version which does not work is under the repo “pilot\_NEW\_PSYCHOPY.” Importantly, I deleted the line, ` const { round } = util` , which 2020.2.5 generated since that interferes with a function I made in a code snippet called round. That deletion of the `const { round } = util` line is the only difference I made between these two versions.

In “pilot2\_testing”, things work out as intended, but in “pilot\_NEW\_PSYCHOPY”, my screen is staying black with no error messages in console.

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [November 4, 2020, 4:34am UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/9 "2020-11-04T04:34:12Z")

</div>

Alright, clear, I was able to reproduce the problem, many thanks for your patience while I look for the culprit, x

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [November 6, 2020, 6:08pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/10 "2020-11-06T18:08:02Z")

</div>

Hey @rkempner, quite possibly there is an issue with the 2020.2.5 generated boilerplate when it comes to checking whether a component has requested a forced routine end.

I created [a develop branch and commented out a few of those checks](https://gitlab.pavlovia.org/rosskempner/pilot_new_psychopy/blob/develop/html/monsters_pilot.js#L1564) to demonstrate a temporary fix. However, it would be really helpful if you sent over your .psyexp for us to determine exactly what the problem is and to have it addressed as part of our next release.

Also, PsychoPy now relies on PixiJS latest, but the PsychoJS post upgrade tweaks have yet to reach Pavlovia’s servers. That should be fairly soon, but I added those in anyway so you don’t have to wait.

If you would rather not post your .psyexp on the forum, my email is [sotiri@opensciencetools.org](mailto:sotiri@opensciencetools.org)

Please let me know if you need more details, thanks, s.

---

<div class="post-metadata">

**Author:** ![rkempner](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/rkempner/32/13432_2.png) [@rkempner](https://discourse.psychopy.org/u/rkempner)\
**Post date:** [November 9, 2020, 11:21pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/11 "2020-11-09T23:21:36Z")

</div>

Hey @sotiri, thanks for checking this out.

I see now that the RoutineBegin functions mistakenly had that if (!continueRoutine) {} with the 2020.2.5 version. Some notes on that: that if statement was generated and not something I put in a code snippet. Also: the builder may have been confused by the fact that in all my BeginRoutine tabs I run one of “continueRoutine = True” or “continueRoutine = False.” When you see my .psyexp you will have a clearer idea of what I mean, but that vague description may help you see why my code triggered this anomaly. In every single RoutineEachFrame function, I comment out the line " let continueRoutine = true; // until we’re told otherwise" before I upload my JS code to pavlovia because I am controlling the continueRoutine in the BeginRoutine tab. Please let me know if you need more details there, and look out for my .psyexp coming to your email.

Re: “That should be fairly soon, but I added those in anyway so you don’t have to wait.” Is that what that change to the imports is all about? I was confused about the change of imports.

Thanks again for helping out!

-Ross

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [November 10, 2020, 8:44am UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/12 "2020-11-10T08:44:23Z")

</div>

Hey Ross, no problem, OK that explains it some, on standby for the .psyexp. Yes about the imports, if you can live with those for the time being, I will be making sure to let you know when a permanent fix is in place, thanks 😊

---

<div class="post-metadata">

**Author:** ![rkempner](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/rkempner/32/13432_2.png) [@rkempner](https://discourse.psychopy.org/u/rkempner)\
**Post date:** [November 10, 2020, 9:46pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/13 "2020-11-10T21:46:25Z")

</div>

great – thanks!

---

<div class="post-metadata">

**Author:** ![rkempner](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/rkempner/32/13432_2.png) [@rkempner](https://discourse.psychopy.org/u/rkempner)\
**Post date:** [November 20, 2020, 8:11pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/14 "2020-11-20T20:11:07Z")

</div>

Hi @sotiri

Did you get everything you need for this?

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [November 20, 2020, 8:43pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/15 "2020-11-20T20:43:57Z")

</div>

Hey @rkempner, yes I brought it up on one of our standups this week again. One of our python developers is on it, but to speed things up a little, if at all possible, would a .psyexp cut down to the essential bits be asking too much? Many thanks for your patience, x

---

<div class="post-metadata">

**Author:** ![rkempner](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/rkempner/32/13432_2.png) [@rkempner](https://discourse.psychopy.org/u/rkempner)\
**Post date:** [November 20, 2020, 8:48pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/16 "2020-11-20T20:48:29Z")

</div>

Hi @sotiri, could you clarify what is non-essential?

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [November 20, 2020, 8:58pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/17 "2020-11-20T20:58:21Z")

</div>

Yes @rkempner I meant maybe having just a single ~~trial~~ routine to demonstrate what the problem is? Is that possible? Only asking, thank you, x

---

<div class="post-metadata">

**Author:** ![rkempner](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/rkempner/32/13432_2.png) [@rkempner](https://discourse.psychopy.org/u/rkempner)\
**Post date:** [November 21, 2020, 1:17am UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/18 "2020-11-21T01:17:53Z")

</div>

So the idea would be to eliminate parts of the program until I arrive at the smallest form of it in which the error remains?

I’m confused by the procedure you had in mind here, since it is unclear where the problem is. Could you elaborate some more please?

---

<div class="post-metadata">

**Author:** ![sotiri](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sotiri](https://discourse.psychopy.org/u/sotiri)\
**Post date:** [November 21, 2020, 4:31am UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/19 "2020-11-21T04:31:59Z")

</div>

No problem, because the repository is gone, I can no longer link to the relevant bits. Those checks around whether a component has requested a forced routine end? Along the lines of `continueRoutine = false`? x

---

<div class="post-metadata">

**Author:** ![rkempner](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/rkempner/32/13432_2.png) [@rkempner](https://discourse.psychopy.org/u/rkempner)\
**Post date:** [November 21, 2020, 6:11pm UTC](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697/20 "2020-11-21T18:11:52Z")

</div>

I will add you again to the repositories sorry about that!

Maybe after I re-add you then you could let me know about the relevant bits? I’m having a hard time following you about what I should delete.

[Next page](https://discourse.psychopy.org/t/pavlovia-black-screen-no-error-message-after-initialization-on-version-2020-2-5-but-not-2020-2-4/17697.md?page=2)
