Hi,
Is there an option in the builder to save the data in the csv (trial-by-trial) after each trial so that it the script crashes the trials are not lost. By defaults it seems everything it saved at the end and thus lost if the script crashes.
Locally the data is saved at the end of each loop iteration unless PsychoPy itself crashes (as opposed to the experiment).
I’m not exactly sure what it does, but you could also try logging.flush() in Begin Routine at the start of each loop.