psychopy.org | Reference | Downloads | Github

Issues with memory leak when collecting participant's written responses

OS : Win 10
PsychoPy version: 1.90.1
**Standard Standalone?:Y
**What are you trying to achieve?: I am running an experiment where participants have to imagine a series of events and write down (in a minute) what they have imagined, I want to display their responses on the screen as they are writing them down. So I had set up my programme so that it notes down participants’ key responses and update it after each frame, however, this runs into the infamous pyglet memory leak problem which crashes my programme after around 10 trials.

My codes are:


I have tried the suggested solution in this thread Google Groups and had created a textbox but can’t seem to update the text as participants type in the responses in real time.

I am stuck as to how I can get around this issue by displaying their written responses without a need for an update in each frame, any help would be much appreciated.

Thanks
Bruce