[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] BUG: segfault when blitting surface to itself
- To: pygame-users@xxxxxxxx
- Subject: [pygame] BUG: segfault when blitting surface to itself
- From: "Hugo Arts" <hugo.yoshi@xxxxxxxxx>
- Date: Fri, 11 Apr 2008 12:43:19 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Fri, 11 Apr 2008 07:43:24 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=Fo7qO9wUC55dIHVk7eqZHkOAbK6hPChkqBhOIKOLkMw=; b=aztgKlgl4Co4E3PeW56q4y10HuJjkvoSMyh9U+v+dRN5KOD4PdGqP6jSKg1LBrsvd/YvRsTkEiy5weCyOjBxREb29GzOSxxeK9jEA17oW5Yzo6zvx2hLdHc4FAB5xJ6N3jl18VD0SjTR7XoRiQyBgQWJh1TZ1K+bvp+gn4zXjng=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=bvAR99swNzf7UT7BKdqHzVez9FE6BUHJv+/8REZfuYIX5bFjkbj0b4lrRv4A5jLZAiBxtdqmoEVM1JSsvjaqs3g4sVhQfIXTrma58GdHUWZnAwS4dknqgt34rMSfVEvUxzvSBev0N0CMpB6AwGkwtpOFxUkg+pq20yJoswhpNuo=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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.