Description of the problem: I only have a bit of code in this experiment, so I am a bit confused as to why this is not working as I have used this psychopy task in previous experiments but now it gives an error. Did anything change with JS?
The only bit of code is this one:
pressed_key = Guess_inclusion.keys[0]
if pressed_key == ‘z’:
x = -0.650
elif pressed_key == ‘x’:
x = -0.215
elif pressed_key == ‘n’:
x = 0.215
elif pressed_key == ‘m’:
x = 0.650
Used another computer and it works in this one. I am not sure why that would be given that I am using google chrome in both. I had this problem before, where this experiment did not work for some people. Could someone let me know what is the problem?
I am using Chrome’s Version 87.0.4280.88 on both.
Thank you
Hi @cat500, sounds like a WebGL incompatibility error. Is the support fork running as expected on your browser? Would it be possible to give me developer access so I can create a merge request to bring the relevant edit into your project? Here to help, s.
Hi @cat500, just to mention that I am currently having the same issue. I have an experiment running which works fine on my own PC, but one participant is reporting the same ‘Unspecified JavaScript error’.
@sotiri, yes, the support fork works normally on the computer where it wasn’t working before. How can I give you developer access? Is there anything I can do to prevent this from happening?
Hi @sotiri, sorry for my late answer, but here it is: https://gitlab.pavlovia.org/katrivdn/prim_sec_affect_study1 (hopefully you can access it!). I just asked the participant to try it on another browser, and she didn’t reply to me back; so I don’t know whether this worked. I also just saw that 2 credits were consumed, so the experiment had to be able to run at least on some PCs. I myself didn’t encounter any problem when doing some piloting, and it previously worked well. Thanks for your help!
Thank you for this ticket! I had the same problem, it worked on my PC but unspecified error on laptop. On my colleage’s PC it worked, too…it happened after I updated PsychoPy…
OK I gave you developer access to the support fork and you should be able to browse the repository now. The problem is that on some browsers on some computers the WebGL-only rendering that PsychoJS relies on by default is unavailable.
The fix is to manually edit ‘index.html’ to bring in the ‘pixi.js-legacy’ package. In particular, one needs to replace line 21 to read:
Yes exactly, copy the support fork ‘index.html’ into your project and re-sync, but again like you say make sure to keep the correct ‘index.html’ in place if you make changes in PsychoPy, x
@sotiri hi, I know this is an old thread. But I am having the same issue and just came across this thread. My experiment URL is socialanxietydiss [PsychoPy]