So, with a newly written experiment script failing to run online (I’ve successfully, and currently, run another earlier one on Pav, ta), I’ve written a dummy task that loops over 5 trials and that restricts responding to the “c” and “m” keys, and that specifies “c” as correct, and “m” as incorrect. Although version 2021.1.0, in which this task was originally written, could not handle correct versus incorrect responses (Correct response variable not recognised for new experiment with new version: 'key_resp.corr' always FALSE - #15 by TParsons), version 2021,1.1 neatly respected correct answers (thanks), but even 2021.1.2 does not, it seems, permit the same basic task to be run online. There are no resource files here–condition files, audio files, etc.–that need to be addressed, but still it fails. The errors remark about contacting the “experiment designer” (me) for explanation, but that would draw a blank. So please let me ask: What’s the argument that should be length = 3 in this task? I ask this strange question because:
URL of experiment: Pavlovia
Description of the problem: The popup explanation, via the browser, is that:
"Unfortunately we encountered the following error:
-
the argument should be an array of numbers of length 3
Try to run the experiment again. If the error persists, contact the experiment designer."
The same error message has been commented on before (Pavlovia: Argument should be an array of numbers of length 3).
But the replies suggest that problem was related to configuring a conditions file. But there are no conditions files at all, in this dummy experiment that produces this error.
The errors in the debug window are:
Global.ts:72 * Tone.js v14.7.61 *
audio-context-constructor.js:9 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
(anonymous) @ audio-context-constructor.js:9
test-audio-node-disconnect-method-support.js:30 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
(anonymous) @ test-audio-node-disconnect-method-support.js:30
test-audio-scheduled-source-node-start-method-negative-parameters-support.js:4 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
re @ test-audio-scheduled-source-node-start-method-negative-parameters-support.js:4
constant-source-node-constructor.js:42 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
start @ constant-source-node-constructor.js:42
log4javascript.min.js:1 INFO unknown | [PsychoJS] Detected browser: Chrome
log4javascript.min.js:1 INFO unknown | [PsychoJS] Initialised.
log4javascript.min.js:1 INFO unknown | [PsychoJS] @version 2021.1.2
core-2021.1.2.js:1924 the argument should be an array of numbers of length 3
window.onerror @ core-2021.1.2.js:1924
error (async)
_captureErrors @ core-2021.1.2.js:1922
PsychoJS @ core-2021.1.2.js:1604
(anonymous) @ dummy_1.js:17
log4javascript.min.js:1 FATAL unknown | the argument should be an array of numbers of length 3
BrowserConsoleAppender.append @ log4javascript.min.js:1
error (async)
_captureErrors @ core-2021.1.2.js:1922
PsychoJS @ core-2021.1.2.js:1604
(anonymous) @ dummy_1.js:17
/favicon.ico:1 Failed to load resource: the server responded with a status of 404 ()
I’ve lately changed the “number of reps” arg in the loops dialog to 5, hard-coded, instead of giving it “nTrials” = 5 as a variable, but still it fails, in the same way, with the same error messages.
Finally, please let me ask if we should still expect a “lib” directory of all the wonderful .js files to be created, in our local experiment directory, when creating/syncing? (It isn’t)