Hi @agnesnorbury, thanks for flagging, I was just about to respond. The changes brought in recently should have no effect on your project, because the rendering is happening outside of PsychoJS.
That said, it can be a little confusing how PsychoJS tries to blanket intercept all errors on page, which is the reason you see that code-2020.js traceback entry.
You can break out of that behaviour by monkey patching PsychoJS._captureErrors() as in the support fork for example:
/* Place at the top of scences/enterID.js to prevent PsychoJS from
taking over error tracing */
PsychoJS.prototype._captureErrors = () => {};
I have been unable so far to pick out the part that is causing the program to break, but it seems phaser related:
Thanks for getting back to me, and the tip about the error handling.
I’m struggling to work out what’s changed (the other version of my task is also broken in the same way: https://run.pavlovia.org/agnes.norbury/study-game-2/), but it may well be phaser related. If I work out a solution I’ll post it here.
@agnesnorbury if I remove all references to psychoJS and related imports including saveTrialData() the problem remains. Sorry Pavlovia is having trouble staging the support fork for some reason, x
Using your help, I’ve managed to track the source of the issue to a UI plugin I was loading directly from github in instructions.js: specifically, this.load.plugin('rexbbcodetextplugin', 'https://raw.githubusercontent.com/rexrainbow/phaser3-rex-notes/master/dist/rexbbcodetextplugin.min.js', true);
This makes sense as the source code for the plugins seems to have been recently updated for compatibility with phaser 3.5.0, which seems to have caused some backwards compatibility issues (here I am using phaser 3.23.0). I’ve tried both loading an older branch of the plugin, and removing the plugin completely: however for some reason I don’t quite understand the old version of the plugin still seems to be loaded as injected code when I try and launch the task (according to the browser debugger, the source for the injected code is source-server0.conn31.child3/source62). I will keep trying to figure this out but if you have any insight into how I might be able to prevent this from happening that would be super-helpful!
Thanks for flagging that and you are right that I am running into the same problem (sorry I was taking a week off so could’t reply early). May I ask how what’s the recent update on this issue? (based on the thread it’s from the plugin?)
Yes, the rex plugins (and associated functions) loaded directly from github are no longer compatible with phaser 3.23. You can either remove those plugins and functions (and use alternatives e.g. the rexUI.add.BBCodeText() function from the ui minified file for markdown-style text annotation), or upgrade your project to phaser 3.5.