[Bug]: libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Electron Version
14.0.0
What operating system are you using?
Ubuntu
Operating System Version
Ubuntu
What arch are you using?
Other (specify below)
Last Known Working Electron version
No response
Expected Behavior
Launches electron app
Actual Behavior
Error
> npm run build && npm run start:dev
> zeno@1.0.0 build
> tsc ./server/index.ts && tsc ./server/preload.ts && tsc ./server/renderer.ts
> zeno@1.0.0 start:dev
> electron server/index.js
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[17680:0909/190849.731802:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
^C/home/******/Zeno-IDE-1/node_modules/electron/dist/electron exited with signal SIGINT```
### Testcase Gist URL
_No response_
### Additional Information
_No response_
some news? i’m with the same error!
some news? i’m with the same error!
Yea. I just uninstalled electron then reinstalled. It worked
I had this same issue on electron 12 and I solved it by changing my graphics drivers from the nouveau driver.
Same error on Fedora 35, when starting an electron-app with npm start :
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [10225:0204/194009.584958:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process. [10225:0204/194013.601933:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times! [10225:0204/194023.197704:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times! [10225:0204/194025.045683:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
- Fedora Linux 35 (Workstation Edition)
- Node.js 16.13.0
- electron 17.0.0
- Chromium 98.0.4758.74
Same issue here with Fedora 35 when running the ‘Hello World’ tutorial
- Fedora 35 Workstation
- Node 16.14.0
- Electron 18.0.0
- Chrome 99.0.4844.84 (Official Build) (64-bit)
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [19921:0329/134549.108569:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process. [19921:0329/134553.145315:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, «bump»), and we’ll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.
- Index
- » Applications & Desktop Environments
- » [SOLVED] iHD Hardware Video Acceleration Fails
Pages: 1
#1 2022-04-03 10:23:57
- Dante777
- Member
- From: Greece
- Registered: 2016-07-12
- Posts: 29
[SOLVED] iHD Hardware Video Acceleration Fails
Hi there!
Today i realized that Hardware Video Acceleration didn’t work.
vainfo
libva error: /usr/lib/dri/iHD_drv_video.so init failed
vaInitialize failed with error code -1 (unknown libva error),exit
I’m running KDE Plasma on Wayland, on an integrated laptop gpu:
00:02.0 VGA compatible controller: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] (rev 02)
and VA was working fine until recently.
Now, i could only get it back by installing the «libva-intel-driver» package, which supposedly supports only older Intel chips. [<Broadwell]
libva error: /usr/lib/dri/iHD_drv_video.so init failed
vainfo: VA-API version: 1.13 (libva 2.14.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.4.1
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointEncSlice
VAProfileVP9Profile2 : VAEntrypointVLD
This is a regression, but i cannot figure out what caused it.
Anyway, all is up and running again
EDIT: Figured it out by reading a post about Firefox’s hardware acceleration, on r/archlinux
Last edited by Dante777 (2022-04-03 10:26:05)
#2 2022-04-06 16:21:40
- 0BADC0DE
- Member
- From: Regnum Utriusque Siciliae
- Registered: 2018-02-21
- Posts: 229
Re: [SOLVED] iHD Hardware Video Acceleration Fails
Dante777 wrote:
…
This is a regression, but i cannot figure out what caused it.
Anyway, all is up and running againEDIT: Figured it out by reading a post about Firefox’s hardware acceleration, on r/archlinux
Hi. Why don’t you link whatever detail you have found?
That would help people like me instead of wasting time in searching on reddit…
Maybe Computers Will Never Become As Intelligent
As Humans. Surely They Won’t Ever Become So Stupid.
#3 2022-04-06 16:47:13
- Dante777
- Member
- From: Greece
- Registered: 2016-07-12
- Posts: 29
Re: [SOLVED] iHD Hardware Video Acceleration Fails
0BADC0DE wrote:
Hi. Why don’t you link whatever detail you have found?
That would help people like me instead of wasting time in searching on reddit…
Not much info there, plus i explained how i «solved» the issue, but if you insist: https://www.reddit.com/r/archlinux/comm … eleration/
#4 2022-04-06 16:50:38
- 0BADC0DE
- Member
- From: Regnum Utriusque Siciliae
- Registered: 2018-02-21
- Posts: 229
Re: [SOLVED] iHD Hardware Video Acceleration Fails
Dante777 wrote:
0BADC0DE wrote:
Hi. Why don’t you link whatever detail you have found?
That would help people like me instead of wasting time in searching on reddit…Not much info there, plus i explained how i «solved» the issue, but if you insist: https://www.reddit.com/r/archlinux/comm … eleration/
libva-intel-driver is » VA-API implementation for Intel G45 and HD Graphics family», which is not just the old graphics but also newer: https://wiki.archlinux.org/title/Hardwa … tion#Intel
You said the vainfo error is a regression. Where have you found such an evidence?
Last edited by 0BADC0DE (2022-04-06 17:01:18)
Maybe Computers Will Never Become As Intelligent
As Humans. Surely They Won’t Ever Become So Stupid.
#5 2022-04-06 17:00:57
- Dante777
- Member
- From: Greece
- Registered: 2016-07-12
- Posts: 29
Re: [SOLVED] iHD Hardware Video Acceleration Fails
0BADC0DE wrote:
You said the vainfo error is a regression. Where have you found such an evidence?
A regression (in the general sense of) as in «something that used to work, does not anymore, without me being responsible for that drawback».
Quoting myself here: «This is a regression, but i cannot figure out what caused it.»
#6 2022-04-06 17:42:39
- progandy
- Member
- Registered: 2012-05-17
- Posts: 5,071
Re: [SOLVED] iHD Hardware Video Acceleration Fails
The intel-media-driver (iHD) 22.2.2 shipped by arch linux seems to be buggy as well.. I verified the old version 21.4.3 is working on my Kaby Lake (G) system. (it requires an older intel-gmmlib).
There has been a new release 22.3.1, maybe that is better, too.
| alias CUTF=’LANG=en_XX.UTF-8@POSIX ‘ |
#7 2022-04-07 06:11:59
- 0BADC0DE
- Member
- From: Regnum Utriusque Siciliae
- Registered: 2018-02-21
- Posts: 229
Re: [SOLVED] iHD Hardware Video Acceleration Fails
progandy wrote:
The intel-media-driver (iHD) 22.2.2 shipped by arch linux seems to be buggy as well.. I verified the old version 21.4.3 is working on my Kaby Lake (G) system. (it requires an older intel-gmmlib).
There has been a new release 22.3.1, maybe that is better, too.
In my case, I tried to revert back to intel-gmmlib-22.0.3-1 and both intel-media-driver-21.4.3-1 and intel-media-driver-21.4.1-1.
None worked (I even did reboots) with my setup (TigerLake-LP GT2 [Iris Xe Graphics]) because intel-media-driver wants ibigdgmm.so.11 and not libigdgmm.so.12.
Trying an extra downgrade with gmmlib.
B I N G O ! !
My setup only works with this combination:
— intel-gmmlib-21.3.5-1 (2021-12-26)
— intel-media-driver-21.4.1-1 (2021-11-11)
My setup won’t work with intel-media-driver-21.4.3-1 (2021-12-02) and subsequent version(s).
I will pin these in pacman config (IgnorePkg).
BTW, packages can be downloaded here and here.
Once old packages have been removed with «sudo pacman —noconfirm -Rsn intel-media-driver intel-gmmlib», the local installation command is «sudo pacman -Qv <local_package_file_path>» for each downloaded package file.
I have these variables in my environment:
export VDPAU_DRIVER=va_gl
export LIBVA_DRIVER_NAME=iHD
Thanks to progandy and Dante777!
P.S.
There is an AUR package called downgrade which can help greatly to … downgrade packages.
UPDATE 2022-04-08
It looks like latest intel-media-driver package version 22.2.2-2 works with intel-gmmlib version 22.1.2-1.
Last edited by 0BADC0DE (2022-04-08 13:01:05)
Maybe Computers Will Never Become As Intelligent
As Humans. Surely They Won’t Ever Become So Stupid.
#8 2022-04-08 13:04:23
- Dante777
- Member
- From: Greece
- Registered: 2016-07-12
- Posts: 29
Re: [SOLVED] iHD Hardware Video Acceleration Fails
Latest update to «intel-media-driver 22.2.2-2» resolved the issue.
#9 2022-04-08 13:06:53
- 0BADC0DE
- Member
- From: Regnum Utriusque Siciliae
- Registered: 2018-02-21
- Posts: 229
Re: [SOLVED] iHD Hardware Video Acceleration Fails
Dante777 wrote:
Latest update to «intel-media-driver 22.2.2-2» resolved the issue.
Confirmed. This is why I put an update to my latest message.
And VLC reports it’s using hw acceleration while intel_gpu_top confirms it.
Thanks for the heads up.
Last edited by 0BADC0DE (2022-04-08 13:08:20)
Maybe Computers Will Never Become As Intelligent
As Humans. Surely They Won’t Ever Become So Stupid.
I had the same issue, browser was sluggish and even moving mouse would make youtube drop frames, thus why I was looking into enabling hardware acceleration.
Running just vainfo would fail but:
$ vainfo --display drm --device /dev/dri/renderD128
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Skylake - 2.1.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileH264ConstrainedBaseline: VAEntrypointFEI
VAProfileH264ConstrainedBaseline: VAEntrypointStats
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264Main : VAEntrypointFEI
VAProfileH264Main : VAEntrypointStats
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointFEI
VAProfileH264High : VAEntrypointStats
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
I realized the OS is only looking into first GPU for vainfo and HWA, and after changing prime GPU using:
$ sudo nvidia-settings
$ # or alternatively
$ sudo prime-select intel
And resetting, both started to work:
$ vainfo --display drm --device /dev/dri/renderD129
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Mesa Gallium driver 20.0.8 for NV118
vainfo: Supported profile and entrypoints
VAProfileNone : VAEntrypointVideoProc
My CPU is 20°C cooler and I can scroll smoothly and watch videos without frames dropping.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
