[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] BUG: segfault when blitting surface to itself



python version: 2.5.1
pygame version: 1.8
OS: Windows XP

If you attempt to blit a surface to itself, python segfaults. Seems to occur only on windows (tested on XP and Ubuntu).
I understand there is no reason to do this, but it would seem more appropriate to throw an exception or something like that.

script to reproduce:
import pygame
pygame.init()

a = pygame.Surface((10, 10))
a.blit(a, (0, 0))

Output:
Fatal Python error: (pygame parachute) Segmentation Fault

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.