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

Can't see anything #54

Closed
ecosta1020 opened this issue Feb 24, 2017 · 9 comments
Closed

Can't see anything #54

ecosta1020 opened this issue Feb 24, 2017 · 9 comments

Comments

@ecosta1020
Copy link

I've installed kitty to have a grasp of it, but no matter if I use the in-source version, or if I compile it to `linux-package', it doesn't respect colors in the configuration file, and all I'm shown is a black screen I can only type exit and press enter.

glfw' examples run fine though. This is the output of LIBGL_DEBUG=verbose MESA_DEBUG=1 bin/kitty':

libGL: Can't open configuration file /home/usr/.drirc: No such file or directory.
libGL: pci id for fd 6: 10de:0407, driver nouveau
libGL: OpenDriver: trying /usr/X11R6/lib/dri/tls/nouveau_dri.so
libGL: OpenDriver: trying /usr/X11R6/lib/dri/nouveau_dri.so
libGL: Can't open configuration file /home/usr/.drirc: No such file or directory.
libGL: Can't open configuration file /home/usr/.drirc: No such file or directory.
libGL: Using DRI3 for screen 0
Mesa: User error: GL_INVALID_ENUM in glTexBuffer(internalFormat GL_RGB32UI)

@ecosta1020 ecosta1020 changed the title Can't see anythin Can't see anything Feb 24, 2017
@kovidgoyal
Copy link
Owner

See the last line in the debug you posted. Apparently your gl driver does not implement glTexBuffer with GL_RGB32UI correctly. According to the opengl docs: https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glTexBuffer.xhtml this is implemented for OpenGL >= 3.1 which is almost a decade old I think. Update your drivers and you should be fine.

@kovidgoyal
Copy link
Owner

I just committed a command line option --debug-gl that does what MESA_DEBUG does, but aborts kitty with a nice traceback on failure.

@ecosta1020
Copy link
Author

All I can say is that I have just compiled xorg (including mesa, opengl, etc) just to run kitty, so it's all mainstream software. These are some excerpts of glxinfo's output:

Vendor: nouveau (0x10de)
Device: NV84 (0x407)
Version: 17.1.0
Accelerated: yes
Video memory: 247MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 3.3
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0

OpenGL version string: 3.0 Mesa 17.1.0-devel (git-94e7b59)
OpenGL shading language version string: 1.30

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 17.1.0-devel (git-94e7b59)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

So, any chance I could run kiity or should I discard it?

Regards,

@kovidgoyal
Copy link
Owner

All I can say is that the graphics driver you are using does not support an eight year old OpenGL API (OpenGl 3.1 is from 2009). Not much kitty can do about that. I know of no alternate API for glTexBuffer.

If you have updated nouveau and mesa also make sure you update glew and glfw and that all the newly updated packages are actually being used. Other than that, I am out of ideas.

@kovidgoyal
Copy link
Owner

And the precise item to test for in glx info is GL_ARB_texture_buffer_object_rgb32

glxinfo| grep GL_ARB_texture_buffer_object_rgb32                                
    GL_ARB_texture_buffer_object, GL_ARB_texture_buffer_object_rgb32

kovidgoyal added a commit that referenced this issue Feb 24, 2017
There are apparently some drivers on linux that are missing it,
see #54
@kovidgoyal
Copy link
Owner

I've added a test for that ARB, since there are apparently systems missing it: 54e79a6

@kovidgoyal
Copy link
Owner

@ecosta1020
Copy link
Author

Thanks so much for your time and effort.

I'l try to track down whether this is a problem of the driver I use or what.

Regards,

@ecosta1020
Copy link
Author

It seems nouveau (open source nvidia driver) doesn't support this at this point, or either that my hardware (NVIDIA GeForce 8600M GT) is just too old for this, not really sure, but cannot use kitty any way I've tried.

Thanks so much again for your time anyways,

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants