pygame library error? - Raspberry Pi Forums


can't find error in code!
run process lxterminal 'python3 example.py' close application window.
several times. third time close app hang , need close lxterminal window.
looks bug in pygame lib, maybe memory leak? better way quit pygame instead of pygame.quit()
how avoid problem?

code: select all

import pygame   # initialize window pygame.init() windowsurface=pygame.display.set_mode((512,512),0,32)  print(pygame.version.ver)  while true:     event = pygame.event.wait()      if event.type==pygame.quit:        break  print ("end") pygame.quit() 

hi, i've run lots of times on ubuntu laptop , on rpi3 raspbian stretch, python3 , python2 , seemed fine. ran top in terminal , there no sign of memory usage increasing. thing i've done since burning sd increase gpu memory, set vnc server , couple of python modules.


raspberrypi



Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'