any apps that use OpenGL throw ssh with xorg-server-1.17.4 and nvidia-drivers can't create glcontext. Reproducible: Always Steps to Reproduce: 1. login to remote machine by ssh with x11forwarding 2. run any opengl application 3. get error or window with trash instead of drawing. Actual Results: XRequest.153: BadValue (integer parameter out of range for operation) 0x0 XRequest.153: BadMatch (invalid parameter attributes) 0x0 XRequest.153: GLXBadDrawable 0x700000d Expected Results: with <xorg-server-1.17 correct window with expected drawing. glxinfo throw ssh result: name of display: localhost:10.0 X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 153 (GLX) Minor opcode of failed request: 24 (X_GLXCreateNewContext) Value in failed request: 0x0 Serial number of failed request: 87 Current serial number in output stream: 88 downgrade xorg-server to 1.16.4-r5 solves problem.
Please add emerge --info.
Created attachment 418922 [details] emerge --info
Is this still a problem with current stable versions?
yes, problem not solved.
(In reply to yury fedorchenko from comment #4) > yes, problem not solved. What versions of xorg-server do not work? What version of nvidia-drivers are you using?
last stable x11-drivers/nvidia-drivers-375.26 x11-base/xorg-server-1.18.4 starting from x11-base/xorg-server-1.17.4 ssh X11forwarding for opengl apps stoped work. I try another comp with current noueavu driver - all works.
x11-base/xorg-server Latest version available: 1.19.2 x11-drivers/nvidia-drivers Latest version available: 378.13 It's because from xorg 1.7 parameter "iglx" is off so it disables indirect opengl... add +iglx to parameters when enabling X session but moreover I struggle now with intel + nvidia and bumblebee... root user has opengl and DRI but normal user (in video group) has not. I added to xorg.conf : Section "ServerFlags" Option "IndirectGLX" "on" Option "AllowIndirectGLXProtocol" "true" EndSection but still has some errors: optirun -vv glxinfo -B [ 2471.070584] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf [ 2471.070724] [INFO]Configured driver: nvidia [ 2471.070861] [DEBUG]optirun version 3.2.1-2016-11-07-Format:%h$ starting... [ 2471.070872] [DEBUG]Active configuration: [ 2471.070880] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf [ 2471.070889] [DEBUG] X display: :8 [ 2471.070897] [DEBUG] LD_LIBRARY_PATH: /usr/lib64/opengl/nvidia/lib:/usr/lib64/opengl/nvidia/extensions [ 2471.070907] [DEBUG] Socket path: /var/run/bumblebee.socket [ 2471.070913] [DEBUG] Accel/display bridge: virtualgl [ 2471.070918] [DEBUG] VGL Compression: proxy [ 2471.070925] [DEBUG] VGLrun extra options: [ 2471.070932] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus [ 2471.828778] [INFO]Response: Yes. X is active. [ 2471.828802] [INFO]Running application using virtualgl. [ 2471.828916] [DEBUG]Process vglrun started, PID 14799. name of display: :0 [VGL] WARNING: The OpenGL rendering context obtained on X display [VGL] :8 is indirect, which may cause performance to suffer. [VGL] If :8 is a local X display, then the framebuffer device [VGL] permissions may be set incorrectly. [VGL] WARNING: The OpenGL rendering context obtained on X display [VGL] :8 is indirect, which may cause performance to suffer. [VGL] If :8 is a local X display, then the framebuffer device [VGL] permissions may be set incorrectly. display: :0 screen: 0 direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose) OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: GeForce GT 540M/PCIe/SSE2 OpenGL version string: 3.0.0 NVIDIA 378.13 OpenGL shading language version string: 1.30 NVIDIA via Cg compiler OpenGL context flags: forward-compatible,robust-access Warning: GL error 0x500 at line 575 [ 2471.920314] [DEBUG]SIGCHILD received, but wait failed with No child processes [ 2471.920347] [DEBUG]Socket closed. [ 2471.920360] [DEBUG]Killing all remaining processes. I can't also change for permanent permissions for group video to r/w access to /dev/nvidia0 and nvidiactl ... still permision denied.
(In reply to xdev52 from comment #7) > x11-base/xorg-server > Latest version available: 1.19.2 > > x11-drivers/nvidia-drivers > Latest version available: 378.13 > > It's because from xorg 1.7 parameter "iglx" is off so it disables indirect > opengl... > > add +iglx to parameters when enabling X session > > but moreover I struggle now with intel + nvidia and bumblebee... > root user has opengl and DRI but normal user (in video group) has not. > I added to xorg.conf : > > Section "ServerFlags" > Option "IndirectGLX" "on" > Option "AllowIndirectGLXProtocol" "true" > EndSection > > thanks. it's solve my problem
Dang, right, I should have remembered that indirect GLX is disabled by default in >xorg-server-1.17. Sorry for not remembering.