1
Python / Re: Script crashes on exit (sf.RenderWindow, sf.Texture)
« on: November 04, 2013, 07:57:59 pm »
I tried reinstalling pySFML 1.3 before and nothing changed. Also, maybe the issue happens only on Windows 7 32-bit?
But today I ran the script and it closed correctly, so I ran it a few more times and now it again crashes every time.
Maybe it's just some crazy Windows magic on my computer.
The crash looks like this:
The script runs correctly until the window.close() line and then pauses (no errors or exceptions) and after a few seconds Windows shows the window saying that python.exe has stopped working (but the python console window isn't frozen, I can drag or resize it and the cursor is blinking).
The examples pong, shader and spacial_music also crash on exit, but pong crashes only when exiting during the game, never on the screen saying 'Press space to start the game'.
Looks like there's something wrong with window.close(), because the crash happens when the line window.close() is executed (in the examples or in my scripts) and never when I close the the script by the python console window.
Maybe it does something wrong with other resources, because
But today I ran the script and it closed correctly, so I ran it a few more times and now it again crashes every time.
Maybe it's just some crazy Windows magic on my computer.
The crash looks like this:
The script runs correctly until the window.close() line and then pauses (no errors or exceptions) and after a few seconds Windows shows the window saying that python.exe has stopped working (but the python console window isn't frozen, I can drag or resize it and the cursor is blinking).
The examples pong, shader and spacial_music also crash on exit, but pong crashes only when exiting during the game, never on the screen saying 'Press space to start the game'.
Looks like there's something wrong with window.close(), because the crash happens when the line window.close() is executed (in the examples or in my scripts) and never when I close the the script by the python console window.
Maybe it does something wrong with other resources, because
import sfml as sf
window = sf.RenderWindow(sf.VideoMode(640, 480), 'test')
window.close()
doesn't crash.
window = sf.RenderWindow(sf.VideoMode(640, 480), 'test')
window.close()