Android experiment - [Errno 24] Too many open files
I have a loop with 24 trials. My droid experiment keeps crashing after something like 20 trials. Here is the error :
IOError: [Errno 24] Too many open files: u'/data/data/nl.cogsci.opensesame/files/tmpK_9ATe.opensesame_pool/ta_14.png'
In my experiment i have many audio and image files. I'm strictly using inline_scripts (canvas.image() and sampler() functions) to display the images and play the sound files.
Is there a way to close an image after using it with canvas.image() ?