[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] BUG: floating point exception in pygame.transform.average_color
- To: pygame-users@xxxxxxxx
- Subject: [pygame] BUG: floating point exception in pygame.transform.average_color
- From: Joost van Zwieten <joostvanzwieten@xxxxxxxxx>
- Date: Mon, 3 Jun 2013 23:17:33 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 03 Jun 2013 17:17:41 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Ex7PBkEJ9SbjNFIwWtTnsPhKxDb3RmeyGaYe+/Vsw0c=; b=naqyTpg0FDfMpPwa3ZhkApHa20U2KaBuMLGjh3bhAjujcYMDI5pv/V0i+owBgHGhEs oVjWfViQnzi/Sj7a+Umu42VO1w4xllr4J2Ajy4zU1kZJ3vOV0AxPzIOkUiuDfRnqwSEa unw0dBmbWUGLEWsmKCoAX/Gy79bfttoR2AnzGjAiarFA64yYY13b3qfQYFGHllXnvrhE whiFVIMrm1Y9dImvKm2JgeaLzQgmcne+6WAAtjed6i0VmYq/7qHMGvwqwZdT2b+cJhux 9lB6elK2Ofzeg1NxX+XG8A/dEdSpH+Ak06M0fKWBx/FmiCWUynSBoSn3OuXzN8rmPZK1 O/Lg==
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi,
When trying to determine the average color of a surface inside a
rectangle which is located just outside the visible region, python
crashes with a floating point exception. A silly thing to do, but I
think that pygame should tell me I'm silly (-: Attached is a minimal
script which triggers the bug.
I am running debian wheezy, python 2.7.3-6 and pygame
1.9.1release+dfsg-8. If you need more info, please let me know.
Kind regards,
Joost van Zwieten
Attachment:
average_color_bug.py
Description: Binary data