Skip to content

[v1.5.5] Quick patch to prevent crash on launch

Latest

Choose a tag to compare

@KennedyRichard KennedyRichard released this 16 Mar 01:06

This version contains a simple and quick fix that consists in the removal of a needless check that was crashing the app on launch.

In summary, a change in pygame-ce 2.5.7 seems to have slightly changed how text is rendered, causing differences in the dimensions of the rendered characters (or at least in their bounding boxes) and those differences were raising an exception due to the discrepancy (and causing the app to crash on launch).

Rather than changing the values, we decided to remove the check altogether and adjust the code accordingly because the condition being flagged as an error (and thus raising an exception) wasn't as serious as we initially thought it to be.

Extra info on this change can be found in the message of the commit that introduced the fix and in comments within the changed file itself.