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

Author Topic: [LINUX] Failed to create an OpenGL context for this window  (Read 3832 times)

0 Members and 1 Guest are viewing this topic.

christoph

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • http://www.christoph-egger.org
[LINUX] Failed to create an OpenGL context for this window
« on: October 04, 2008, 10:22:11 am »
Anyone seen something like

Code: [Select]
Failed to create an OpenGL context for this window
Failed to create an OpenGL context for this window
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  8 (X_MapWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  31
  Current serial number in output stream:  31
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x7fd897f9b97c]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x15) [0x7fd897f9ba15]
#2 /usr/lib/libX11.so.6 [0x7fd89b830420]
#3 /usr/lib/libX11.so.6(XESetCloseDisplay+0x43) [0x7fd89b812693]
#4 /usr/lib/libGL.so.1 [0x7fd8a066f7b2]


before?

An Idea what could have caused this? To me, it looks like some very early OpenGL / X11 initlialization.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[LINUX] Failed to create an OpenGL context for this window
« Reply #1 on: October 04, 2008, 10:29:36 am »
Can you give more information about your distrib version, drivers, graphics card, SFML version, ... ?

Can you run other OpenGL programs like glxgears ?
Laurent Gomila - SFML developer

christoph

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • http://www.christoph-egger.org
[LINUX] Failed to create an OpenGL context for this window
« Reply #2 on: October 04, 2008, 10:43:41 am »
It's not my system that's failing but I've gotten an bug report containing this.

The affected system is an debian lenny amd64 with SFML-1.3 (as present in the debian archive -- differences)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[LINUX] Failed to create an OpenGL context for this window
« Reply #3 on: October 04, 2008, 11:03:38 am »
Can you get more informations about this system ? Can you show the source code which produced this error ?
Laurent Gomila - SFML developer

christoph

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • http://www.christoph-egger.org
[LINUX] Failed to create an OpenGL context for this window
« Reply #4 on: October 04, 2008, 11:12:20 am »
It's this project. The exact tarball causing the problem is http://testing.coders-nemesis.eu/spaceshooter-sfml-1.0pre.tar.gz -- for building you may have to fix the liblog4cxx path in Makefile.am (sed -i -e "s@/usr/local/lib@/usr/lib@g" Makefile should do, too)

I'm mailing the person finding this problem so there probably will be more information soon.