OpenGL does not work under regular-user

Use Xorg 1.20.3 Nvidia 340.107 GeForce GT240M

glxinfo
name of display: :0
X Error of failed request: BadValue (integer parameter out of range for operation)

Have the same issue as in:

https://devtalk.nvidia.com/default/topic/968892/linux/geforce-7300le-with-304-132-glxinfo-fails-now-with-quot-x-error-of-failed-request-badvalue-quot-/2

All requirements in internet to downgrade to 304.131, but this package does not available on Nvidia site: Unix Drivers | NVIDIA

How to fix this? What the status of trouble ticket 1835736?

https://unix.stackexchange.com/questions/321185/after-update-glx-works-only-for-root-nvidia

https://bugzilla.opensuse.org/show_bug.cgi?id=1003918
nvidia-bug-report.log.gz (65.4 KB)
glxinfo_from_root.txt (56.1 KB)
ldd_compare.txt (1.97 KB)

Please check if adding your user to the video group resolves the issue.
The 304 driver is dead.
Please run nvidia-bug-report.sh as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post of yours will reveal a paperclip icon.
[url]https://devtalk.nvidia.com/default/topic/1043347/announcements/attaching-files-to-forum-topics-posts/[/url]

Added attach. Adding user to group video does not helped.

Added attach. Adding user to group video did not helped.

What’s the output of
ls -l /dev/nv* /dev/dri*

ls -l /dev/nv* /dev/dri*
crw-rw---- 1 root video 195, 0 мар 11 14:33 /dev/nvidia0
crw-rw---- 1 root video 195, 255 мар 11 14:33 /dev/nvidiactl
crw------- 1 root root 10, 144 мар 11 14:33 /dev/nvram

/dev/dri:
итого 0
drwxr-xr-x 2 root root 60 мар 11 14:33 by-path
crw-rw----+ 1 root video 226, 0 мар 11 14:33 card0

Looks ok. Since you seem to run Gentoo, have you switched to the right OpenGL?
eselect opengl set nvidia
(as root)

I already use nvidia. Seems this bug is only with Nvidia drivers and no feedback that it was fixed.

eselect opengl list
Available OpenGL implementations:
[1] nvidia *
[2] xorg-x11

Have any ideas how to debug this?

What’s the complete output of
glxgears
glxinfo
groups

Under regular user:
glxgears
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: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 29
Current serial number in output stream: 30

glxinfo
name of display: :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: 90
Current serial number in output stream: 91

Under root user:
glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
303 frames in 5.0 seconds = 60.449 FPS
301 frames in 5.0 seconds = 60.038 FPS
301 frames in 5.0 seconds = 60.042 FPS

glxinfo from root in attach

Does
getfacl /dev/dri/card0
list your user with rw access?

getfacl /dev/dri/card0
getfacl: Removing leading ‘/’ from absolute path names

file: dev/dri/card0

owner: root

group: video

user::rw-
user:myuser:rw-
group::rw-
mask::rw-
other::—

Why do you think that it’s rights trouble? Seems it’s Xorg error and need debug it, is not it?

Access rights are the most common reason. Then there might be weong libraries, using indirect GLX, etc.
Any difference in output when running
ldd /usr/bin/glxinfo
as user and root?

Added attach

Yes, it’s equal, except hex in brackets

Fixed after reboot. Don’t know what this was.

Thank you.