goo-engine icon indicating copy to clipboard operation
goo-engine copied to clipboard

Eevee crashes on Linux with AMD GPU

Open justjulez420 opened this issue 3 years ago • 1 comments

As mentioned in #2 my build crashes when trying to enter any eevee-viewport. this is what my terminal shows me:

ERROR (gpu.shader): GPU_material_compile VertShader: | 4473 | | ^ | Error: #extension directive is not allowed in the middle of a shader ERROR (gpu.shader): GPU_material_compile FragShader: | 4804 | | ^ | Error: #extension directive is not allowed in the middle of a shader ERROR (gpu.shader): GPU_material_compile VertShader: | 4483 | | ^ | Error: #extension directive is not allowed in the middle of a shader ERROR (gpu.shader): GPU_material_compile FragShader: | 4814 | | ^ | Error: #extension directive is not allowed in the middle of a shader

from what i found on google, this seems to been an issue related to mesa graphics drivers. cycles, workbench and malt work fine. at this point i doubt it's a problem with my build. i also tried building the stable branch, which gave me only half of the errors but still a crash. i'll keep poking around but i literally have no idea what i'm doing and not much confidence left did anyone else with an amd gpu managed to run this on linux yet? or has any idea on how to fix this?

justjulez420 avatar Nov 01 '22 06:11 justjulez420

I found a workaround! running 'export allow_glsl_extension_directive_midshader=true' before running the executable prevents the crash. Probably not to most elegant solution but at least everything seems to work now. I'll leave this issue open tho, in case anyone wants to actually fix it.

justjulez420 avatar Nov 02 '22 22:11 justjulez420