Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: OS X: crash when resize window to minimal size  (Read 2097 times)

0 Members and 1 Guest are viewing this topic.

verbrannt

  • Newbie
  • *
  • Posts: 10
    • View Profile
OS X: crash when resize window to minimal size
« 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)
« Last Edit: January 30, 2015, 06:23:04 pm by verbrannt »

thomas9459

  • Newbie
  • *
  • Posts: 49
    • View Profile
    • Email
Re: OS X: crash when resize window to minimal size
« Reply #1 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?