Chromium share screen crash with NVIDIA proprietary driver on Wayland

I’m using the NVIDIA proprietary driver on Wayland with Fedora 35 Workstation.

But when I open Microsoft Teams in Chromium and try to share the screen throught the WebRTC Pipewire Support, see here for activation, Chromium crashes

Well, I guess we start by looking at your logs to see what they say:

I know that the Nvidia proprietary driver has better Wayland support now, but I don’t know if the work is complete. You could try logging into X to see if it works there. If it does, it’s most likely a Nvidia proprietary driver + Wayland issue.

Logs too long to post here, but here are the first part of it.

They show a segfault in nvidia library

$ journalctl -f
-- Journal begins at Thu 2021-11-04 14:53:01 CET. --
Jan 11 16:45:26 fedora gnome-shell[2816]: Ignoring length property that isn't a number at line 1857, col 24
Jan 11 16:45:27 fedora maestral[3695]: Shutting down threads...
Jan 11 16:45:27 fedora maestral[3695]: Sync aborted
Jan 11 16:45:27 fedora maestral[3695]: Paused
Jan 11 16:45:27 fedora systemd[2459]: app-gnome-maestral\x2dmaestral-3253.scope: Consumed 26.918s CPU time.
Jan 11 16:45:35 fedora systemd[2459]: app-flatpak-org.qbittorrent.qBittorrent-3215.scope: Consumed 12.790s CPU time.
Jan 11 16:45:38 fedora gnome-shell[2816]: Ignoring length property that isn't a number at line 1857, col 24
Jan 11 16:45:40 fedora org.gabmus.gfeeds.desktop[6385]: Error creating thumbnail for image `/home/ABRIDGED/.cache/org.gabmus.gfeeds/thumbnails/17f75052cec1395e5934a8882bd30fb5990c8279.png`
Jan 11 16:45:40 fedora org.gabmus.gfeeds.desktop[6385]: Error creating pixbuf for icon `/home/ABRIDGED/.cache/org.gabmus.gfeeds/thumbnails//17f75052cec1395e5934a8882bd30fb5990c8279.png`
Jan 11 16:45:40 fedora systemd[2459]: app-gnome-org.gabmus.gfeeds-6385.scope: Consumed 1min 20.513s CPU time.
Jan 11 16:45:57 fedora systemd[2459]: Started Application launched by gnome-shell.
Jan 11 16:45:57 fedora systemd[2459]: Started Application launched by gnome-shell.
Jan 11 16:45:58 fedora gnome-shell[14193]: ATTENTION: default value of option allow_rgb10_configs overridden by environment.
Jan 11 16:45:58 fedora gnome-shell[14193]: libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
Jan 11 16:45:58 fedora gnome-shell[14193]: [14228:14228:0111/164558.639552:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
Jan 11 16:45:58 fedora gnome-keyring-daemon[2477]: asked to register item /org/freedesktop/secrets/collection/login/5, but it's already registered
Jan 11 16:45:58 fedora gnome-shell[2816]: Source ID 143515 was not found when attempting to remove it
Jan 11 16:45:58 fedora gnome-keyring-daemon[2477]: asked to register item /org/freedesktop/secrets/collection/login/5, but it's already registered
Jan 11 16:46:00 fedora gnome-shell[14193]: [14185:14247:0111/164600.890630:ERROR:chrome_browser_main_extra_parts_metrics.cc(226)] crbug.com/1216328: Checking Bluetooth availability started. Please report if there is no report that this ends.
Jan 11 16:46:00 fedora gnome-shell[14193]: [14185:14247:0111/164600.890662:ERROR:chrome_browser_main_extra_parts_metrics.cc(229)] crbug.com/1216328: Checking Bluetooth availability ended.
Jan 11 16:46:00 fedora gnome-shell[14193]: [14185:14247:0111/164600.890671:ERROR:chrome_browser_main_extra_parts_metrics.cc(232)] crbug.com/1216328: Checking default browser status started. Please report if there is no report that this ends.
Jan 11 16:46:00 fedora gnome-shell[14193]: [14185:14247:0111/164600.966572:ERROR:chrome_browser_main_extra_parts_metrics.cc(236)] crbug.com/1216328: Checking default browser status ended.
Jan 11 16:46:14 fedora gnome-shell[14193]: [14411:26:0111/164614.187334:ERROR:webrtc_video_engine.cc(3474)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
Jan 11 16:46:14 fedora gnome-shell[14193]: [14411:26:0111/164614.187581:ERROR:webrtc_video_engine.cc(3474)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
Jan 11 16:46:14 fedora gnome-shell[14193]: [14411:26:0111/164614.187742:ERROR:webrtc_video_engine.cc(3474)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
Jan 11 16:46:14 fedora gnome-shell[14193]: [14411:26:0111/164614.187950:ERROR:webrtc_video_engine.cc(3474)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
Jan 11 16:46:14 fedora gnome-shell[14193]: [14411:26:0111/164614.188198:ERROR:webrtc_video_engine.cc(3474)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
Jan 11 16:46:14 fedora gnome-shell[14193]: [14411:26:0111/164614.188342:ERROR:webrtc_video_engine.cc(3474)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
Jan 11 16:46:14 fedora gnome-shell[14193]: [14411:26:0111/164614.188492:ERROR:webrtc_video_engine.cc(3474)] Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
Jan 11 16:46:17 fedora xdg-desktop-por[3438]: Unhandled parent window type 
Jan 11 16:46:17 fedora xdg-desktop-por[3438]: Failed to associate portal window with parent window 
Jan 11 16:46:23 fedora wireplumber[2910]: <WpPortalPermissionStorePlugin:0x55bac6881d50> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.215221:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.231957:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.249172:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.267785:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.284488:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.301398:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.365303:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.384388:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.426656:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.480002:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.523043:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.614931:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.633608:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.650878:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:23 fedora gnome-shell[14193]: [14185:14660:0111/164623.967660:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:24 fedora gnome-shell[14193]: [14185:14660:0111/164624.016755:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:24 fedora gnome-shell[14193]: [14185:14660:0111/164624.034569:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:24 fedora gnome-shell[14193]: [14185:14660:0111/164624.106932:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:24 fedora gnome-shell[14193]: [14185:14660:0111/164624.337006:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:24 fedora gnome-shell[14193]: [14185:14660:0111/164624.422258:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:24 fedora gnome-shell[14193]: [14185:14660:0111/164624.620630:ERROR:base_capturer_pipewire.cc(536)] Failed to get video stream: Zero size.
Jan 11 16:46:24 fedora audit[14185]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=14185 comm="DesktopMediaLis" exe="/usr/lib64/chromium-freeworld/chromium-freeworld" sig=11 res=1
Jan 11 16:46:24 fedora kernel: DesktopMediaLis[14653]: segfault at 40 ip 00007f844a349f70 sp 00007f8450b245e8 error 4 in libnvidia-glsi.so.495.46[7f844a30a000+70000]
Jan 11 16:46:24 fedora kernel: Code: 03 fd ff 48 8b 53 08 48 39 d0 74 0e 31 c0 5b c3 66 2e 0f 1f 84 00 00 00 00 00 8b 43 04 5b c3 66 2e 0f 1f 84 00 00 00 00 00 90 <8b> 07 85 c0 0f 94 c0 85 f6 0f 95 c1 20 c1 75 08 f3 c3 66 0f 1f 44
Jan 11 16:46:24 fedora audit: BPF prog-id=65 op=LOAD
Jan 11 16:46:24 fedora audit: BPF prog-id=66 op=LOAD
Jan 11 16:46:24 fedora audit: BPF prog-id=67 op=LOAD
Jan 11 16:46:24 fedora systemd[1]: Started Process Core Dump (PID 14662/UID 0).
Jan 11 16:46:24 fedora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@2-14662-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 11 16:46:36 fedora systemd-coredump[14663]: [🡕] Process 14185 (chromium-freewo) of user 1000 dumped core.                

By looking online, apparently I’m not the first one who finds that the NVIDIA drivers are buggy. I’m not the first one at all.

1 Like

Yeh, I had trouble with some Qt apps on Gnome when using Nvidia on a new F35 install, so I’ve just gone back to X for the moment. I don’t know what is expected to work and what not, but it’s not trivial to figure out and work around :frowning:

Nvidia + Wayland has been a problem for some time. The first release of fedora that allows those to work together has been 35 and it still only works for some instances and with nvidia driver version 495 only.

Nvidia and the wayland developers have been working together to improve the situation since the future of the desktop is wayland. A little bit of patience and feedback to the developers via bug reports is the way to go. The developers can only work on problems they are made aware of.

and where do I report bugs with NVIDIA drivers?

Search the web for “Nvidia report bug” brings me to this:

https://nvidia.custhelp.com/app/answers/detail/a_id/4512/~/i-found-a-bug%2C-where-do-i-go-to-report-it%3F

I would file a bug report 2 places.
First would be nvidia as shown above related to the nvidia driver, and the second would be on bugzilla.redhat.com against wayland. They should each show the problem as related to the nvidia driver & wayland, and each should reference the other so the developers have interaction on the same bug reports.

It’s still hapenning and I can’t share screen in work meetings.

I’ve reported to redhat here and to NVIDIA here

1 Like

I think you are still going to be stuck for a while. You are having problems with chromium share screen, but zoom also still prevents share screen with wayland.

Does it work for you when running xorg? I think zoom does. If so then that is a work-around that will allow you to keep going.

Jan Grulich has delivered a Chromium versions which allows you to share your screen under Wayland and NVIDIA proprietary drivers.

You can find here his pull request.

Mr. Grulich works as a Senior Software Engineer at Red Hat. He is part of desktop team, where he is responsible for all the work related to Qt and KDE. Jan is also a long-term KDE contributor and user and he is part of Fedora KDE SIG, a group of people taking care of KDE in Fedora.

https://fedoraproject.org/wiki/User:Jgrulich