[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Memory leak...
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Memory leak...
- From: "RB[0]" <roebros@xxxxxxxxx>
- Date: Wed, 14 Oct 2009 12:59:06 -0500
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Wed, 14 Oct 2009 13:59:09 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=LrVwWweNZlASAWmXEXfnEMDnyMg2pvt7wsP4asDaoJI=; b=syT1gjHOiLorN4WchaYsjr03AzKZszOjJY1vPHhhlYV0x/LCjFFk0HxEGWh+0nFCHW /VpND0E5aTWqilQTIg2ZKATWcp5zzdhVuI+0tM3PEwkZTuegRXEr1/TLR22Z71gtDnqC D8O8EiCtzyNAJS6us3qtpmnh/gF8aTtnChAAI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=bo74MyxuRGtDfpgftevw3qFevbWfuewbtlS3qyWZcaDGsx53P533+V2kGgBB8+twsJ eYMJwOfXUq3y68BTY3ycJ3+mlnWqCZEpdXiMtC82KQcIlJ+dBzzy26VJ3DGu6Ktm1w7n 0y2z8ffk/4w9GUeDzhRMG0/HP5/lxdk7ErbZA=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I am getting a nasty mem leak when using pygame.image.tostring
As shown here:
import pygame
from pygame.locals import *
pygame.display.set_mode((100,100))
while 1:
pygame.image.tostring(pygame.Surface((8,8)).convert_alpha(), "RGBA", 1)
NOTE: run this in a console or something where you can crash it to close it ;)
I am running windows Vista (SP1) - using the task manager to view the memory usage.
I also am running Pygame 1.8.1 - is this fixed in 1.9.1?
When I run this, the memory seems to jump and just keep growing, quite quickly...
Has anyone else had this problem?