Description of the problem: I wanted to have a drag and drop component in an experiment. This involves me setting the position of the text equal to that of the mouse pointer. I realised that this was creating a memory leak. This is the smallest example that has the error. Am I doing something wrong?
Your repository isn’t public, so we can’t see it. It might be something you’re doing, but it looks like there are a few people having problems with code that updates every frame.
I took your code and modified it further. If you update a property of the textstim object, even with something as simple as textstim.pos = textstim.pos, you get this behavior. The good news is that it’s not the mouse doing it, you can have it call mouse.getPos() and you don’t get this as long as you then don’t try to use that information to set the position of the text stimulus.
So it’s updating the text stimulus on every frame that’s behind this memory leak. Why I’m not sure, but that’s where we’re at.