I suspect that this code is causing the issue. Why did you add it? Have you tested it? Specifically, code trying to save data which is still running when the experiment ends could conflict with Pavlovia’s own attempts to save your data.
Exit cleanly
Locally you might want your participant to end on a thank you screen rather than being sent back to the PsychoPy Builder. Unfortunately, this desire has encouraged a bad habit of leaving the final message on screen and then pressing the escape button to exit.
While data is saved locally after escape has been pressed, until recently microphone recordings were not. My recommendation would be to have the final screen end on a key press that you have not told the participant, e.g. ‘q’. …
Saving incomplete results
When I create a new study on Pavlovia, one of the first things I do is turn off “save incomplete results”.
[image]
[image]
The reason I do this is to avoid having lots of data files getting created while I build and test the experiment. This is especially important if you use credits rather than a licence, since each data file will cost a credit.
Even when turned on, saving incomplete results can be a bit hit and miss. The data is always saved if you press escape …