GSoC/GCI Archive
Google Code-in 2012 Copyleft Games Group

PySoy: Texture Load Error

completed by: Nikolay Lazarov

mentors: Amaury Medeiros, Arc Riley, Tony Young, David Czech, Mayank Singh

A fun way to segfault PySoy: try to load a texture that doesn't exist!

Of course that shouldn't happen, an appropriate "File Not Found" error be raised but texture loading was rushed, this was glossed over, and right now we have a quick an easy way to crash PySoy.

Both Genie and Python's c-api have standard, well-documented ways to raise errors. Go implement them for cases where the file doesn't exist or isn't a valid, complete, and error-free PNG or SVG/SGK.

While working on this task you should join and remain in #PySoy on Freenode to get help, feedback, and guidance from mentors and other developers. Code updates which may affect your work are also announced here as they happen. This is especially important for this task as other GCI tasks may be worked on to modify the same function.

When you've done, commit your work and post the resulting changeset url to this task.