bryanedds / Nu

Repository hosting the open-source Nu Game Engine and related projects.
MIT License
1.05k stars 151 forks source link

Start-up exception on end-user's NVidia linux system. #810

Closed bryanedds closed 1 month ago

bryanedds commented 1 month ago

image

reinux commented 1 month ago

Apparently I lied, because it seems to work just fine on my AMD Linux machine now. In fact, unless I'm mistaken, startup is much faster than on Windows.

bryanedds commented 1 month ago

Closed as likely environment issue. Reopen if demonstrably otherwise.

bryanedds commented 1 month ago

Reopening since we've not yet found the environmental issue.

bryanedds commented 1 month ago

On my local NV linux, I am getting a crash when the following is invoked -

Gl.TexParameter (TextureTarget.Texture2d, TextureParameterName.TextureMaxAnisotropy, Constants.Render.TextureAnisotropyMax)

So I added a line of code to check for the GL_ARB_texture_filter_anisotropic extension and sure enough, it wasn't there.

This is an ubuquitous extension (https://www.khronos.org/opengl/wiki/Ubiquitous_Extension), so any environment that doesn't support it is considered inadequately implemented or configured.

reinux commented 1 month ago

It seems to need libX11 for whatever reason on my nvidia machine running Wayland. My laptop running AMD but virtually the same environment otherwise doesn't seem to have that issue. Not sure why.

I think we can close for now; this is one of those things that should need to go on our list of dependencies.

bryanedds commented 1 month ago

Reopening because this needs a solution that we can provide to others in terms of an update install script or something.

bryanedds commented 1 month ago

So I managed to get Nu running on NVidia Linux. If we come up with an install script alteration that will keep others from encountering it, we should consider modifying the script to utilize it.

bryanedds commented 1 month ago

On my local NV linux, I am getting a crash when the following is invoked -

Gl.TexParameter (TextureTarget.Texture2d, TextureParameterName.TextureMaxAnisotropy, Constants.Render.TextureAnisotropyMax)

So I added a line of code to check for the GL_ARB_texture_filter_anisotropic extension and sure enough, it wasn't there.

This is an ubuquitous extension (https://www.khronos.org/opengl/wiki/Ubiquitous_Extension), so any environment that doesn't support it is considered inadequately implemented or configured.

Updated to latest Ubuntu and this seems to have gone away.

bryanedds commented 1 month ago

Updated script to attempt to fix this for exclusive Wayland users.