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?
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
Post a Comment