SFML community forums

Help => General => Topic started by: verbrannt on January 30, 2015, 05:01:08 pm

Title: OS X: crash when resize window to minimal size
Post by: verbrannt on January 30, 2015, 05:01:08 pm
SFML from github (master).

When I try resize window to minimal size (i do it fast), program crashes.

UPD: I think is a bug of the OS, because with GLFW i've got same thing.

Code:

#include <SFML/Window.hpp>

int main()
{
    sf::Window window(sf::VideoMode(800, 600), "OpenGL");

    bool running = true;

    while (running) {
        sf::Event event;

        while (window.pollEvent(event)) {
            if (event.type == sf::Event::Closed) {
                running = false;
            }
        }
    }

    window.close();

    return 0;
}
 

Error:

(click to show/hide)
Title: Re: OS X: crash when resize window to minimal size
Post by: thomas9459 on January 30, 2015, 06:36:47 pm
Yeah, this definitely seems to be a problem with Apple's library: it got stuck in an infinite loop that overflows the stack. I wonder if it could be possible to prevent it on our end though. Can you try to get a full backtrace so we can determine where and if SFML code is triggering it? Also, I was not able to reproduce this on 10.9 with the latest SFML, what version of OSX and SFML are you using?