Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game crash with new AMD GPU driver #5676

Closed
def- opened this issue Jul 30, 2022 · 12 comments
Closed

Game crash with new AMD GPU driver #5676

def- opened this issue Jul 30, 2022 · 12 comments
Assignees
Labels
3rd party This issue is likely related to third party software outside of our control.

Comments

@def-
Copy link
Member

def- commented Jul 30, 2022

As reported on Steam:

after update amd driver to 22.7.1
game crash when i try to play with this error in log

DDNet.exe caused an Access Violation at location 00007FF9D631AAAB in module atio6axx.dll Reading from location 0000000000000428.

AddrPC Params
00007FF9D631AAAB 0000000000000000 0000000000000000 0000000000000000 atio6axx.dll!eglGetProcAddress
00007FF9D61D8DAB 0000008DD71FF301 000001E783A72080 0000000000000001 atio6axx.dll!eglGetProcAddress
00007FF9D61D943F 0000000005040302 00007FF9D61DC262 000001E7FF16F680 atio6axx.dll!eglGetProcAddress
00007FF9D61D7416 000001E700001401 000001E7FF170200 0000000100000000 atio6axx.dll!eglGetProcAddress
00007FF9D61D75DF 000001E7FEF8B87C 000001E7FEF89DB8 000001E783A72080 atio6axx.dll!eglGetProcAddress
00007FF9D620BE39 000001E7857D3450 0000000000000000 0000000000001908 atio6axx.dll!eglGetProcAddress
00007FF9D618C6DF 000001E7857D3490 0000000000000000 000001E784E9C3C0 atio6axx.dll!eglGetProcAddress
00007FF9D6183A88 000001E7857D3450 000000007D64F5F9 000000007D64DA69 atio6axx.dll!eglGetProcAddress
00007FF9D5EFE0EF 000001E7F2BD60E0 0000000000000000 0000000000000000 atio6axx.dll!eglGetProcAddress
00007FF9D77C8402 0000000000000000 0000000000000000 0000000000000000 atio6axx.dll!eglGetProcAddress
00007FFA41D954E0 0000000000000000 0000000000000000 0000000000000000 KERNEL32.DLL!BaseThreadInitThunk
00007FFA4352485B 0000000000000000 0000000000000000 0000000000000000 ntdll.dll!RtlUserThreadStart

my gpu is : amd 6800m

https://steamcommunity.com/app/412220/discussions/0/3463849349658412872/

@Jupeyy Could you take a look please?

@Jupeyy
Copy link
Member

Jupeyy commented Jul 30, 2022

Made a bug report to AMD, since i also face it on Windows.
But I also tried different OpenGL versions and all are crashing, so I assume it's either one of our libs (SDL, GLEW etc.) or just a bug in the driver

@def-
Copy link
Member Author

def- commented Jul 30, 2022

Is there any quick fix we can put out to work around this and enforce correct opengl usage on amd gpus?

@Jupeyy
Copy link
Member

Jupeyy commented Jul 30, 2022

I know the exact line now that crashes it, but there is no real workaround for it, except not using our opengl backend or default amd users to the old backend.

for older opengl its
glTexParameteri(Target, GL_GENERATE_MIPMAP, GL_TRUE);

or for gl 3.3
glGenerateMipmap(GL_TEXTURE_2D_ARRAY);

But even if i remove mipmap building its broken, as if the texture wasnt loaded at all
I even looked in render doc... nothing loaded at all, really weird.
I made a second bug report explaining what exactly fails. I hope that they can fix it really soon.

Another workaround would ofc be use vulkan default :PP

@def-
Copy link
Member Author

def- commented Jul 30, 2022

I guess Vulkan-only is also too risky. Hm, no good solution then. How can AMD just break OpenGL, that looks like pretty basic usage?

@Jupeyy
Copy link
Member

Jupeyy commented Jul 30, 2022

Type in amd 22.7.1 in google and you will see this is probably a compete new driver with much more performance. Also this is a beta driver

@def-
Copy link
Member Author

def- commented Jul 30, 2022

Do you have a link to the AMD bug? Maybe we can ask them for a workaround. Or even better if they can tell us if we are doing something wrong. Other OpenGL games appear to work based on a google search.

@def-
Copy link
Member Author

def- commented Jul 30, 2022

Wrote a news entry on website and steam, hope that helps a bit.

@Jupeyy
Copy link
Member

Jupeyy commented Jul 31, 2022

Do you have a link to the AMD bug? Maybe we can ask them for a workaround. Or even better if they can tell us if we are doing something wrong. Other OpenGL games appear to work based on a google search.

It's a report tool not a forum so no. But I don't think we are doing something wrong. It worked the last 5 years, simply a bug in their drivers

@Robyt3 Robyt3 added the 3rd party This issue is likely related to third party software outside of our control. label Dec 13, 2022
@RisbergAdam
Copy link

The AMD driver will crash in atio6axx.dll!eglGetProcAddress if you call glGenerateMipmap for array textures having depth greater than 2 times the width or height in my tests, might be what is happening here.

@Jupeyy
Copy link
Member

Jupeyy commented Dec 20, 2023

The AMD driver will crash in atio6axx.dll!eglGetProcAddress if you call glGenerateMipmap for array textures having depth greater than 2 times the width or height in my tests, might be what is happening here.

Can you please query your GPU driver version?

Afaik this bug should have already been fixed in newer AMD drivers (and only beta drivers were affected)

@RisbergAdam
Copy link

Can't query the GPU driver version since I've updated since, and you're right that the issue is fixed in newer drivers. The driver I had appears to have been installed through microsoft update though and the windows driver store version was 31.0.12027.9001. I'm unable to find which adrenaline release this corresponds to but should be 22.10.1 or 22.10.2.

@Jupeyy
Copy link
Member

Jupeyy commented Jan 4, 2024

Thanks for clearing that up, since OpenGL is not our default backend anymore, i think it doesn't matter too much.

I'll also close this issue for now, since I also didn't see similar issues reported on discord

@Jupeyy Jupeyy closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party This issue is likely related to third party software outside of our control.
Projects
None yet
Development

No branches or pull requests

4 participants