I've been looking into this for a while, and I can't seem to come across the culprit. `localBounds` returns a `FloatRect`, which is a `{.bycopy.} object`. It is not a `ptr object`. I am a bit confused myself.
Here's what I think I've deduced so far: * `viewport(view: View): FloatRect` is another function that returns a `FloatRect`, and it seems to work properly when tested with the game window's view... * `globalBounds` crashes as well. * `color(text: Text): Color` doesn't. So I believe that the SFML object is still valid. However, unsafe pointers are in use, so it is hard to tell. The [binding homepage](https://github.com/oprypin/nim-csfml) warns of deconstructions troubles with the binding. I wonder if this is a use-after free error, honestly. But then again, some additional careful testing will be needed to figure this one out.