Experiment data not saved on end screen, which is ended with key press -> Force end routine

I have an experiment heavily reliant on custom code. There is a goodbye screen for my experiment which essentially presents the final score for the participant and supposedly asks them to press SPACE to exit the experiment, which ends the routine. When I press SPACE, I get an error. Due to this data is also not saved. Data can only be saved when partial data collection is enabled and the participant presses ESC.


core-2020.1.js:1480 null
window.onerror @ core-2020.1.js:1480
log4javascript.min.js:1 FATAL unknown | null
BrowserConsoleAppender.append @ log4javascript.min.js:1
pluginTarget.js:23 Uncaught TypeError: this.plugins[t].destroy is not a function
    at e.t.destroyPlugins (pluginTarget.js:23)
    at e.destroy (WebGLRenderer.js:737)
    at Window.close (core-2020.1.js:606)
    at Scheduler.quitPsychoJS [as _currentTask] (lightnback.js:10966)
    at Scheduler._runNextTasks (util-2020.1.js:1093)
    at Scheduler._runNextTasks (util-2020.1.js:1096)
    at update (util-2020.1.js:1060)
jquery.min.js:3 Uncaught TypeError: m.push is not a function
    at Object.add (jquery.min.js:3)
    at HTMLDivElement.<anonymous> (jquery.min.js:3)
    at Function.each (jquery.min.js:2)
    at n.fn.init.each (jquery.min.js:2)
    at ja (jquery.min.js:3)
    at n.fn.init.on (jquery.min.js:3)
    at Function.<anonymous> (jquery-ui.min.js:6)
    at Function.each (jquery.min.js:2)
    at t.<computed>.<computed>._on (jquery-ui.min.js:6)
    at t.<computed>.<computed>._createWidget (jquery-ui.min.js:6)
core-2020.1.js:1480 null
window.onerror @ core-2020.1.js:1480
WebGLRenderer.js:395 Uncaught TypeError: Cannot set property 'projectionMatrix' of null
    at e.resize (WebGLRenderer.js:395)
    at Function._resizePixiRenderer (core-2020.1.js:755)
    at _resizeCallback (core-2020.1.js:740)
jquery-ui.min.js:11 Uncaught TypeError: Cannot read property 'data' of undefined
    at t.<computed>.<computed>._trackingInstances (jquery-ui.min.js:11)
    at t.<computed>.<computed>._trackingInstances (jquery-ui.min.js:6)
    at t.<computed>.<computed>._untrackInstance (jquery-ui.min.js:11)
    at t.<computed>.<computed>._untrackInstance (jquery-ui.min.js:6)
    at t.<computed>.<computed>._destroy (jquery-ui.min.js:10)
    at t.<computed>.<computed>._destroy (jquery-ui.min.js:6)
    at t.<computed>.<computed>.destroy (jquery-ui.min.js:6)
    at HTMLDivElement.<anonymous> (jquery-ui.min.js:6)
    at Function.each (jquery.min.js:2)
    at n.fn.init.each (jquery.min.js:2)
core-2020.1.js:1480 null
window.onerror @ core-2020.1.js:1480
WebGLRenderer.js:395 Uncaught TypeError: Cannot set property 'projectionMatrix' of null
    at e.resize (WebGLRenderer.js:395)
    at Function._resizePixiRenderer (core-2020.1.js:755)
    at _resizeCallback (core-2020.1.js:740)
e.resize @ WebGLRenderer.js:395
_resizePixiRenderer @ core-2020.1.js:755
_resizeCallback @ core-2020.1.js:740
jquery-ui.min.js:11 Uncaught TypeError: Cannot read property 'data' of undefined
    at t.<computed>.<computed>._trackingInstances (jquery-ui.min.js:11)
    at t.<computed>.<computed>._trackingInstances (jquery-ui.min.js:6)
    at t.<computed>.<computed>._untrackInstance (jquery-ui.min.js:11)
    at t.<computed>.<computed>._untrackInstance (jquery-ui.min.js:6)
    at t.<computed>.<computed>._destroy (jquery-ui.min.js:10)
    at t.<computed>.<computed>._destroy (jquery-ui.min.js:6)
    at t.<computed>.<computed>.destroy (jquery-ui.min.js:6)
    at HTMLDivElement.<anonymous> (jquery-ui.min.js:6)
    at Function.each (jquery.min.js:2)
    at n.fn.init.each (jquery.min.js:2)
_trackingInstances @ jquery-ui.min.js:11
(anonymous) @ jquery-ui.min.js:6
_untrackInstance @ jquery-ui.min.js:11
(anonymous) @ jquery-ui.min.js:6
_destroy @ jquery-ui.min.js:10
(anonymous) @ jquery-ui.min.js:6
destroy @ jquery-ui.min.js:6
(anonymous) @ jquery-ui.min.js:6
each @ jquery.min.js:2
each @ jquery.min.js:2
t.fn.<computed> @ jquery-ui.min.js:6
dialog @ core-2020.1.js:951
window.onerror @ core-2020.1.js:1481
core-2020.1.js:1480 null
window.onerror @ core-2020.1.js:1480

Do you have String.prototype.upper = ““.toUpperCase; in code_JS in code_JS?

If so, please delete it and translate .upper manually.

1 Like

Thank you.