Python Forum

Full Version: Python pygame hangs up after 40 minutes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I think I have found the culprit...

All day long I was modifying the program to avoid using pygame module and readin directly through linux, using open file and /dev/input/js0... It again worked flawlessly (after 6 hours), until.. it started hanging up.

So: Pygame was not at fault.
I ran htop and discovered that the memory used was continuosly increasing until Pi ran out of memory and then it started to hang up.

I tried to isolate the modules/calls and the error was:

I had: for tkinter module Inp.update_idletasks()
When I changed it to Inp.update () the memory problem ended...

However, visually, both of the options worked "fine", i.e. the display was updated in both cases correctly in the tkinter window.

Thanks for the help!
Pages: 1 2