Unable to launch paraview: Could not load the Qt platform plugin

Hi,

I am trying to install ParaView-5.9.1-MPI-Linux-Python3.8-64bit on Ubuntu 20.04 LTS on a Windows10 machine. When I enter ./paraview in the bin directory, it returns:

qt.qpa.xcb: could not connect to display
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: Child aborted

Can you tell me how to fix it?

WSL is not supported, use the windows release downloaded from:

https://www.paraview.org/download/

But the windows release would become like this when I loaded an exodus file

Intel bug, see here for solutions:

You need to install the xcb libraries (should be libxcb-x11 in Ubuntu).

3 Likes

On Ubuntu 22.04 it’s libxcb-xinput-dev

1 Like

On my Ubuntu 22.04, my error message is a little different

$ ./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

FYI, my box does not have any GPU graphics card.

glxinfo -B

$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: nouveau (0x10de)
    Device: NVA8 (0xa6c)
    Version: 22.0.5
    Accelerated: yes
    Video memory: 501MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 3.3
    Max compat profile version: 3.3
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: nouveau
OpenGL renderer string: NVA8
OpenGL core profile version string: 3.3 (Core Profile) Mesa 22.0.5
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.3 (Compatibility Profile) Mesa 22.0.5
OpenGL shading language version string: 3.30
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 22.0.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

@Nicholas_Yue

The Qt client requires a graphical environnement.

Best,

I had to revisit this issue as I am working to deploy a demo to some cluster

I have also found the following help me in my situation (same xcb error)

I install the following (for Ubuntu) and the problem went away

sudo apt-get install libxcb-xinerama0

Hope this is helpful for some in the future.

Kind regards

documented here: I'm using Ubuntu 22 and ParaView reports "Could not load the Qt platform plugin 'xcb'"