-
I've recently programmed a cognition.run experiment and subjects get stuck on a screen that says "sending data to the experimenter..." (see attached screenshot). This was never an issue when I ran very similar studies on the platform, it used to just be a blank white screen. Any idea what could be going on here? (also I don't seem to be able to download individual csv files for unifinished runs, it says "oops page not found! when I try to do that. I assume it's unrelated? but just another recent issue that I never had before). Thanks for any and all ideas/help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I wonder if this is related to the recent 7.0 update that @javidalpe made. I think we'll need his guidance here. |
Beta Was this translation helpful? Give feedback.
-
Oppps! Thank you for reporting this @MTuttle6. This was a cognition issue. It should be fixed now. It was a stupid one. I forgot to remove the message "Sending data..." once the data was sent to the server 🤦 . The impression was the user was stuck there, unable to close the window. I didn't notice this because I always use the on_finish callback to redirect the browser or show a message. BTW, this message was an idea from @jodeleeuw 👏 |
Beta Was this translation helpful? Give feedback.
-
Hi folks! Today, I get exactly the message as MTuttle6 describes when running an experiment that run perfectly last week Friday. I need fast help here, as I need data coming in today. My code on cognition.run is pasted below. The problem lies in variable conclusion which should show participants a conclusion screen and provide a link to Prolific. But it never shows!!! Instead, I get the message like MTuttle6 has reported and the screen stays white. Thank you so much for your help!!! //------------------------------------------------------------------- randomize = true // present different set sizes in random order. if false, set sizes will be presented in ascending order // randomly choose a list: 1 or 2 var conceptual_stimuli var possibleLetters = ["F","H","J","K","L","N","P","Q","R","S","T","V"] var nSets = setSizes.length } test_setSizes = test_setSizes.flat(1) //test_setSizes = [2, 2] var sumDemoTrials = 0 var setSizesFullDemo = decisionDemo_setSizes.concat(letterDemo_setSizes) var sum = 0; var decisionDemo_stimuli = jsPsych.randomization.sampleWithoutReplacement(practice_stimuli, 5) var sum = 0; var decisionTest_stimuli = jsPsych.randomization.sampleWithoutReplacement(conceptual_stimuli, sum) // The new variable with the resampled order of my conceptual decision target stimuli, adjusted to the selected set sizes var lingtrials = decisionDemo_stimuli.concat(fullDemo_stimuli, decisionTest_stimuli) // Combine the three types of trials into one array var letterTrial = 0 //keeps track of number of letter trials gone by var selection=[] var trialArrays = []
} // Define the instructions var welcome = { Vajuta klaviatuuril ükskõik, mis klahvi selleks, et jätkata. ,choices: ['Weiter >'], }; var instructions = { type: "html-button-response", stimulus: <p> In diesem Experiment lösen Sie einfache Aufgaben und erinnern sich gleichzeitig an Buchstaben, die Sie zwischendurch auf dem Bildschirm sehen. Nachdem Sie zwei bis fünf Buchstaben gesehen haben, müssen Sie anklicken, welche Buchstaben Sie in welcher Reihenfolge gesehen haben. <b>Sie müssen sich also die Buchstaben und die Reihenfolge, in der diese erscheinen, merken.</b></p <p>Der Test besteht aus zwei Teilen. In beiden Teilen sollen Sie auf die Buchstaben achten, die auf dem Bildschirm erscheinen und sich diese merken. Gleichzeitig müssen Sie sprachliche oder mathematische Aufgaben lösen. Im ersten Teil des Experiments werden Sie gefragt, ob sich mit einem gezeigten Nomen und einem Verb ein Satz bilden lässt. Im zweiten Teil des Experiments müssen Sie bewerten, ob die Lösung der Matheaufgabe korrekt ist. Zu Beginn jedes Teils werden Sie Beispiele für die Aufgaben bearbeiten und eine Übungsphase durchlaufen können.</p> , choices: ['Weiter >'], //hinnata lausete (esimene plokk) või nimisõna ja tegusõna paaride (teine plokk) õigsust/sobivust //post_trial_gap: 2000 //Teises plokis palutakse Sul hinnata lausete õigsust. }; var letterdemo_instruction ={ type: "instructions", pages: [ <p><span style = "font-size:28px"> Mäluülesanne </span></p> <p>Ekraanile ilmuvad ühe kaupa kaks kuni viis tähte. Püüa meelde jätta iga täht selle ilmumise järjekorras. Iga täht püsib ekraanil poolteist sekundit ning uus täht ilmub ekraanile automaatselt.</p> <p>Järjestikku võivad ekraanile ilmuda kaks kuni viis tähte, nt <b>P J Q L</b>. Pärast tähejada näed ekraanil täheklahvistikku 12 erineva tähega. Sinu ülesandeks on märkida, milliseid tähti ja mis järjekorras sa nägid. <b> Vastamiseks klikka tähtedel tähtede ilmumise järjekorras. </b></p> <p>Kui teed vea, saad valitud tähe kustutada nupu 'Kustuta' abil. Pea meeles, et õige vastus sisaldab tähti nende ilmumise järjekorras. Kui juhtub, et mõni täht ununeb ära, siis klikka sellel tähel, mis sa arvad, et võis sellel kohal olla ja vali ülejäänud tähed õiges järjekorras. Tähtede sisestamiseks võid endale aega võtta nii palju kui vaja.</p> , Tähelepanu! Kui klikid 'Edasi' algab mäluülesanne ja ilmuvad tähed, mis tuleb meelde jätta. ] // Press "Next" for practice trials.
}; Press "Next" for practice trials.
// Functions '+num1+operation+num2+' = '+ans+' '}; var prepare_prac_trial_type=function(trialArray, type){ var trial_variables = [] for(var i = 0; i < trialArray.length; i++){ var ld_var={...trialArray[i]} ld_var.prac_trial_type=type trial_variables.push(ld_var) } return trial_variables } // If the start condition is true,
} '+ selection[letterTrial] +' '}, choices: jsPsych.NO_KEYS, trial_duration: 800, on_finish: function(){ letterTrial += 1 item_type = jsPsych.timelineVariable('itemtype'); prac_trial_type = jsPsych.timelineVariable('prac_trial_type'); condition = jsPsych.timelineVariable('condition'); itemID = jsPsych.timelineVariable('itemID'); item = jsPsych.timelineVariable('item'); list = CONDITION block = loadType
}; ' + jsPsych.timelineVariable('N1') + ' + ' + jsPsych.timelineVariable('verb') + " = OK? "wordpairs[1] = ' ' + jsPsych.timelineVariable('N2') + " + " + jsPsych.timelineVariable('verb') + " = OK? "wordpairs[2] = ' ' + jsPsych.timelineVariable('N3') + " + " + jsPsych.timelineVariable('verb') + " = OK? "var wordpairs_resampled = jsPsych.randomization.sampleWithoutReplacement(wordpairs, 3) var string = "" for(var i = 0; i < wordpairs_resampled.length; i++){ string += wordpairs_resampled[i]
var showMathtask_demo = { Ist die Gleichung korrekt? ",choices: ["Ja", "Nein"], on_finish: function(){ var acc = jsPsych.data.get().last(1).values()[0].accuracy; if (acc==1){ nLoadAcc+=1 } } }; var showMathtask_test = { type: 'html-button-operationspan', equation_accuracy: function(){ eqCorrect = jsPsych.randomization.sampleWithReplacement([true, false], 1)[0] return eqCorrect }, stimulus: function(){ return function_opLoad(eqCorrect) }, data: function(){ return { task: 'mathLoad', trialtype: 'load', item_type: jsPsych.timelineVariable('itemtype'), prac_trial_type: jsPsych.timelineVariable('prac_trial_type'), block: loadType } }, trial_duration:6000, prompt: " Ist die Gleichung korrekt? ",choices: ["Ja", "Nein"], on_finish: function(){ var acc = jsPsych.data.get().last(1).values()[0].accuracy; if (acc==1){ nLoadAcc+=1 } } }; var recall = { type: 'operation-span-recall', choices: ['Kustuta', 'Edasi'], correct_order: function(){ return selection }, data: function(){ return { set_size: selection.length, task: 'recall', item_type: item_type, prac_trial_type: prac_trial_type, condition: condition, itemID : itemID, item: item, list: list, block: block } }, on_finish: function(){ nLetters = selection.length nLettersRecalled = jsPsych.data.get().last(1).values()[0].accuracy; //console.log("samplesize: ", nLetters) //console.log("lettersSelected: ", selection) } }; //************************************************************* // // FIRST EXPERIMENTAL BLOCK // //------------------------------------------------------------- var timeline = []; var practice_successful = false; var practice_count = 0; var letterdemo_pracSuccess = false; var conceptualdemo_pracSuccess = false; var conceptualFulldemo_pracSuccess = false; var mathdemo_pracSuccess = false; var mathFulldemo_pracSuccess = false; timeline.push(welcome, instructions) letter_demoproc_tl = [] for(var i = decisionDemo_setSizes.length; i < setSizesFullDemo.length; i++){
} var letterdemo_check = {
} letter_demoproc_tl.push(letterdemo_check, message_repeatPractice_demo) letter_demoproc_node = { timeline.push(letter_demoproc_node) var nConceptualDecinAcc = 0 for(var i = 0; i < decisionDemo_setSizes.length; i++){ }
}; conceptualLoad_demoproc_tl.push(conceptualdemo_check, message_repeatPractice_demo) var conceptual_demoproc_success = { conceptualLoad_fullDemo_proc_tl = [conceptualLoad_fullDemo_instruction]; for(var i = decisionDemo_setSizes.length; i < setSizesFullDemo.length; i++){
var conceptualLoad_fullDemo_check = {
}; conceptualLoad_fullDemo_proc_tl.push(conceptualLoad_fullDemo_check, message_repeatPractice_fullDemo)
} conceptualLoad_fullDemo_proc_node = {
}; var conceptualLoad_demoproc_success = { var memtest_conceptualLoad_proc = [warning_firstblock]; for(var i = setSizesFullDemo.length; i < trialArrays.length; i++){
} timeline.push(memtest_conceptualLoad_if) //************************************************************* var nCogLoadDemo = 0 var mathLoad_demoproc_tl = [mathLoad_instruction] for(var i = 0; i < decisionDemo_setSizes.length; i++){
}; mathLoad_demoproc_tl.push(mathLoad_demoproc_check, message_repeatPractice_demo) mathLoad_demoproc_node = {
}; var mathLoad_fullDemo_proc_tl = [mathLoad_fullDemo_instruction] for(var i = decisionDemo_setSizes.length; i < setSizesFullDemo.length; i++){
}
} var memtest_mathLoad_proc = [warning_secondblock];
}; var terminate_experiment = { // timeline.push(conclusion) jsPsych.init({ |
Beta Was this translation helpful? Give feedback.
Oppps! Thank you for reporting this @MTuttle6. This was a cognition issue. It should be fixed now.
It was a stupid one. I forgot to remove the message "Sending data..." once the data was sent to the server 🤦 . The impression was the user was stuck there, unable to close the window. I didn't notice this because I always use the on_finish callback to redirect the browser or show a message.
BTW, this message was an idea from @jodeleeuw 👏