OS (e.g. Win10): Windows 11
PsychoPy version (e.g. 2024.2.4 Py 3.8): PsychoPy 2026.1.0
Standard Standalone Installation? (y/n) If not then what?: Yes, standard standalone installation (as far as I know).
URL of experiment:
Do you want it to also run locally? (y/n): Yes.
What are you trying to achieve?:
I want to run a PsychoPy experiment online through Pavlovia and recruit participants via Prolific. My original experiment contains 16 trials, with video stimuli showing different emotions. Each trial randomly presents either the left or right version of a video.
However, I also created a completely new, minimal experiment without any videos to determine whether the issue was related to my stimuli. I still encountered problems, so I suspect that the issue may not be specific to video playback.
What did you try to make it work?:
-
Tried syncing the experiment with Pavlovia multiple times.
-
Checked that the Pavlovia repository is accessible and contains the experiment files.
-
Created a new, simple experiment without videos to test whether the original experiment’s complexity was causing the problem.
-
Tried running the experiment in the browser using Pilot in Browser.
-
Investigated the JavaScript code generated by PsychoPy and the Code components.
-
Encountered errors in the JavaScript tabs after using Python code in Code components with automatic translation enabled.
I have not yet established whether all synchronization attempts actually succeed.
Link to the most relevant existing thread you have found:
-
Exact
wxBufferedDC::UnMask()error: Error when exporting to HTML to post to Pavlovia -
Related synchronization issue: Issue syncing with Pavlovia
What specifically went wrong when you tried that?:
I have encountered several different errors during testing.
1. Synchronization error
When syncing with Pavlovia, I sometimes get this traceback:
wx._core.wxAssertionError: C++ assertion "m_buffer && m_buffer->IsOk()" failed at ..\..\src\common\dcbufcmn.cpp(149) in wxBufferedDC::UnMask(): invalid backing store
I do not know whether the synchronization fails completely or whether this error is related to PsychoPy’s graphical interface.
2. JavaScript syntax errors
I have also received alerts such as:
JavaScript Syntax Error in 'Begin JS Experiment' tab.
Line 1: Unexpected token
Similar errors occurred in the Before JS Experiment and Begin JS Routine tabs. Some of my Code components contain Python-specific imports, and I discovered that the automatically generated JavaScript was invalid.
3. Local browser test
When trying to run Pilot in Browser, Chrome sometimes displays:
ERR_EMPTY_RESPONSE
at localhost:12002/?_pilotToken=local.
4. Online video playback
In the original experiment, the online version also produced:
ReferenceError: video_file is not defined
The most confusing part is that a separate, simple experiment without videos also encounters problems. I therefore do not know whether these errors share a common cause or whether I am dealing with multiple independent issues.
How should I systematically diagnose these problems? In particular, how can I determine whether the wxBufferedDC error prevents synchronization, and how should I troubleshoot the JavaScript and local browser errors?
Thank you for your help!