bastienleonard / pysfml-cython

A Python 2/3 binding for SFML 2, written with Cython
http://pysfml2-cython.readthedocs.org/
Other
68 stars 8 forks source link

sfml class RectangleShape crashes on Windows #37

Closed pygg2devs closed 12 years ago

pygg2devs commented 12 years ago

When initializing RectangleShape, or its other descendents that inherit from sfml.Shape with an open window, python.exe goes into not responding on Windows and then crashes.

This issue does not appear to happen on Ubuntu 12.04 64bit Linux.

I am running Windows 7 64 bit and am running on Python 2.7.

bastienleonard commented 12 years ago

Thanks for the report. I'll try to test it tomorrow.

bastienleonard commented 12 years ago

I can't reproduce the issue. My guess is that you're not passing a tuple or a Vector2f to the constructor. pySFML tries to raise an exception, but it gets ignored (this has been fixed in commit 1524bbb637, not yet available in installers). For some reason, the program crashes (my guess is that the C++ RectangleShape can't get initialized correctly and produces some random behavior when it's used).

pygg2devs commented 12 years ago

I'll try to compile the latest version later, but I am passing a tuple

bastienleonard commented 12 years ago

I am using the installer from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pysfml2 I'm using the 32 bits version for 2.7 on a 64 bits Windows 7, if that matters.

bastienleonard commented 12 years ago

Do you still have this problem?

nagn commented 12 years ago

nope

the installer seems to have fixed everything