You are not logged in.

#1 2015-12-25 14:33:52

NaKroTeK
Member
Registered: 2015-12-25
Posts: 6

Bumblebee glxspheres32 and cs1.6 steam not working

Hello and merry Christmas !

I'm trying to get optirun working properly but i ran into some problems.
After following the documentation, i tried to launch my good old steam cs1.6 !
but no working, it does work without optirun but with poor performance.

Error from steam with and without this command option:

LD_PRELOAD="libpthread.so.0 libGL.so.1" __GL_THREADED_OPTIMIZATIONS=1 optirun %command%

Error

Game update: AppID 10 "Counter-Strike", ProcID 7328, IP 0.0.0.0:0
ERROR: ld.so: object '/home/$USER/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
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 10 "Counter-Strike", ProcID 7328 

I had install & re-install the 32-bit lib that might missing.

$pacman -Q | grep -i -e libgl -e nvidia -e nouveau
lib32-mesa-libgl 11.1.0-1
lib32-nvidia-utils 358.16-1
lib32-opencl-nvidia-340xx 340.96-1
libglade 2.6.4-5
mesa-libgl 11.1.0-1
nvidia-340xx 340.96-2.1
nvidia-340xx-utils 340.96-1
xf86-video-nouveau 1.0.12-1

So after some googling, i test the glxspeheres apps. glxspheres64 works great, but glxspheres32 don't :

$glxspheres32 ----->> OK !
$optirun glxspheres32
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x20
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

I'm using a Asus U35JC nvidia 310M card.

uname -a:

Linux alexarchhost 4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015 x86_64 GNU/Linux

I am open to any suggestion I'm very clueless now.
Thank you for your time
Best regards

Offline

#2 2015-12-25 20:41:43

NaKroTeK
Member
Registered: 2015-12-25
Posts: 6

Re: Bumblebee glxspheres32 and cs1.6 steam not working

more information:

$optirun ./glsanity
Running 32-bit tests
info:  libGL.so.1:      loaded from: /usr/lib32/librrfaker.so
info:  X display:       :0
info:  X Ext. "GLX":    present
info:  X Ext. "NV-GLX": not present; OK for non-nVidia drivers
info:  GLX server:      VirtualGL
info:  GLX client:      VirtualGL
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:  19
  Current serial number in output stream:  20
Running 64-bit tests
info:  libGL.so.1:      loaded from: /usr/lib/librrfaker.so
info:  X display:       :0
info:  X Ext. "GLX":    present
info:  X Ext. "NV-GLX": not present; OK for non-nVidia drivers
info:  GLX server:      VirtualGL
info:  GLX client:      VirtualGL
info:  GL vendor:       NVIDIA Corporation
info:  GL renderer:     GeForce 310M/PCIe/SSE2
info:  GL version:      3.3.0 NVIDIA 340.96

and pastebin https://ptpb.pw/r8sJ of :

$LD_DEBUG=libs VGL_VERBOSE=1 optirun --debug glxspheres32 |& tee /tmp/ld-debug.txt 

Last edited by NaKroTeK (2015-12-25 23:35:04)

Offline

#3 2015-12-26 10:21:31

skualito
Member
Registered: 2008-11-19
Posts: 203

Re: Bumblebee glxspheres32 and cs1.6 steam not working

Is your system *fully* up-to-date?

pacman -Syyu

From your pastebin it would seem that lib32-glibc is part of your problem:

11195:    /usr/lib32/libpthread.so.0: error: symbol lookup error: undefined symbol: pthread_setname_np, version GLIBC_2.0 (fatal)
[VGL] NOTICE: Replacing dlopen("/usr/lib32/libdl.so.2") with dlopen("libdlfaker.so")
     11195:   
     11195:    calling init: /usr/lib32/libdlfaker.so
     11195:   
     11195:    /usr/lib32/libdlfaker.so: error: symbol lookup error: undefined symbol: dlsym (fatal)

Also, why do you have xf86-video-nouveau installed if you use proprietary driver?

Last edited by skualito (2015-12-26 10:22:56)

Offline

#4 2015-12-27 11:31:41

NaKroTeK
Member
Registered: 2015-12-25
Posts: 6

Re: Bumblebee glxspheres32 and cs1.6 steam not working

Hello skualito

My system is now *fully* up-to-date, nothing change. sad
And it was a tryout having xf86-video-nouveau installed (today removed "pacman -Rs").

I also noticed the error in the pastebin pretty sure VirtualGL don't intercept libGl, as mentionned in here : https://github.com/Bumblebee-Project/Bu … issues/273 there is the same error for a different lib around line 578 in the pastebin included : http://pastebin.com/MpSik6JG

Offline

#5 2015-12-27 14:16:45

skualito
Member
Registered: 2008-11-19
Posts: 203

Re: Bumblebee glxspheres32 and cs1.6 steam not working

My assumption about glibc was obviously wrong, I have the exact same output (until your "X Error of failed request" error) as you with:

$LD_DEBUG=libs VGL_VERBOSE=1 optirun --debug glxspheres32

Yet the command is working as intended for me.

Did you try downgrading the nvidia-drivers and see if they give the same error?

Offline

#6 2015-12-28 11:24:35

NaKroTeK
Member
Registered: 2015-12-25
Posts: 6

Re: Bumblebee glxspheres32 and cs1.6 steam not working

Hi,

I downgrade the nvidia-driver to version 393
I'm getting this :

[   24.132705] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

[   24.132757] [ERROR]Aborting because fallback start is disabled.

I'm trying the workaround mentionned in the wiki but no success.

Offline

#7 2015-12-28 11:48:17

NaKroTeK
Member
Registered: 2015-12-25
Posts: 6

Re: Bumblebee glxspheres32 and cs1.6 steam not working

I tried other regression, but nothing change or it was to much workaround to get it worked.

It might come from my system, but how I can I compare what is missing ?
It works without optirun, so i'm missing somthing in optirun no ?
Does that make sense ?

More info:

$pacman -Q | grep -i -e lib32

----->console output

Last edited by NaKroTeK (2015-12-28 11:55:41)

Offline

#8 2016-01-08 19:26:35

NaKroTeK
Member
Registered: 2015-12-25
Posts: 6

Re: Bumblebee glxspheres32 and cs1.6 steam not working

Problem Found & Solved !

:$ pacman -Qs nvidia

local/bumblebee 3.2.1-10
    NVIDIA Optimus support for Linux through VirtualGL
local/lib32-nvidia-utils 358.16-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia-340xx 340.96-1
    OpenCL implemention for NVIDIA (32-bit)
local/libvdpau 1.1.1-2
    Nvidia VDPAU library
local/nvidia-340xx 340.96-3
    NVIDIA drivers for linux, 340xx legacy branch
local/nvidia-340xx-utils 340.96-1
    NVIDIA drivers utilities
local/opencl-nvidia-346xx 346.59-1
    OpenCL implemention for NVIDIA (346 Series)

install lib32-nvidia-304xx-utils instead of opencl-nvidia-346xx and opencl-nvidia-340xx instead of opencl-nvidia-346xx. Or use 346xx everywhere. But don’t mix.

Arch wiki is not referring to this packages.

Source : https://github.com/Bumblebee-Project/Bu … issues/718

Offline

Board footer

Powered by FluxBB