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

Author Topic: OpenGL bug? Nvidia driver bug? SFML bug? My fault?  (Read 48650 times)

0 Members and 1 Guest are viewing this topic.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #60 on: September 24, 2009, 05:07:03 pm »
Quote from: "Laurent"
No, it just means OGL 1.x contexts instead of OGL 3.x context for cards supporting it.

Okay, thanks for clarification.

By the way, pixel-perfect rendering works flawlessly. :)

ritave

  • Newbie
  • *
  • Posts: 26
    • View Profile
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #61 on: September 24, 2009, 07:56:02 pm »
Sadly I still have this problem on Arch Linux, Msi Wind 120. I feel... Alone :D

Ps. The one with glxcontext message

Lokk

  • Full Member
  • ***
  • Posts: 228
    • View Profile
    • http://betadineproject.wordpress.com/
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #62 on: September 24, 2009, 08:13:55 pm »
You are not alone =)

Debian 2.6.26
ATI Radeon Mobility HD 2600 Series

ritave

  • Newbie
  • *
  • Posts: 26
    • View Profile
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #63 on: September 25, 2009, 08:21:59 pm »
I narrowed the error to sf::Window constructor. The error also appears in RenderWindow.
The below code triggers the error.

Code: [Select]

#include <SFML/Window,hpp>

int main()
{
     sf::Window window
}

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #64 on: September 25, 2009, 10:37:13 pm »
Thanks for your help.

I have a clue (two actually), but I'll have to do more tests to figure it out.
Laurent Gomila - SFML developer

Lokk

  • Full Member
  • ***
  • Posts: 228
    • View Profile
    • http://betadineproject.wordpress.com/
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #65 on: September 25, 2009, 11:00:41 pm »
With valgrind, I get this :
Code: [Select]
==5604== Invalid read of size 8
==5604==    at 0x45C6188: (within /usr/lib/libGL.so.1.2)
==5604==  Address 0x6578058 is 3,096 bytes inside a block of size 3,102 alloc'd
==5604==    at 0x4023D6E: malloc (vg_replace_malloc.c:207)
==5604==    by 0x458C1BA: __glXGetClientGLExtensionString (in /usr/lib/libGL.so.1.2)
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  144 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Serial number of failed request:  28
  Current serial number in output stream:  31
==5604==

It might help ?

K-Bal

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • pencilcase.bandcamp.com
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #66 on: September 26, 2009, 12:42:55 am »
I still have the same error on my Laptop (ATI Radeon Xpress 1100). However, on my PC (Nvidia) it works.
Listen to my band: pencilcase.bandcamp.com

Lokk

  • Full Member
  • ***
  • Posts: 228
    • View Profile
    • http://betadineproject.wordpress.com/
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #67 on: September 26, 2009, 01:26:26 am »
I tried the last ATI Radeon drivers (9.9) but the error still occurred.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #68 on: September 26, 2009, 07:01:05 pm »
I've still got the problem on my laptop, too:

Code: [Select]
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Serial number of failed request:  22
  Current serial number in output stream:  26


Hardware:
Code: [Select]
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)

Lokk

  • Full Member
  • ***
  • Posts: 228
    • View Profile
    • http://betadineproject.wordpress.com/
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #69 on: October 02, 2009, 07:33:51 pm »
Some news ? I haven't found any answer on my side.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #70 on: October 02, 2009, 08:49:52 pm »
I didn't have time for that yet, but I'll try to look into it soon.
Laurent Gomila - SFML developer

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #71 on: October 05, 2009, 11:38:39 pm »
Don't know if this helps, but the application seems to crash at line 133 in the file src/SFML/Window/Linux/ContextGLX.cpp:
Code: [Select]
return glXMakeCurrent(myDisplay, myWindow, myContext) != 0;
The error code says "GLXBadContext".

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #72 on: October 06, 2009, 08:42:59 am »
That's weird, the error you previously reported is about X_GLXCreateContext. Is it a different one?
Laurent Gomila - SFML developer

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #73 on: October 06, 2009, 06:21:13 pm »
Nope, it's the same. "X_GLXCreateContext" is the minor code. Maybe the given context (myContext) is just invalid. But this is normally detected by evaluating return values, before (what you do in the source, of course).

sfPaul

  • Newbie
  • *
  • Posts: 6
    • View Profile
The same problem
« Reply #74 on: October 10, 2009, 07:18:32 pm »
Hey Laurent!

By now I'm using Ubuntu instead of Windows Vista. But I've problems with the new OS.
When I downloaded the SFML2 of the SVN repository I compiled it without any problems. Then I wrote a very short application and compiled it without problems, too. But when I wanted to run it, these errors came in my terminal:
Code: [Select]

X Error of failed request:  GLXBadContext
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Serial number of failed request:  30
  Current serial number in output stream:  33

I found out, that is so because my graphic card. I run this command in the terminal and found out, that this is my card:
    01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200 PRO] (rev 01)
Tank said me, that there are problems with ATI and the newest SFML2. Please, can you correct this error? It's so boring without developing with SFML2! :wink:
Thank you in advance!
Paul

PS.: Sorry for my (bad) English! :lol:

 

anything