Issue №3679 opened by Martinus2004 at 2023-01-22 16:29:43
Environment:
Current behavior:
If there's a pygame.draw.rect() line in the main game loop and pygame.quit() got called in e.g. "if event.type == pygame.QUIT" without the main loop stopping/breaking, there will be a pretty long segfault message printed to the user. (see screenshot below)
Screenshots

Getting the segfault
import pygame
screen = pygame.display.set_mode((500, 500))
pygame.quit()
pygame.draw.rect(screen, "blue", pygame.Rect(0, 0, 1, 1))
<hr>
# Comments