ballistica icon indicating copy to clipboard operation
ballistica copied to clipboard

FATAL ERROR: Unhandled exception in BallisticaMain(): Precondition failed: glActiveTexture != nullptr

Open iam-VK opened this issue 3 years ago • 6 comments

image I'm getting this error for every version of bomb squad but, earlier I've used bombsquad in the same machine it worked fine. I have python 3.9 installed in my computer.

iam-VK avatar May 12 '21 07:05 iam-VK

image I've also tried 1.6.0 but I still get the same error

iam-VK avatar May 12 '21 07:05 iam-VK

Sorry you are running into this. I see it show up in a decent amount of fatal-error logs so you are not the only one. Could you let me know what kind of GPU you have? And can you check to make sure you have the latest drivers for it?

Has anyone else around here run into this or found a solution? I'm hoping to make the windows version buildable through the ballistica project soon which will hopefully make this easier for people to debug if they run into it.

This error happens at line 224 of ballistica/graphics/gl/gl_sys.cc. After reading a bit (https://wiki.libsdl.org/SDL_GL_GetProcAddress) I'm wondering if the game is doing something fundamentally wrong in how it loads its GL functions on windows.

efroemling avatar May 12 '21 13:05 efroemling

I don't use any external GPU, it's just the processor. And I recently updated my Intel Graphic drivers.

Here's my GPU driver properties image

.

iam-VK avatar May 12 '21 13:05 iam-VK

Just a note here: I finally made it possible to compile the Windows version of the game if anyone knows a bit of coding and wants to poke around with this. Basically the game needs to fetch the addresses of various OpenGL functions and it is failing to do so on some specific machines. It is calling wglGetProcAddress() and it is failing. This all happens in src/ballistica/graphics/gl/gl_sys.cc. If we can figure out why this is failing in those cases we can hopefully fix it. Hopefully it is not simply a driver issue.

efroemling avatar Jun 08 '21 13:06 efroemling

Я не использую никакой внешний графический процессор, это просто процессор. И я недавно обновил свои графические драйверы Intel. Вот мои свойства драйвера графического процессора изображение .

Did you manage to fix the error?

IamKING3S avatar Feb 06 '22 18:02 IamKING3S

Sorry you are running into this. I see it show up in a decent amount of fatal-error logs so you are not the only one. Could you let me know what kind of GPU you have? And can you check to make sure you have the latest drivers for it? Has anyone else around here run into this or found a solution? I'm hoping to make the windows version buildable through the ballistica project soon which will hopefully make this easier for people to debug if they run into it. This error happens at line 224 of ballistica/graphics/gl/gl_sys.cc. After reading a bit (https://wiki.libsdl.org/SDL_GL_GetProcAddress) I'm wondering if the game is doing something fundamentally wrong in how it loads its GL functions on windows.

Yep it's a driver issue consider updating your driver if it still doesn't work downgrade to the first driver software of your GPU

brostosjoined avatar Oct 24 '22 23:10 brostosjoined