Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 567918 - x11-base/xorg-server-1.17.4 and x11-drivers/nvidia-drivers - broken OpenGL with ssh x11forwarding
Summary: x11-base/xorg-server-1.17.4 and x11-drivers/nvidia-drivers - broken OpenGL wi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-10 09:08 UTC by yury fedorchenko
Modified: 2017-03-10 17:04 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (e.info,7.19 KB, text/plain)
2015-12-10 10:51 UTC, yury fedorchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yury fedorchenko 2015-12-10 09:08:05 UTC
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.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2015-12-10 09:59:31 UTC
Please add emerge --info.
Comment 2 yury fedorchenko 2015-12-10 10:51:52 UTC
Created attachment 418922 [details]
emerge --info
Comment 3 Matt Turner gentoo-dev 2017-02-25 22:52:16 UTC
Is this still a problem with current stable versions?
Comment 4 yury fedorchenko 2017-02-27 10:14:41 UTC
yes, problem not solved.
Comment 5 Matt Turner gentoo-dev 2017-02-28 02:52:50 UTC
(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?
Comment 6 yury fedorchenko 2017-02-28 14:52:49 UTC
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.
Comment 7 xdev52 2017-03-09 14:16:45 UTC
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.
Comment 8 yury fedorchenko 2017-03-10 10:25:22 UTC
(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
Comment 9 Matt Turner gentoo-dev 2017-03-10 17:04:38 UTC
Dang, right, I should have remembered that indirect GLX is disabled by default in >xorg-server-1.17. Sorry for not remembering.