Issue with PV5.11 RC2 installer on Ubuntu

I’m getting the following error with the 5.11 RC2 candidate that I downloaded from the PV download site:

acbauer@hoth:~/Code/ParaView/ParaView-5.11.0-RC2-MPI-Linux-Python3.9-x86_64$ bin/paraview
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

error: exception occurred: Subprocess aborted

I’ve set the environment variable for export QT_QPA_PLATFORM=wayland and checked the other typical environment variables (LD_LIBRARY_PATH, PYTHONPATH). This is on an Ubuntu machine. The ParaView-5.10.1-MPI-Linux-Python3.9-x86_64 installed version works. Any idea what the issue is? Anything I should try out?

Thanks,
Andy

Which ubuntu version are you using ?

I wonder if this is caused by wayland.

I’m on Ubuntu 22.04.1 LTS.

Note that when I run the PV GUI from master on my machine (which runs successfully) I get the following similar message:

acbauer@hoth:~/Code/ParaView/debug$ bin/paraview
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

Also, pvpython from the RC2 installer works fine. I tested that with just rendering the Wavelet source. I suppose that makes sense though since this appears to be a Qt issue.

I’m unable to reproduce on my ubuntu 22.04 running wayland, with either rc1 or rc2.

Is your QT_PLUGIN_PATH env var set ?

Doesn’t look like it. I have:

acbauer@hoth:~$ env |grep QT
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus

I tried paraview --dr to see if it was anything in my registry either and I get the same issue. So I tried this which was interesting in that it failed before showing the command line options:

acbauer@hoth:~/Code/ParaView/ParaView-5.11.0-RC2-MPI-Linux-Python3.9-x86_64$ bin/paraview --help
Launcher options:
  --print       Print modified environment.
  --system-mpi  Use MPI implementation available on the system.
  --mesa        Use Mesa GL for rendering.
  --backend <backend>  Specify mesa backend.

Available backends:
    llvmpipe
    swr

paraview options:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

error: exception occurred: Subprocess aborted

Here are my environment variables (some I have unset while testing but nothing helped that either):acbauer@hoth:~/Code/ParaView/ParaView-5.11.0-RC2-MPI-Linux-Python3.9-x86_64$ env
SHELL=/bin/bash
SESSION_MANAGER=local/hoth:@/tmp/.ICE-unix/9662,unix/hoth:/tmp/.ICE-unix/9662
QT_ACCESSIBILITY=1
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
SSH_AGENT_LAUNCHER=gnome-keyring
XDG_MENU_PREFIX=gnome-
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
CONDA_EXE=/home/acbauer/miniconda3/bin/conda
_CE_M=
GNOME_SHELL_SESSION_MODE=ubuntu
SSH_AUTH_SOCK=/run/user/1001/keyring/ssh
XMODIFIERS=@im=ibus
DESKTOP_SESSION=ubuntu
GTK_MODULES=gail:atk-bridge
PWD=/home/acbauer/Code/ParaView/ParaView-5.11.0-RC2-MPI-Linux-Python3.9-x86_64
LOGNAME=acbauer
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=wayland
SYSTEMD_EXEC_PID=9719
XAUTHORITY=/run/user/1001/.mutter-Xwaylandauth.Y1MRU1
HOME=/home/acbauer
USERNAME=acbauer
IM_CONFIG_PHASE=1
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.webp=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36:
XDG_CURRENT_DESKTOP=ubuntu:GNOME
VTE_VERSION=6800
WAYLAND_DISPLAY=wayland-0
CMAKE_PREFIX_PATH=/home/acbauer/Code/ParaView/qt5superbuild/install/lib/cmake/Qt5
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/cc403dbf_56b6_4cf1_93bc_f2e767b0cfed
GNOME_SETUP_DISPLAY=:3
LESSCLOSE=/usr/bin/lesspipe %s %s
XDG_SESSION_CLASS=user
TERM=xterm-256color
_CE_CONDA=
LESSOPEN=| /usr/bin/lesspipe %s
USER=acbauer
GNOME_TERMINAL_SERVICE=:1.327
CONDA_SHLVL=0
DISPLAY=:2
SHLVL=1
QT_IM_MODULE=ibus
CONDA_PYTHON_EXE=/home/acbauer/miniconda3/bin/python
LD_LIBRARY_PATH=/home/acbauer/krb5/lib:
XDG_RUNTIME_DIR=/run/user/1001
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
PATH=/home/acbauer/miniconda3/condabin:/home/acbauer/Util/CMake/cmake-3.19.8-Linux-x86_64/bin:/home/acbauer/ossh/bin:/home/acbauer/krb5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
GDMSESSION=ubuntu
KRB_CONFIG=/home/acbauer/krb5/etc/krb5.conf
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
OLDPWD=/home/acbauer
_=/usr/bin/env

At this point I have no idea. You should try on another computer.

Maybe @ben.boeckel or @cory.quammen have an idea.

The xcb plugin now requires way more libraries that might not be on minimal installations. I would recommend running with LD_DEBUG=libs to see what fails to load and installing the packages for those. The Fedora list includes:

  • /usr/bin/glxinfo
  • git
  • mesa-dri-drivers
  • mesa-libGL*
  • libXcursor-devel
  • libxcrypt-compat
  • libxkbcommon
  • libxkbcommon-x11
  • xcb-util-image
  • xcb-util-wm
  • xcb-util
  • xcb-util-image
  • xcb-util-keysyms
  • xcb-util-renderutil

The xcb packages are likely of most interest here.

That was the fix. For me I had to install the following packages for Ubuntu:

  • libxcb-xinerama0
  • libxcb-xinput0

Thanks for the help!

2 Likes

Do we have a package list somewhere for the binary release ? This would be usefull.

Not to my knowledge. Is there a standard way to do this on linux? Maybe a ubuntu-setup.sh script that we package calls apt install libxcb-* and anything else required and describes these in a README?

Might be better to add it to the FAQ here on Discourse.

1 Like

I would say no to a script, maintaining it will be a pain and it will be specific to each version of each distro.

Just a list of debian packages is fine, fancier distro user will be able to figure it out themselves.

This list should be were ParaView binary release user will find it, so discourse may be a good choice, but docs could be too.