1. pygame
  2. pygame
  3. pygame
  4. Issues

Issues

Issue #10 resolved

Opening a python file object crashes pygame on windows.

René Dudfield
created an issue

== John Krukoff, 2008-03-05 13:25:30 -0800

{{{ With pygame 1.7.1 and python 2.5 on Windows XP SP2, when I try to load an image using a python file object instead of passing a path, pygame crashes.

Reproducing is as simple as:

import pygame pygame.image.load( open( 'image.png', 'r' ) )

While

pygame.image.load( 'image.png' )

works fine, and is what I converted my code to to work around the issue. It looks like this may be a return of an old bug, as I found some notes from years ago on the mailing list about the same kind of crash bug. My previous environment, pygame 1.7 and python 2.4 did not exhibit the same behaviour.

I have not tested with 1.8, as I didn't see a download option for it on the main pygame.org site. }}}


== Thorbrian, 2008-03-05 14:54:58 -0800

{{{ This is fixed in latest (pre-release 1.8)

You can download an installer for the latest (again, pre-release) here: http://thorbrian.com/pygame/builds.php

For a workaround in 1.7.1, see here: http://archives.seul.org/pygame/users/Nov-2007/msg00133.html }}}


== Thorbrian, 2008-04-14 17:13:51 -0700

{{{ 1.8 has been released, and has this problem fixed in it. }}}


Comments (0)

  1. Log in to comment