Opening a python file object crashes pygame on windows.

Issue #10 resolved
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' ) )


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 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:

For a workaround in 1.7.1, see here: }}}

== 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