SFML community forums

Help => Window => Topic started by: Berengal on April 15, 2011, 03:10:23 pm

Title: Hanging when destroying GlContext on Linux
Post by: Berengal on April 15, 2011, 03:10:23 pm
Using the latest from github, whenever a GlContext is destroyed the entire thread hangs, as demonstrated by this program:
Code: [Select]
#include <SFML/Window.hpp>

int main(void)
{
  {
    sf::Window window(sf::VideoMode(100, 100), "Test");
  }
  return 0;
}


I've tried this on Ubuntu 10.10, both 64bit and 32bit, and both hang. I've also tried on WinXP 32 bit, and there it works like it should.

I've investigated a bit and found that before commit fd0d18f12e0793911ea560f7afc4c79f4421f70c (https://github.com/SFML/SFML/commit/fd0d18f12e0793911ea560f7afc4c79f4421f70c) it works like it should.
Title: Hanging when destroying GlContext on Linux
Post by: Laurent on April 15, 2011, 05:35:56 pm
I can't reproduce the error on my PC (which is weird), but thanks to Hiura I know what's wrong. Should be fixed soon :)

Thanks for your feedback.
Title: Hanging when destroying GlContext on Linux
Post by: Laurent on April 15, 2011, 06:15:20 pm
Should be fixed now. Can you test the latest revision?
Title: Hanging when destroying GlContext on Linux
Post by: Berengal on April 15, 2011, 06:34:58 pm
The last commit seems to have fixed it, thanks.