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

Author Topic: OpenGL bug? Nvidia driver bug? SFML bug? My fault?  (Read 48398 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 #30 on: July 24, 2009, 02:46:14 pm »
Thank god. It's really getting boring here without being able to continue my work. Thanks for the status report. ;)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #31 on: July 24, 2009, 03:01:58 pm »
I made the first fix. I still have an error from times to times (otherwise it works fine), but at least it should no longer be related to VideoMode, like the backtrace showed in one of your previous posts.

That's the first step, now it's going to be more difficult if X is really unable to handle multi-threading properly, as all the windows and contexts in SFML are shared and thus use the same X display :?

I guess you can work around that by using mutexes, so that you can continue to work until I fix all this stuff.
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #32 on: July 24, 2009, 03:26:33 pm »
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #33 on: July 24, 2009, 03:44:18 pm »
I made another fix, this one seems to solve your problem at 100% (sf::Context instances now have their own connection to the X display).

There's just one fix to be done (for using multiple windows in different threads) and everything should be ok :)
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #34 on: July 24, 2009, 04:15:49 pm »
I commited the last fix. Enjoy :)

(and pleeeeease confirm that everything works fine now)
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 #35 on: July 24, 2009, 08:02:52 pm »
Thank you very much for your work! I'll check if that fixes my problems later, but I highly think so, since you fixed exactly what I also thought would be the issue.

Awesome!

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #36 on: July 24, 2009, 08:34:04 pm »
You did a great job, my application is running flawlessly now. :) Okay, not completely: I've still got a memory violation when the program is about to close (i.e. objects get destructed). But since I don't know if that's caused by SFML, I'll have to investigate that. Too bad I'll be away for a week (holiday trip).

Again, thank you very much for the fix. You saved my semester break. ;)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #37 on: July 24, 2009, 09:20:53 pm »
I'm glad to hear that :)
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 #38 on: August 02, 2009, 07:27:27 pm »
Back from holiday, tested application, very happy. ;) All bugs are gone now, thanks again for your good work.

Kreeg

  • Full Member
  • ***
  • Posts: 115
    • View Profile
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #39 on: August 16, 2009, 11:48:59 pm »
I don't know if it's related to this fix you just made, but I have a "GLXBadContext" error whenever I run an SFML app. The opengl sample doesn't work (the only one I tested), but glxgears does, so I believe it comes from SFML.
Attention (va) aux (sur) messages (mon) subliminaux, (blog) camarade !

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #40 on: August 17, 2009, 10:44:11 am »
Can you give more informations about your configuration? Which version / revision of SFML are you using?
Laurent Gomila - SFML developer

Kreeg

  • Full Member
  • ***
  • Posts: 115
    • View Profile
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #41 on: August 18, 2009, 11:17:23 pm »
Quote
kreeg@deian:~/files/soft/sfml/branches/sfml2/samples/bin$ ./opengl
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  143 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Serial number of failed request:  24
  Current serial number in output stream:  27
kreeg@deian:~/files/soft/sfml/branches/sfml2/samples/bin$


I use the 1205th revision and I run a 32 bit linux laptop with an Intel IGP.
Attention (va) aux (sur) messages (mon) subliminaux, (blog) camarade !

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #42 on: August 18, 2009, 11:53:28 pm »
Did you try a complete rebuild (make clean)?
Laurent Gomila - SFML developer

Kreeg

  • Full Member
  • ***
  • Posts: 115
    • View Profile
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #43 on: August 19, 2009, 03:29:05 pm »
Yes. Here's my uname -a.

Code: [Select]
Linux deian 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686 GNU/Linux
Attention (va) aux (sur) messages (mon) subliminaux, (blog) camarade !

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
OpenGL bug? Nvidia driver bug? SFML bug? My fault?
« Reply #44 on: August 19, 2009, 05:02:07 pm »
Did it work with SFML 1.5?
Laurent Gomila - SFML developer

 

anything