LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-25-2017, 08:22 AM   #1
Bad Blue Bull
Member
 
Registered: Jul 2017
Distribution: Slackware 14.2
Posts: 42

Rep: Reputation: Disabled
Question libva crash (Maximum number of clients reached)


Hi. I have such problem with libva:
Code:
> vainfo
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
/libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
|libva info: Found init function __vaDriverInit_0_38
|libva info: VA-API version 0.38.1
|libva info: va_getDriverName() returns 0
\<<repeated many many times>>
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_38
Maximum number of clients reachedFloating exception
All vid players except Kplayer (which also doesn't work fully OK) crash + flash plugin crashes on some pages (sometimes it's video stream sometimes not, www.yandex.ru for example, reload page leads to another crash).
I can't tell for sure whether this trouble exists since intallation was done (but it's more likely) or smth was broken after I upgraded all packages. I tried to startx after renaming xorg.conf (suspecting it's down to my nvidia driver) but same result. I use Slackware 14.2 64 bit.

Last edited by Bad Blue Bull; 07-25-2017 at 08:29 AM.
 
Old 07-25-2017, 08:53 AM   #2
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 961

Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
Hello,

Looks like you use vdpau-video and libvdpau-va-gl together which creates this infinite loop between VA-API and VDPAU.

Since you have an nvidia videocard, you should use vdpau-video only. To fix your issue, remove libvdpau-va-gl, or ensure that scripts /etc/profile.d/vdpau-va-gl.{c}sh are not executable.


On my side, I have an nvidia video-card and vdpau-video is installed, but not libvdpau-va-gl. If I install this package and run VDPAU_DRIVER=va_gl vainfo (/etc/profile.d/vdpau-va-gl.sh is not executable), I get the same infinite loop issue :
Code:
$ su -
$ installpkg libvdpau-va-gl-0.4.2-x86_64-1_SBo.tgz 
...
$ VDPAU_DRIVER=va_gl vainfo
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_38
...
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_38
Maximum number of clients reachedFloating point exception

--
SeB

Last edited by phenixia2003; 07-25-2017 at 09:06 AM.
 
1 members found this post helpful.
Old 07-25-2017, 10:46 AM   #3
Bad Blue Bull
Member
 
Registered: Jul 2017
Distribution: Slackware 14.2
Posts: 42

Original Poster
Rep: Reputation: Disabled
phenixia2003 thanks for your reply, I removed libvdpau-va-gl and restarted x, flash no longer crashes on sites it used to do before but still can't play videos with vlc...
Code:
> vainfo
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_38
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
Floating exception
 
Old 07-25-2017, 11:05 AM   #4
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 961

Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
Hello,

Quote:
Originally Posted by Bad Blue Bull View Post
phenixia2003 thanks for your reply, I removed libvdpau-va-gl and restarted x, flash no longer crashes on sites it used to do before but still can't play videos with vlc...
Code:
> vainfo
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_38
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
Floating exception
Hmm, you removed libvdpau-va-gl package, but the scripts /etc/profile.d/vdpau-va-gl.{sh,csh} are always present (*). Remove them, relog in, restart X, and retry to check if that solve the issue.

(*) those scripts are present even when the package is removed because libvdpau-va-gl.SlackBuild installs them as .new files. snippet of libvdpau-va-gl.SlackBuild:

Code:
....
mkdir -p $PKG/etc/profile.d
cp $CWD/profile.d/vdpau-va-gl.sh $PKG/etc/profile.d/vdpau-va-gl.sh.new
cp $CWD/profile.d/vdpau-va-gl.csh $PKG/etc/profile.d/vdpau-va-gl.csh.new
chown root:root $PKG/etc/profile.d/*
chmod 755 $PKG/etc/profile.d/*
....
--
SeB

Last edited by phenixia2003; 07-25-2017 at 11:11 AM.
 
1 members found this post helpful.
Old 07-25-2017, 11:30 AM   #5
elcore
Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 677

Rep: Reputation: Disabled
Additionally, if you're using the nvidia driver, you may have to specify the right driver in:

/etc/profile.d/vdpau.sh
Code:
export VDPAU_DRIVER="nvidia"
/etc/profile.d/vdpau.csh
Code:
setenv VDPAU_DRIVER "nvidia"
because these files default to nouveau driver.
 
1 members found this post helpful.
Old 07-25-2017, 11:59 AM   #6
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 961

Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
Hello,

Quote:
Originally Posted by elcore View Post
Additionally, if you're using the nvidia driver, you may have to specify the right driver in:

/etc/profile.d/vdpau.sh
Code:
export VDPAU_DRIVER="nvidia"
/etc/profile.d/vdpau.csh
Code:
setenv VDPAU_DRIVER "nvidia"
because these files default to nouveau driver.
By default, VDPAU_DRIVER is not set when /etc/profile.d/vdpau.{csh,sh} is executed :

Code:
$ grep -E "^[[:space:]]*export VDPAU" /etc/profile.d/vdpau.sh
export VDPAU_LOG=0

$ grep -E "^#[[:space:]]*export VDPAU" /etc/profile.d/vdpau.sh
#export VDPAU_DRIVER="nvidia"
#export VDPAU_DRIVER="nouveau"
#export VDPAU_DRIVER="r300"
#export VDPAU_DRIVER="r600"
#export VDPAU_DRIVER="radeonsi"
#export VDPAU_DRIVER="va_gl"
--
SeB
 
1 members found this post helpful.
Old 07-25-2017, 12:10 PM   #7
elcore
Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 677

Rep: Reputation: Disabled
You're right, it's the libvdpau package that I built on 14.1 that defaults to nouveau, not the official libvdpau package that is shipped.
 
Old 07-25-2017, 01:14 PM   #8
Bad Blue Bull
Member
 
Registered: Jul 2017
Distribution: Slackware 14.2
Posts: 42

Original Poster
Rep: Reputation: Disabled
phenixia2003 no, I didn't say I've reset executable bits for these scripts...
Code:
> ls -l /etc/profile.d/vdp*
-rw-r--r-- 1 root root  38 Jul  2  2016 /etc/profile.d/vdpau-va-gl.csh
-rw-r--r-- 1 root root  56 Jul  2  2016 /etc/profile.d/vdpau-va-gl.sh
-rwxr-xr-x 1 root root 525 Jul 25 21:03 /etc/profile.d/vdpau.csh
-rwxr-xr-x 1 root root 524 Jul 25 21:03 /etc/profile.d/vdpau.sh
so I've set VDPAU_DRIVER to nvidia and not I have this:
Code:
> vainfo
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_38
Floating exception
update: restarted x and now this is it:
Code:
> vainfo
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_38
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
Floating exception

Last edited by Bad Blue Bull; 07-25-2017 at 01:26 PM.
 
Old 07-25-2017, 01:41 PM   #9
elcore
Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 677

Rep: Reputation: Disabled
Interested because I never used that one before, I went to check and I get different output:

Code:
vainfo 
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
Yet, vdpauinfo returns the usual normal output and the vdpau library works fine here (in mplayer, ffplay)
Could be the hardware doesn't support *va_gl.so. What does is say mplayer -vo vdpau video.mpg ?
 
Old 07-25-2017, 02:03 PM   #10
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 961

Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
Hello,

Quote:
Originally Posted by Bad Blue Bull View Post
Code:
> vainfo
...
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
Floating exception
Seems you have a script which sets VDPAU_DRIVER to va_gl somewhere else, or, you forgot to log out before restarting X, and VDPAU_DRIVER is always set to va_gl.

So, I suggest you to log out, then log in, start X, and post the ouput of commands below :

Code:
$ echo $VDPAU_DRIVER

$ VDPAU_DRIVER=va_gl vainfo

$ VDPAU_DRIVER=nvidia vainfo
On my side, these commands return:
Code:
$ echo $VDPAU_DRIVER

$ VDPAU_DRIVER=va_gl vainfo
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_38
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
Floating point exception

$ VDPAU_DRIVER=nvidia vainfo
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.38 (libva 1.6.2)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG4Simple            : VAEntrypointVLD
      VAProfileMPEG4AdvancedSimple    : VAEntrypointVLD
      VAProfileH264Baseline           : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
--
SeB
 
Old 07-25-2017, 02:36 PM   #11
Bad Blue Bull
Member
 
Registered: Jul 2017
Distribution: Slackware 14.2
Posts: 42

Original Poster
Rep: Reputation: Disabled
Really haven't logged out, now I have this output:
Code:
bash-4.3$ echo $VDPAU_DRIVER
nvidia

bash-4.3$ VDPAU_DRIVER=va_gl vainfo
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_38
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
Floating point exception

bash-4.3$ VDPAU_DRIVER=nvidia vainfo
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so                                                                                
libva info: Found init function __vaDriverInit_0_38                                                                                          
Floating point exception
smth wrong with nvidia...

Last edited by Bad Blue Bull; 07-25-2017 at 02:57 PM. Reason: update
 
Old 07-25-2017, 02:59 PM   #12
Bad Blue Bull
Member
 
Registered: Jul 2017
Distribution: Slackware 14.2
Posts: 42

Original Poster
Rep: Reputation: Disabled
I uncommented that setenv VDPAU_DRIVER=nvidiea in /etc/profile.d/vdpau.csh and vdpau.sh scripts mentioned.
Upd: xine is working, that's good but vlc still crashes.
commented those lines back, so this is what I have now:
Code:
bash-4.3$ echo $VDPAU_DRIVER
(undefined)
bash-4.3$ VDPAU_DRIVER=nvidia vainfo
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_38
Floating point exception

Last edited by Bad Blue Bull; 07-25-2017 at 06:13 PM.
 
Old 07-26-2017, 01:49 AM   #13
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
I ran into this problem a while back. I rebuilt libvdpau static made sure no .so files. rebuilt my medida did this all the way through 14.2. current I have no issue.
I had to do this because libvdpau is shared so much caused issues with nvidia and programs like kdenlive. kplayer and gmedia player use libvidpau for rendering on gpu for opensource module.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Gtk-WARNING **: cannot open display: :0, Maximum number of clients reached allenlinux Linux - Newbie 0 09-17-2014 05:44 AM
IPv6: Maximum number of routes reached, consider increasing route/max shailendra7479@gmail.com Linux - Kernel 5 12-23-2013 10:11 AM
X11: Maximum number of clients reached willysr Slackware 6 04-18-2012 02:21 PM
Maximum number of clients reachedThunar: Cannot open display: hackum Linux - Newbie 1 07-05-2011 01:10 AM
Maximum number of clients svetlio0o Slackware 4 12-19-2008 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration