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

Author Topic: Hanging when destroying GlContext on Linux  (Read 1958 times)

0 Members and 1 Guest are viewing this topic.

Berengal

  • Newbie
  • *
  • Posts: 2
    • View Profile
Hanging when destroying GlContext on Linux
« 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 it works like it should.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Hanging when destroying GlContext on Linux
« Reply #1 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.
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Hanging when destroying GlContext on Linux
« Reply #2 on: April 15, 2011, 06:15:20 pm »
Should be fixed now. Can you test the latest revision?
Laurent Gomila - SFML developer

Berengal

  • Newbie
  • *
  • Posts: 2
    • View Profile
Hanging when destroying GlContext on Linux
« Reply #3 on: April 15, 2011, 06:34:58 pm »
The last commit seems to have fixed it, thanks.

 

anything