You are not logged in.

#1 2015-03-30 18:56:04

HenriqueNunnes
Member
Registered: 2013-03-29
Posts: 41

[SOLVED] X Error of failed request: BadValue - optirun/primusrun

Hi,

I did a fresh install and I'm putting all thing to run again. But I'm facing a trouble now I can't run anything with optirun / primusrun. I'm getting the same error as with wine or steam.

My video cards:

[henrique@archlinux Win32]$ lspci | grep -e VGA -e 3D
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)
01:00.0 VGA compatible controller: NVIDIA Corporation GT218M [GeForce 310M] (rev a2)
[henrique@archlinux Win32]$ 

And when I'm trying to run a game by wine Dishonored I get this message with primus or optirun:

[henrique@archlinux Win32]$ optirun -vv wine Dishonored.exe 
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  18
  Current serial number in output stream:  19
[  579.441524] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  579.441558] [DEBUG]Socket closed.
[  579.441578] [DEBUG]Killing all remaining processes.

And the same if I run a steam game:

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  18
  Current serial number in output stream:  19
Game removed: AppID 620 "Portal 2", ProcID 4932 

I've followed the Wiki_Bumblebee to install bumblebee and using Intel/Nvidia.

Any ideas to solve this issue? I've found a lot of thing about this issue, but nothing to solve my problem.

Thanks a lot.

EDIT:

The problem was the dependencies with nvidia-340xx.

I've installed all the correct dependencies and now works!

[henrique@archlinux ~]$ pacman -Q | grep -i -e libgl -e nvidia -e nouveau
lib32-mesa-libgl 10.5.3-1
lib32-nvidia-340xx-utils 340.76-1
lib32-opencl-nvidia-340xx 340.76-1
libglade 2.6.4-5
mesa-libgl 10.5.3-1
nvidia-340xx-dkms 340.76-4
nvidia-340xx-utils 340.76-2
opencl-nvidia-340xx 340.76-2

Last edited by HenriqueNunnes (2015-04-15 00:49:04)

Offline

#2 2015-04-01 18:46:23

HenriqueNunnes
Member
Registered: 2013-03-29
Posts: 41

Re: [SOLVED] X Error of failed request: BadValue - optirun/primusrun

So guys... Any suggestion?

Offline

#3 2015-05-07 14:12:10

fwolf
Member
Registered: 2012-11-18
Posts: 3

Re: [SOLVED] X Error of failed request: BadValue - optirun/primusrun

Works for me, thanks!

$ pacman -Q | grep -i -e libgl -e nvidia -e nouveau
lib32-mesa-libgl 10.5.4-1
lib32-nvidia-340xx-utils 340.76-1
lib32-opencl-nvidia-340xx 340.76-1
libglade 2.6.4-5
mesa-libgl 10.5.4-1
nvidia-340xx 340.76-8
nvidia-340xx-utils 340.76-2
opencl-nvidia-340xx 340.76-2

Card: NVIDIA GT218 [GeForce 210]

Offline

#4 2016-02-02 18:25:02

magesing
Member
Registered: 2016-02-02
Posts: 8

Re: [SOLVED] X Error of failed request: BadValue - optirun/primusrun

If you're using mesa-libgl are you using your graphics card at all?

I'm getting a  similar error when I try and run abaqus cae:

    [mgesing@hal 2D]$ abaqus cae
    Abaqus License Manager checked out the following license(s):
    "cae" release 6.14 from Flexnet server 132.156.102.238
    <12 out of 20 licenses remain available>.
    X Error: code 2 major 154 minor 3: BadValue (integer parameter out of range for operation).  
    fmd_GLContext::create(): glXCreateContext() failed.
    terminate called after throwing an instance of 'nex_PrimException<ipc_IPCMsgErrorTypeEnm, 1>'
    Abaqus Error: Abaqus/CAE Kernel exited with an error.

It does launch if I install mesa-libgl instead of nvida-340xx-libgl, however, the performance of other graphical applications is much worse while using mesa. (Unigraphics NX is basically unsuable on my system without hardware acceleration),
If I could get all programs working with nvidia-340xx-libgl I would probably have much better performance. (my current workaround is to launch abaqus cae with the -mesa switch which prevents just cae from using the graphics hardware).

Last edited by magesing (2016-02-02 18:25:45)

Offline

Board footer

Powered by FluxBB