ogra1 / zoom-snap

75 stars 13 forks source link

closes immediately after launch with no errors with nvidia 4xx drivers #2

Closed mattiaswerner closed 4 years ago

mattiaswerner commented 4 years ago

On stock Ubuntu 18.04.4.

All interfaces connected.

Launching zoom-client from the terminal very briefly renders a window that disappears with no error output in the terminal.

ogra1 commented 4 years ago

there is a log file under ~/snap/zoom-client/current/.zoom/logs/zoom-terminal.log could you attach it here ?

also, do you use an nvidia card (there are still some potential issues with nvidia drivers, i can only test a small margin) ?

mattiaswerner commented 4 years ago

Log attached. I use a nvidia 970 with the 440 driver.

zoom-terminal.log

ogra1 commented 4 years ago

yup there we go ...

Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options...

i have a gtx970 around, will try to test with the 440 driver and see what i can come up with, sorry that it does not work correct for you.

mattiaswerner commented 4 years ago

No worries, thank you for all the effort you put into this :)

ogra1 commented 4 years ago

hmm, it might be that your issue is related to https://forum.snapcraft.io/t/nvidia-beta-drivers-completely-break-snaps/12392

can you try if it works once you did:

sudo snap refresh --edge snapd

i'm not sure the fix for the 440.x drivers made it into the stable snapd yet ...

in case the above works and the new snapd makes it to stable you can easily switch back with:

sudo snap refresh --stable snapd

mattiaswerner commented 4 years ago

Sadly no change.

bashfulrobot commented 4 years ago

+1 one on this issue.

Thank you for your time!

zoom-terminal.log

ogra1 commented 4 years ago
  • Did not attempt to use the edge version of snapd as my system is using the deb version

well, on an ubuntu based system the deb version is actually only used to jump-start the snap (it installs the snap version and re-execs into it, from then on only the snap version is used) ... so you are most likely also using the snapped snapd like everyone else in an ubuntu based OS.

fabiangr commented 4 years ago

I am having the same issue with Ubuntu 18.04 and nvidia-driver-440. The latest .deb version from https://zoom.us/download is working as expected. Any help would be appreciated.

ogra1 commented 4 years ago

i have added the collection of some nvidia related debug data to the latest revision in the edge channel. if you could please do:

sudo snap refresh --edge zoom-client ... then run the app once and attach ~/snap/zoom-client/current/.zoom/logs/zoom-terminal.log to this issue afterwards

mattiaswerner commented 4 years ago

i have added the collection of some nvidia related debug data to the latest revision in the edge channel. if you could please do:

sudo snap refresh --edge zoom-client ... then run the app once and attach ~/snap/zoom-client/current/.zoom/logs/zoom-terminal.log to this issue afterwards

zoom-terminal.log

ogra1 commented 4 years ago

thanks a lot ... there is a new version cooking in the edge channel right now (revision 44) that might help, please test it once it landed ... (sudo snap refresh --edge zoom-client ...)

mattiaswerner commented 4 years ago

Now I get:

mattias@cerebus:~$ zoom-client 
ls: cannot access '/var/lib/snapd/lib/gl/tls/libnvidia-tls.so.*': No such file or directory
ls: cannot access '/var/lib/snapd/lib/gl/libnvidia-compiler.so': No such file or directory
ls: cannot access '/var/lib/snapd/lib/gl/libnvidia-egl-wayland.so.?': No such file or directory
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ogra1 commented 4 years ago

a new build in --edge is underway ...

mattiaswerner commented 4 years ago

Fewer errors now

mattias@cerebus:~$ zoom-client 
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ogra1 commented 4 years ago

okay ... one more in --edge ...

mattiaswerner commented 4 years ago
mattias@cerebus:~$ zoom-client 
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0.0.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0.0.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ogra1 commented 4 years ago

hrm ... that should have worked ... what is the output of:

ldd /usr/lib/nvidia-*/libOpenGL.so
ldd /usr/lib/nvidia-*/libGLdispatch.so.0
mattiaswerner commented 4 years ago
mattias@cerebus:~$ ldd /usr/lib/nvidia-*/libOpenGL.so
ldd: /usr/lib/nvidia-*/libOpenGL.so: No such file or directory
mattias@cerebus:~$ ldd /usr/lib/nvidia-*/libGLdispatch.so.0
ldd: /usr/lib/nvidia-*/libGLdispatch.so.0: No such file or directory
mattias@cerebus:~$ locate libOpenGL.so
...
/usr/lib/x86_64-linux-gnu/libOpenGL.so
/usr/lib/x86_64-linux-gnu/libOpenGL.so.0
/usr/lib/x86_64-linux-gnu/libOpenGL.so.0.0.0
...
mattias@cerebus:~$ locate libGLdispatch.so.0
...
/usr/lib/i386-linux-gnu/libGLdispatch.so.0
/usr/lib/i386-linux-gnu/libGLdispatch.so.0.0.0
/usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
/usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0
...
ogra1 commented 4 years ago

wow, this is odd, seems the nvidia driver changed its design completely with 4XX, so what is the output of:

ldd /usr/lib/x86_64-linux-gnu/libGL.so
ldd /usr/lib/x86_64-linux-gnu/libOpenGL.so
ldd /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
mattiaswerner commented 4 years ago
mattias@cerebus:~$ ldd /usr/lib/x86_64-linux-gnu/libGL.so
    linux-vdso.so.1 (0x00007ffc4cbdf000)
    libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f1079492000)
    libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f10791dc000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1078fbd000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1078bcc000)
    libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f1078894000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1078690000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f107994f000)
    libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f1078468000)
    libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f1078264000)
    libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f107805e000)
    libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f1077e49000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f1077c41000)
mattias@cerebus:~$ ldd /usr/lib/x86_64-linux-gnu/libOpenGL.so
    linux-vdso.so.1 (0x00007ffc6edf6000)
    libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007fb20da4c000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb20d65b000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb20d457000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fb20df30000)
mattias@cerebus:~$ ldd /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
    linux-vdso.so.1 (0x00007ffd8d31b000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f786184c000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f786145b000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f7861d06000)
mattiaswerner commented 4 years ago

rev 47

mattias@cerebus:~$ zoom-client 
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0.0.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0.0.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
mattiaswerner commented 4 years ago

rev 48

mattias@cerebus:~$ zoom-client
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0.0.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0.0.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
mattiaswerner commented 4 years ago

rev 50

mattias@cerebus:~$ zoom-client 
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0.0.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0.0.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
mattiaswerner commented 4 years ago

rev 52

mattias@cerebus:~$ zoom-client 
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0.0.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0.0.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0.0.0' from LD_PRELOAD cannot be preloaded (ERROR: ld.so: object 'cannot open shared object file/var/lib/snapd/lib/gl/libOpenGL.so): ignored.
' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so.0.0.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ogra1 commented 4 years ago

anyone mind to try out revision 57 from the edge channel ? it works on focal (20.04) with an nvidia-440 driver so my hopes are high it might help on other releases with 4XX too...

mattiaswerner commented 4 years ago

rev 57

mattias@cerebus:~$ zoom-client 
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/var/lib/snapd/lib/gl/libOpenGL.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ogra1 commented 4 years ago

Hrrrm ! ... i dont get where your libOpenGL.so comes from, the 440 driver should not actually ship this lib ...

what's the output of:

dpkg -S /usr/lib/x86_64-linux-gnu/libOpenGL.so

(does it actually come from the nvidia driver ?)

mattiaswerner commented 4 years ago

Hrrrm ! ... i dont get where your libOpenGL.so comes from, the 440 driver should not actually ship this lib ...

what's the output of:

dpkg -S /usr/lib/x86_64-linux-gnu/libOpenGL.so

(does it actually come from the nvidia driver ?)

mattias@cerebus:~$ dpkg -S /usr/lib/x86_64-linux-gnu/libOpenGL.so
libglvnd-dev:amd64: /usr/lib/x86_64-linux-gnu/libOpenGL.so
ogra1 commented 4 years ago

so this is the mesa lib, that should not actually end up in /var/lib/snapd/lib/gl/ (which is exclusively for nvidia drivers)... i bet if you:

sudo apt remove libglvnd-dev

it will start working ...

mattiaswerner commented 4 years ago

Success! Libraries removed and post reboot, the snap started working.

Thank you for your patience through all this.

jimboalba commented 4 years ago

a new build in --edge is underway ... This worked for me on Ubuntu 19.10 GeForce GTX 970M/PCIe/SSE2. Thanks.

ogra1 commented 4 years ago

an improved version of the fix just made it to the stable channel, please switch your local installs back to stable with:

sudo snap refresh --stable zoom-client

thanks for the report and for helping to fix it ...