1
General / Re: sf::Text::getLocalBounds causes segmentation fault?(SOLVED)
« on: January 03, 2016, 04:21:02 pm »
I downgraded to MinGW 4.9 and stopped using clang and it works.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
if (!m_geometryNeedUpdate)
I noticed that sf::Text::ensureGeometryUpdate is called when rendering as well but it doesn't crash when I do that, only when I try to get the bounds (both getLocalBounds and getGlobalBounds).
I checked, this is not the case.Are you saying that it doesn't have a fault when you do have an event loop?
That's the thing, There wasn't an error message. Just the standard windows "whatever.exe has stopped working"Run it in the debugger and in Debug mode. Then you get a more meaningful error message and see where exactly it crashes. Once you've done that, provide us with that information.
Is it crashing in any way with the event loop too?
I'm asking because your "crashing" is normal without the event loop, without an event loop in it your program is literally not responding to windows so that message appears.
minimal example:The example should also be "complete".
You left out the event code.