Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 833951

Summary: net-im/zoom-5.9.3.1911: webcam video not showing in app
Product: Gentoo Linux Reporter: David Zaslavsky <diazona>
Component: Current packagesAssignee: Ulrich Müller <ulm>
Status: RESOLVED FIXED    
Severity: normal CC: dilfridge, jstein, mva
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description David Zaslavsky 2022-02-24 00:14:08 UTC
When I install Zoom from the ebuild, my webcam video does not show up in the app. I see a black screen where the video feed is supposed to appear, both in the settings page and in meetings. The symptoms are the same as https://bugs.gentoo.org/715106, but this is NOT resolved by setting USE=bundled-libjpeg-turbo, so as requested in that bug report, I'm creating a new one. (I actually did experience that bug at the time when it was current, and I fixed it by setting USE=bundled-libjpeg-turbo at the time. The video worked for a while, then stopped working again roughly a few months ago.)

I've tried reinstalling Zoom with each USE flag enabled and disabled (just in case), I've tried resetting my user-specific configuration settings for Zoom, and I've tried installing a couple of older versions going back as far as 5.8.6.739, the oldest version currently available in Portage. None of that makes a difference.

I went to Zoom's website https://zoom.us/download#client_4meeting and downloaded their Linux client, version 5.9.3 (1911). That actually _does_ work: I see my webcam video appearing within the app, as expected.

$ curl -O -L 'https://cdn.zoom.us/prod/5.9.3.1911/zoom_x86_64.tar.xz'
$ md5sum ~/Downloads/zoom_x86_64.tar.xz 
029ae0593aae58dfcc4403e9fe907505  /home/diazona/Downloads/zoom_x86_64.tar.xz
$ tar -Jxf ~/Downloads/zoom_x86_64.tar.xz -C ~/.local/opt/
$ ~/.local/opt/zoom/ZoomLauncher

Reproducible: Always

Steps to Reproduce:
1. emerge =net-im/zoom-5.9.3.1911
2. Open Zoom either through the desktop shortcut or by running `zoom` on the command line
3. Open the settings page in Zoom and go to 'Video'
Actual Results:  
The area which should show the webcam video is black

Expected Results:  
That area should show live video from my webcam

$ lsusb | grep -i webcam
Bus 001 Device 005: ID 046d:082c Logitech, Inc. HD Webcam C615



