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

Running any program with primusrun results in X Error of failed request: BadValue #191

Closed
FancyBanana opened this issue Dec 13, 2016 · 3 comments

Comments

@FancyBanana
Copy link

FancyBanana commented Dec 13, 2016

I've installed primus by following https://fedoraproject.org/wiki/Bumblebee. Previously i had no such problems on this laptop, but after recent reintall i get following error when i try to start most 3d applications

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  28
  Current serial number in output stream:  29

Here's output from glsanity-bbee:

[vharabar@localhost glsanity-bin]$ ./glsanity-bbee 
Checking native (usually Mesa/i965) GL
Running 32-bit tests
info:  libGL.so.1:      loaded from: /lib/libGL.so.1
info:  libGL.so.1:      symlink to:  /usr/lib/libGL.so.1.2.0
info:  X display:       :0
info:  X Ext. "GLX":    present
info:  X Ext. "NV-GLX": not present; OK for non-nVidia drivers
info:  GLX server:      SGI
info:  GLX client:      Mesa Project and SGI
info:  GL vendor:       Intel Open Source Technology Center
info:  GL renderer:     Mesa DRI Intel(R) Haswell Mobile 
info:  GL version:      3.0 Mesa 13.0.2
Running 64-bit tests
info:  libGL.so.1:      loaded from: /lib64/libGL.so.1
info:  libGL.so.1:      symlink to:  /usr/lib64/libGL.so.1.2.0
info:  X display:       :0
info:  X Ext. "GLX":    present
info:  X Ext. "NV-GLX": not present; OK for non-nVidia drivers
info:  GLX server:      SGI
info:  GLX client:      Mesa Project and SGI
info:  GL vendor:       Intel Open Source Technology Center
info:  GL renderer:     Mesa DRI Intel(R) Haswell Mobile 
info:  GL version:      3.0 Mesa 13.0.2
Checking secondary (usually NVIDIA) GL
Running 32-bit tests
info:  libGL.so.1:      loaded from: /usr/lib/nvidia-bumblebee/libGL.so.1
info:  libGL.so.1:      symlink to:  /usr/lib/nvidia-bumblebee/libGL.so.1.0.0
info:  X display:       :8
info:  X Ext. "GLX":    present
info:  X Ext. "NV-GLX": present
info:  GLX server:      NVIDIA Corporation
info:  GLX client:      NVIDIA Corporation
info:  GL vendor:       NVIDIA Corporation
info:  GL renderer:     GeForce GTX 850M/PCIe/SSE2
info:  GL version:      4.5.0 NVIDIA 375.20
Running 64-bit tests
info:  libGL.so.1:      loaded from: /usr/lib64/nvidia-bumblebee/libGL.so.1
info:  libGL.so.1:      symlink to:  /usr/lib64/nvidia-bumblebee/libGL.so.1.0.0
info:  X display:       :8
info:  X Ext. "GLX":    present
info:  X Ext. "NV-GLX": present
info:  GLX server:      NVIDIA Corporation
info:  GLX client:      NVIDIA Corporation
info:  GL vendor:       NVIDIA Corporation
info:  GL renderer:     GeForce GTX 850M/PCIe/SSE2
info:  GL version:      4.5.0 NVIDIA 375.20
Testing offloading with primus
Running 32-bit tests
info:  libGL.so.1:      loaded from: /usr/lib/nvidia-bumblebee/libGL.so.1
info:  libGL.so.1:      symlink to:  /usr/lib/nvidia-bumblebee/libGL.so.1.0.0
info:  X display:       :0
info:  X Ext. "GLX":    present
info:  X Ext. "NV-GLX": not present; OK for non-nVidia drivers
info:  GLX server:      SGI
info:  GLX client:      NVIDIA Corporation
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  22
  Current serial number in output stream:  23
Running 64-bit tests
info:  libGL.so.1:      loaded from: /usr/lib64/primus/libGL.so.1
info:  X display:       :0
info:  X Ext. "GLX":    present
info:  X Ext. "NV-GLX": not present; OK for non-nVidia drivers
info:  GLX server:      NVIDIA Corporation
info:  GLX client:      primus
info:  GL vendor:       NVIDIA Corporation
info:  GL renderer:     GeForce GTX 850M/PCIe/SSE2
info:  GL version:      4.5.0 NVIDIA 375.20
@amonakov
Copy link
Owner

As glsanity indicates, you're missing 32-bit primus library: it should be at /usr/lib/primus/libGL.so.1

@FancyBanana
Copy link
Author

Thank you, i had fixed the issue by installing .i686 version of package. Also, that message does not tell directly that 32-bit library is missing, only that the replacement so is not functioning. It would be nice if you had added some indication to what intended path should look like for the likes of me.

@amonakov
Copy link
Owner

glsanity readme already shows the intended paths; also, in this case, comparing 32-bit test output against 64-bit test output also hints where the issue lies.

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