Python Forum
[PyGame] Python pygame hangs up after 40 minutes
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Python pygame hangs up after 40 minutes
#11
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!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pygame in 90 Minutes - For Beginners syntax issues GoldenHarvey 6 2,375 Dec-18-2023, 10:11 AM
Last Post: KeeleyGreenfelder

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020