Segmentation Fault With Opening And Closing Pygame Windows
I'm working on a project where I am trying to alternate between the camera preview on a picamera, and some text on screen using pygame windows. I have gotten to the point where I c
Solution 1:
Ok. so I made a silly mistake. The problem is, for some reason, initializing pygame twice; which I still don't understand since pygame.quit()
should have quit it I think. But I just removed the second pygame.init()
and replaced the first pygame.quit()
with pygame.display.quit()
instead.
Post a Comment for "Segmentation Fault With Opening And Closing Pygame Windows"