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

Author Topic: Windows 10: "Failed to share OpenGL context". My poor game crashes.  (Read 2007 times)

0 Members and 1 Guest are viewing this topic.

Tigre Pablito

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • Email
Dear Ladies and Guys of SFML

I tried to run my poor game on Windows 10 64 bit, and this error message showed up in the console box: "Failed to share OpenGL context". And below this, the famous "Attempt to read or write to the protected memory ...."

The game is created for 32 bit, and runs fine on Windows 7 (32 or 64 bit). I posted it on the SFML Projects forum.
Download link:
https://www.dropbox.com/s/3wy14x0jrgpaen7/Massacre%20A%20Poor%202D%20Space%20Shooter.rar?dl=0

Can anyone help me to solve this issue?
Thanks in advance

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Windows 10: "Failed to share OpenGL context". My poor game crashes.
« Reply #1 on: April 26, 2018, 04:32:16 am »
It has worked for me on a real 64 bit Windows 10 but it looks like this: https://imgur.com/a/nyDWq79

Are you checking that your fullscreen resolution is available and are you trying it out in a VM?
Back to C++ gamedev with SFML in May 2023

Tigre Pablito

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • Email
Re: Windows 10: "Failed to share OpenGL context". My poor game crashes.
« Reply #2 on: April 26, 2018, 08:23:22 pm »
Hi FRex

Now I remember, in that Windows 10 64 bit PC, I found out that what made the program crashes was all the Draw calls ... wether it was a text or a sprite ... it wasn't the screen mode ... or may be that the Draw calls made the program crash due to the screen mode?

I'll try to search for screen mode availability and VM (virtual machine?) ...

Thanks for your help

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Windows 10: "Failed to share OpenGL context". My poor game crashes.
« Reply #3 on: April 26, 2018, 08:54:07 pm »
It might fail in a VM if it doesn't support OpenGL or something. It depends on the VM and settings.

And the screen - I have no other idea what could make it look like it did for me but at least it ran.
Back to C++ gamedev with SFML in May 2023

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: Windows 10: "Failed to share OpenGL context". My poor game crashes.
« Reply #4 on: April 27, 2018, 08:27:10 am »
Do you have a GPU driver installed?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Tigre Pablito

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • Email
Re: Windows 10: "Failed to share OpenGL context". My poor game crashes.
« Reply #5 on: April 27, 2018, 04:55:31 pm »
Hi eXpl0it3r

I don't know if that PC (that is not mine) has the driver. I suppose it doesn't. Could you tell me where or how to find the missing GPU driver to install?

Thanks for your help

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
By going to your hardware vendor's website and downloading it. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything