But default x11vnc on Ubuntu 18.04 also crashes with many Qt applications.
Compile x11vnc with a patch using instructions here: https://gist.github.com/mangoliou/407d6a39a60d128610c20c4143f39f0d
Create a password for vncserver
mkdir -p ~/.vnc
vncpasswd ~/.vnc/passwd