$ emerge --info net-im/zoom
Portage 3.0.30 (python 3.10.2-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-10.3.0, glibc-2.34-r8, 5.15.11-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.11-gentoo-x86_64-AMD_Ryzen_7_2700X_Eight-Core_Processor-with-glibc2.34
KiB Mem:    65887324 total,    430100 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 21 Feb 2022 23:30:01 +0000
Head commit of repository gentoo: ee1c9d5937f531c4ae0804e1b3d39968d6ebeeec
Head commit of repository ellipsix: eb7519ad4171db4635e4d13191e7243d3d7b07a6

Timestamp of repository holgersson-overlay: Mon, 21 Feb 2022 17:07:39 +0000
Head commit of repository holgersson-overlay: cf6a7673a5e1b4fdfe1ed830c30d9e7030b1564f

Timestamp of repository steam-overlay: Mon, 21 Feb 2022 17:07:36 +0000
Head commit of repository steam-overlay: c2ded7a207ca0892458d09df3f13e0415bda6db8

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
ccache version 4.5.1 [disabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.8.12_p1::gentoo, 3.9.10-r1::gentoo, 3.10.2-r1::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.1::gentoo
sys-devel/gcc:             10.3.0-r2::gentoo, 11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

acetylene09_local
    location: /usr/local/portage
    masters: gentoo

ellipsix
    location: /var/db/repos/ellipsix
    sync-type: git
    sync-uri: git://github.com/ellipsix/gentoo-overlay.git
    masters: gentoo

holgersson-overlay
    location: /var/db/repos/holgersson-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/holgersson-overlay.git
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

crossdev
    location: /var/db/repos/localrepo-crossdev
    masters: gentoo
    priority: 10

Installed sets: @local-active
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet --ask-enter-invalid --keep-going --verbose-conflicts"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gossamerhost.com http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j15"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp/portage"
SHELL="/bin/bash"
USE="X a52 aac aacs acl acpi activities alsa amd64 bash-completion bdplus bluray branding bzip2 cairo caps cdda cdr cjk cli crypt cups dbus declarative dri dts dvd dvdr editorconfig elogind encode exif flac fortran gdbm gif git gpm gui iconv icu ipv6 jpeg kde kerberos kwallet lcms libglvnd libnotify libtirpc lm_sensors mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp opus pam pango pcre pdf plasma png policykit ppds pulseaudio qalculate qml qt5 readline sdl seccomp semantic-desktop smp spell split-usr ssl startup-notification svg threads tiff truetype udev udisks unicode upower usb vlc vorbis vulkan widgets wxwidgets x264 xattr xcb xml xv xvid yubikey zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev roccat_konextd" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python3_10" RUBY_TARGETS="ruby26 ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 David Zaslavsky 2022-02-24 00:21:12 UTC
Oh I forgot to include this:

$ equery uses net-im/zoom
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for net-im/zoom-5.9.3.1911:
 U I
 + + bundled-libjpeg-turbo : Use bundled libturbojpeg instead of media-libs/libjpeg-turbo
 + + bundled-qt            : Use bundled Qt and icu instead of system-wide libs 
 - - opencl                : Use OpenCL for virtual background support (virtual/opencl) 
 + + pulseaudio            : Add support for PulseAudio sound server
 - - wayland               : Enable dev-libs/wayland backend
Comment 2 Ulrich Müller gentoo-dev 2022-02-25 06:33:20 UTC
I could reproduce this once, but then I couldn't any more.

What I did:

Reproduced the problem with zoom-5.9.3.1911 following the steps in the original report:

(In reply to David Zaslavsky from comment #0)
> 1. emerge =net-im/zoom-5.9.3.1911
> 2. Open Zoom either through the desktop shortcut or by running `zoom` on the
> command line
> 3. Open the settings page in Zoom and go to 'Video'
> Actual Results:  
> The area which should show the webcam video is black

Downgraded to previous version:
5.9.1.1380 -> black
5.8.6.739 -> video

At this point I thought that the issue appeared in 5.9.1.1380, and upgraded again to confirm this. However, the problem is gone now:
5.9.1.1380 -> video
5.9.3.1911 -> video

I'll investigate further.
Comment 3 José María Fernández González 2022-04-29 09:47:10 UTC
I don't know whether it is related.

I upgraded yesterday from net-im/zoom-5.9.6.2225-r1 to net-im/zoom-5.10.4.2845-r1 . With the former, blur background for webcam video worked out the box, but with the latter black webcam video is broadcasted and shown when blur background is set.

After some tests, I got it working through the usage of /opt/zoom/ZoomLauncher instead of /usr/bin/zoom
Comment 4 Ulrich Müller gentoo-dev 2022-11-12 12:52:39 UTC
Is this still an issue in zoom-5.12.6.173?
Comment 5 David Zaslavsky 2022-11-20 22:48:39 UTC
Sorry, it took me a while to get time to check this. But yes, it is still an issue in the latest version.

$ emerge -pv net-im/zoom
[ebuild   R   ] net-im/zoom-5.12.6.173  USE="bundled-libjpeg-turbo bundled-qt pulseaudio -opencl -wayland" 

I also checked that if I download Zoom 5.12.6 directly from Zoom's website (using the same procedure described in my first comment) and open it, the video appears properly there. So whatever is going on is still a quirk of the Gentoo installation of Zoom, not an intrinsic bug in Zoom.
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2023-06-10 16:59:14 UTC
How about 5.14.10.3738 ?
Comment 7 David Zaslavsky 2023-06-11 00:33:16 UTC
No change from before. I'm still seeing black video in 5.14.10.3738. And as before, I downloaded the same version from Zoom's website and confirms that it does display video properly.

$ emerge -pv net-im/zoom
[ebuild   R   ] net-im/zoom-5.14.10.3738  USE="bundled-libjpeg-turbo bundled-qt pulseaudio wayland -opencl"
Comment 8 Ulrich Müller gentoo-dev 2023-06-11 04:54:02 UTC
(In reply to David Zaslavsky from comment #7)
> No change from before. I'm still seeing black video in 5.14.10.3738. And as
> before, I downloaded the same version from Zoom's website and confirms that
> it does display video properly.

Which version exactly did you download? "Linux Type: Other Linux OS, OS Architecture: 64 bit" (which you should have had already in /var/cache/distfiles/), or something else?
Comment 9 David Zaslavsky 2023-06-11 06:43:52 UTC
Yep, "Linux Type: Other Linux OS, OS Architecture: 64 bit". I checked that it is the same thing that I have in my distfiles directory.

$ sha256sum /usr/portage/distfiles/zoom-5.14.10.3738_x86_64.tar.xz /home/diazona/Downloads/zoom_x86_64.tar.xz
cc7c2bbec989aed2ad6de83880b04da255919086a93234f422db13996c56cfd5  /usr/portage/distfiles/zoom-5.14.10.3738_x86_64.tar.xz
cc7c2bbec989aed2ad6de83880b04da255919086a93234f422db13996c56cfd5  /home/diazona/Downloads/zoom_x86_64.tar.xz

I only downloaded it directly from Zoom's website to have 100% foolproof assurance that I was using the original upstream-approved package.
Comment 10 Ulrich Müller gentoo-dev 2023-06-11 07:37:05 UTC
Not sure what's different then. Since you use the bundled libjpeg-turbo, the only bundled libs that we replace are mpg123, fdkaac2, quazip (but neither of them related to video) and OpenCL (but you have USE="-opencl" IIUC).

Other than that, the ebuild basically installs the contents of the upstream tarball in /opt/zoom (not much that we could do for a closed-source package). We also fix some permissions and remove some dangling libs with unresolved dependencies because QA checks would otherwise report them. Again, neither of this seems likely to cause video problems.

(In reply to David Zaslavsky from comment #0)
> $ lsusb | grep -i webcam
> Bus 001 Device 005: ID 046d:082c Logitech, Inc. HD Webcam C615

Does the problem also occur with a different webcam?
Comment 11 David Zaslavsky 2023-06-11 10:28:39 UTC
I don't have any other webcam to test with, unfortunately, but if I get my hands on one I'll report here.
Comment 12 David Zaslavsky 2023-06-11 11:26:27 UTC
Aha, I have managed to narrowed it down :-) I diffed Portage's installation of Zoom and my own manual installation, and went through each line deleting or copying files to test individual differences between the two. I found that adding these three files to the system installation of Zoom is necessary and sufficient to get my video working:

- aomhost
- libaomagent.so
- libmkldnn.so

The ebuild will install these files when the opencl USE flag is set, but as you noticed, I had USE="-opencl" for this package. I tried reinstalling with USE="opencl" and the video seems to work now.

Personally I'm fine leaving that USE flag in place, but arguably it *is* a bug that installing with USE="-opencl" causes the video not to work. Could the ebuild be modified to install those files, or otherwise to print a warning or something about video possibly not working if opencl is disabled?

Here's the full diff listing, just in case:

$ diff -r /opt/zoom ~/.local/opt/zoom
Only in /home/diazona/.local/opt/zoom: aomhost
Only in /home/diazona/.local/opt/zoom: libaomagent.so
Only in /home/diazona/.local/opt/zoom: libavcodec.so.58
Only in /home/diazona/.local/opt/zoom: libavformat.so.58
Only in /home/diazona/.local/opt/zoom: libavutil.so.56
Only in /home/diazona/.local/opt/zoom: libclDNN64.so
Only in /home/diazona/.local/opt/zoom: libdvf.so
Binary files /opt/zoom/libfdkaac2.so and /home/diazona/.local/opt/zoom/libfdkaac2.so differ
Only in /home/diazona/.local/opt/zoom: libmkldnn.so
Binary files /opt/zoom/libmpg123.so and /home/diazona/.local/opt/zoom/libmpg123.so differ
Only in /home/diazona/.local/opt/zoom: libOpenCL.so.1
Binary files /opt/zoom/libquazip.so and /home/diazona/.local/opt/zoom/libquazip.so differ
Only in /home/diazona/.local/opt/zoom: libswresample.so.3
Binary files /opt/zoom/libturbojpeg.so and /home/diazona/.local/opt/zoom/libturbojpeg.so differ
Only in /home/diazona/.local/opt/zoom/Qt/plugins: audio
Only in /home/diazona/.local/opt/zoom/Qt/plugins: egldeviceintegrations
Only in /home/diazona/.local/opt/zoom/Qt/plugins/platforms: libqeglfs.so
Only in /home/diazona/.local/opt/zoom/Qt/plugins/platforms: libqlinuxfb.so
Only in /home/diazona/.local/opt/zoom/Qt/plugins/platformthemes: libqgtk3.so
Only in /home/diazona/.local/opt/zoom/Qt/qml/Qt/labs: lottieqt
Only in /home/diazona/.local/opt/zoom/Qt/qml/QtQml: RemoteObjects
Only in /home/diazona/.local/opt/zoom/Qt/qml/QtQuick: LocalStorage
Only in /home/diazona/.local/opt/zoom/Qt/qml/QtQuick: Particles.2
Only in /home/diazona/.local/opt/zoom/Qt/qml/QtQuick: Scene2D
Only in /home/diazona/.local/opt/zoom/Qt/qml/QtQuick: Scene3D
Only in /home/diazona/.local/opt/zoom/Qt/qml/QtQuick: XmlListModel
Only in /home/diazona/.local/opt/zoom: qt.conf
Only in /home/diazona/.local/opt/zoom: RegisterProtocol
Comment 13 Larry the Git Cow gentoo-dev 2023-06-11 13:24:14 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e350b679576263988f052713290919d832038347

commit e350b679576263988f052713290919d832038347
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2023-06-11 13:22:21 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2023-06-11 13:23:47 +0000

    net-im/zoom: Install some binaries unconditionally
    
    Bug: https://bugs.gentoo.org/833951
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 net-im/zoom/zoom-5.14.10.3738-r1.ebuild | 192 ++++++++++++++++++++++++++++++++
 1 file changed, 192 insertions(+)
Comment 14 Ulrich Müller gentoo-dev 2023-06-11 13:25:23 UTC
Thank you for investigating.

I'd rather not force OpenCL dependencies for everyone. That feature should only be needed for virtual and blurred backgrounds.

However, we could unconditionally install most things that are currently conditional with USE=opencl, except libclDNN64.so which depends on libOpenCL.so.1.

Please test zoom-5.14.10.3738-r1[-opencl].
Comment 15 David Zaslavsky 2023-06-11 23:50:39 UTC
Thanks! I tested and confirmed that video works with the updated ebuild.

$ emerge -pv net-im/zoom
[ebuild   R   ] net-im/zoom-5.14.10.3738-r1  USE="bundled-libjpeg-turbo bundled-qt pulseaudio wayland -opencl" 

And FWIW I totally agree that it shouldn't be necessary to force everyone to install with opencl enabled just to get video working... on rereading my previous comment, I can see how it might have implied otherwise, but I didn't mean that. (I just wasn't sure if there was some reason those libraries were intentionally skipped when installing without opencl, maybe security concerns or something, and didn't want to assume I knew better than whoever made the decision to write the ebuild that way in the first place.)

Anyway, since the fix in the latest version works for me, I'll mark this as resolved.