Fedora 35 - VS Code, Skype, Caprine, Signal crash with NVIDIA driver

I upgraded my Fedora 34 installation to 35 (beta) and I am having a problem when trying to run either Visual Studio Code, Skype, Signal or Caprine (perhaps others as well). I have installed the latest NVIDIA drivers and on both X11 and Wayland sessions these applications crash. Note that on Fedora 34 I had no such problem and when I switch to the Fedora 35 Nouveau driver there is also no problem.

The following is the log from VS Code which indicates a failure when trying to use the GPU. Has anyone else encountered this issue?

libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[main 2021-10-01T06:16:29.308Z] Starting VS Code
[main 2021-10-01T06:16:29.309Z] from: /usr/share/code/resources/app
[main 2021-10-01T06:16:29.309Z] args: {
  _: [],
  diff: false,
  add: false,
  goto: false,
  'new-window': false,
  'reuse-window': false,
  wait: false,
  help: false,
  'list-extensions': false,
  'show-versions': false,
  version: false,
  verbose: true,
  status: false,
  'prof-startup': false,
  'no-cached-data': false,
  'prof-v8-extensions': false,
  'disable-extensions': false,
  'disable-gpu': false,
  telemetry: false,
  debugRenderer: false,
  logExtensionHostCommunication: false,
  'skip-release-notes': false,
  'skip-welcome': false,
  'disable-telemetry': false,
  'disable-updates': false,
  'disable-keytar': false,
  'disable-workspace-trust': false,
  'disable-crash-reporter': false,
  'crash-reporter-id': '7520f941-0a5b-4324-8292-0ab4a32a1f71',
  'skip-add-to-recently-opened': false,
  'unity-launch': false,
  'open-url': false,
  'file-write': false,
  'file-chmod': false,
  'driver-verbose': false,
  force: false,
  'do-not-sync': false,
  trace: false,
  'force-user-env': false,
  'force-disable-user-env': false,
  'open-devtools': false,
  __sandbox: false,
  'no-proxy-server': false,
  'no-sandbox': false,
  nolazy: false,
  'force-renderer-accessibility': false,
  'ignore-certificate-errors': false,
  'allow-insecure-localhost': false,
  logsPath: '/home/panos/.config/Code/logs/20211001T081629'
}
[main 2021-10-01T06:16:29.311Z] Resolving machine identifier...
[main 2021-10-01T06:16:29.311Z] Resolved machine identifier: 20e2c66df7497c395a4c75420051147ee69cdbb836b501a330aea395db9ef699
[main 2021-10-01T06:16:29.312Z] Main->SharedProcess#connect
[main 2021-10-01T06:16:29.379Z] StorageMainService: creating global storage
[main 2021-10-01T06:16:29.379Z] lifecycle (main): phase changed (value: 2)
[main 2021-10-01T06:16:29.380Z] windowsManager#open
[main 2021-10-01T06:16:29.380Z] windowsManager#open pathsToOpen [
  {
    workspace: { id: 'fb08d6d047ba228e9d7d365ebb0efd48', uri: [g] },
    exists: true
  }
]
[main 2021-10-01T06:16:29.380Z] IPC Object URL: Registered new channel vscode:eba472c2-59a6-4829-b857-f62bc6d5bdd1.
[main 2021-10-01T06:16:29.381Z] window#validateWindowState: validating window state on 1 display(s) { mode: 1, x: 159, y: 60, width: 1621, height: 992 }
[main 2021-10-01T06:16:29.381Z] window#validateWindowState: 1 monitor working area { x: 0, y: 29, width: 1920, height: 1051 }
[main 2021-10-01T06:16:29.381Z] window#ctor: using window state { mode: 1, x: 159, y: 60, width: 1621, height: 992 }
[main 2021-10-01T06:16:29.473Z] StorageMainService: creating workspace storage (fb08d6d047ba228e9d7d365ebb0efd48)
[main 2021-10-01T06:16:29.473Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 1, emptyToRestore: 0, emptyToOpen: 0)
[main 2021-10-01T06:16:29.481Z] lifecycle (main): phase changed (value: 3)
[main 2021-10-01T06:16:29.481Z] update#setState idle
[main 2021-10-01T06:16:29.481Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2021-10-01T06:16:29.542Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[7351:1001/081629.548382:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[7351:1001/081629.548398:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 1 time(s)
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[7351:1001/081629.867479:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[7351:1001/081629.867491:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 2 time(s)
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[7351:1001/081630.117884:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[7351:1001/081630.117898:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 3 time(s)
[7449:1001/081630.124539:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for swiftshader
[7449:1001/081630.124664:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[7351:1001/081630.280094:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[7351:1001/081630.280108:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 4 time(s)
[7463:1001/081630.286053:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for swiftshader
[7463:1001/081630.286152:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[7351:1001/081630.464787:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[7351:1001/081630.464826:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 5 time(s)
[7471:1001/081630.483761:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for swiftshader
[7471:1001/081630.484013:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[7351:1001/081630.630623:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[7351:1001/081630.630637:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 6 time(s)
[7485:1001/081630.633262:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for disabled
[7485:1001/081630.633324:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[7351:1001/081630.772263:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[7351:1001/081630.772274:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 7 time(s)
[7496:1001/081630.775074:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for disabled
[7496:1001/081630.775139:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[7351:1001/081630.897463:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[7351:1001/081630.897478:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 8 time(s)
[7504:1001/081630.900399:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for disabled
[7504:1001/081630.900484:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[7351:1001/081631.023357:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[7351:1001/081631.023374:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 9 time(s)
[7351:1001/081631.023381:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.
/dev/fd/3: No such file or directory
Server response:
/dev/fd/3: No such file or directory
Server response:

And this is the error message that Caprine generates:

[8707:1001/082508.327324:FATAL:gpu_data_manager_impl_private.cc(442)] GPU process isn't usable. Goodbye.
[1]    8707 trace trap (core dumped)  ./caprine

Is your nvidia gpu set as primary?. The errors may be caused by the system trying to switch between gpus for the more demanding apps.

You can also explicitly tell each app to use the discrete nvidia gpu when you start it by right clicking on the icon and selecting from the menu there.
edit:
(I note that I assumed you are on a laptop with dual GPUs. My comment is not applicable if this is not the case)

My computer is a desktop with a NVIDIA card, not a laptop.

I have not tried the apps you mention although I do use nvidia GPUs almost exclusively.

You are on fedora 35.
Did you install the nvidia driver from rpmfusion? or somewhere else?
What is the driver version you are using? Mine is 470.74-1 from rpmfusion.
What kernel version are you using?

I installed the driver from RPM Fusion. All software has been updated to the versions as of today. I think that all of the applications which crash are Electron based.

kernel:

5.14.9-300.fc35.x86_64

vainfo:

libva info: VA-API version 1.12.0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_12
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.12 (libva 2.12.0)
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
      <unknown profile>               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD

nvidia-smi:

Sat Oct  2 01:00:29 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.74       Driver Version: 470.74       CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Quadro P620         Off  | 00000000:05:00.0  On |                  N/A |
| 34%   40C    P0    N/A /  N/A |    287MiB /  1997MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      2045      G   /usr/libexec/Xorg                  75MiB |
|    0   N/A  N/A      2241      G   /usr/bin/gnome-shell              164MiB |
|    0   N/A  N/A      5761      G   ...AAAAAAAAA= --shared-files       41MiB |
|    0   N/A  N/A      6505      G   /usr/bin/gjs                        2MiB |
+-----------------------------------------------------------------------------+

That looks like this

Links to additional reports are also there.

That is correct. I managed to have VS Code and Caprine running by adding the command line option --no-sandbox. For Skype and Signal, I installed the Flatpak versions which work properly. Obviously, all the Electron applications out there have to upgrade to the fixed Electron version.

1 Like

Microsoft Teams crash too.

1 Like