Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Forum Updated to NodeBB v4.3 + New Features

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

Scheduled Pinned Locked Moved Solved Installation and Deployment
183 Posts 87 Posters 888.3k Views 8 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 3 Offline
    3 Offline
    3mad
    wrote on last edited by
    #146

    In my case, I had the issue when installing ParaView, things fixed by installing the libxcb-xinput0 package:
    sudo apt-get install libxcb-xinput0

    Then, things work fine.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      roux.benoit
      wrote on last edited by
      #147

      Hi,

      I know this is an old post, but I have the same issue that comes up when I'm setting some path for the LD_Library_path.

      for the context i'm creating a container that run an app with a gui using pyqt5, which works perfectly.

      However, I also need to install matlab runtime and after I set up Matlab runtime environement path :

      LD_LIBRARY_PATH=/opt/mscr/v912/runtime/glnxa64:/opt/mcr/v912/bin/glnxa64:/opt/mcr/v912/sys/os/glnxa64:/opt/mcr/v912/sys/opengl/lib/glnxa64

      the gui stops working and I get the "qt.qpa.plugin ..." error message.

      Any thoughts?
      Thanks a lot

      SGaistS 1 Reply Last reply
      0
      • R roux.benoit

        Hi,

        I know this is an old post, but I have the same issue that comes up when I'm setting some path for the LD_Library_path.

        for the context i'm creating a container that run an app with a gui using pyqt5, which works perfectly.

        However, I also need to install matlab runtime and after I set up Matlab runtime environement path :

        LD_LIBRARY_PATH=/opt/mscr/v912/runtime/glnxa64:/opt/mcr/v912/bin/glnxa64:/opt/mcr/v912/sys/os/glnxa64:/opt/mcr/v912/sys/opengl/lib/glnxa64

        the gui stops working and I get the "qt.qpa.plugin ..." error message.

        Any thoughts?
        Thanks a lot

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #148

        @roux-benoit hi,

        Check whether there's Qt libraries in your matlab installation.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • P Offline
          P Offline
          phil-lipp
          wrote on last edited by
          #149

          I hope someone on this forum can help me. I'm trying to use Howdy (https://github.com/boltgolt/howdy), but I get the error described by OP.
          I only get the error when I use su -, however when I use plain su (without the -) it works. So I think i somehow messed up the install when I forgot to add the -... how can I fix this?

          the error:

          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.
          ``
          JonBJ 1 Reply Last reply
          0
          • P phil-lipp

            I hope someone on this forum can help me. I'm trying to use Howdy (https://github.com/boltgolt/howdy), but I get the error described by OP.
            I only get the error when I use su -, however when I use plain su (without the -) it works. So I think i somehow messed up the install when I forgot to add the -... how can I fix this?

            the error:

            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.
            ``
            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #150

            @phil-lipp
            https://forum.qt.io/post/763171 was just asked.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MarsOnMart
              wrote on last edited by
              #151

              I had too problems with this file.
              It just depends from which shared file left you.
              first at all set in the console :

              export QT_DEBUG_PLUGINS=1

              This will show you in which part it fails, normally is in libqxcb.so,

              example:
              python main.py

              qt.core.plugin.factoryloader: checking directory path "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms" ...
              qt.core.plugin.factoryloader: looking at "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqwayland-generic.so"
              qt.core.plugin.loader: Found metadata in lib /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqwayland-generic.so, metadata=
              {
                  "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                  "MetaData": {
                      "Keys": [
                          "wayland"
                      ]
                  },
                  "archlevel": 1,
                  "className": "QWaylandIntegrationPlugin",
                  "debug": false,
                  "version": 394496
              }
              
              
              qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland")
              qt.core.plugin.factoryloader: looking at "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqminimal.so"
              qt.core.plugin.loader: Found metadata in lib /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqminimal.so, metadata=
              {
                  "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                  "MetaData": {
                      "Keys": [
                          "minimal"
                      ]
                  },
                  "archlevel": 1,
                  "className": "QMinimalIntegrationPlugin",
                  "debug": false,
                  "version": 394496
              }
              
              
              qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal")
              qt.core.plugin.factoryloader: looking at "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqeglfs.so"
              qt.core.plugin.loader: Found metadata in lib /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqeglfs.so, metadata=
              {
                  "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                  "MetaData": {
                      "Keys": [
                          "eglfs"
                      ]
                  },
                  "archlevel": 1,
                  "className": "QEglFSIntegrationPlugin",
                  "debug": false,
                  "version": 394496
              }
              
              
              qt.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs")
              qt.core.plugin.factoryloader: looking at "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqwayland-egl.so"
              qt.core.plugin.loader: Found metadata in lib /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqwayland-egl.so, metadata=
              {
                  "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                  "MetaData": {
                      "Keys": [
                          "wayland-egl"
                      ]
                  },
                  "archlevel": 1,
                  "className": "QWaylandEglPlatformIntegrationPlugin",
                  "debug": false,
                  "version": 394496
              }
              
              
              qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland-egl")
              qt.core.plugin.factoryloader: looking at "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqoffscreen.so"
              qt.core.plugin.loader: Found metadata in lib /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqoffscreen.so, metadata=
              {
                  "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                  "MetaData": {
                      "Keys": [
                          "offscreen"
                      ]
                  },
                  "archlevel": 1,
                  "className": "QOffscreenIntegrationPlugin",
                  "debug": false,
                  "version": 394496
              }
              
              
              qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen")
              qt.core.plugin.factoryloader: looking at "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqlinuxfb.so"
              qt.core.plugin.loader: Found metadata in lib /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqlinuxfb.so, metadata=
              {
                  "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                  "MetaData": {
                      "Keys": [
                          "linuxfb"
                      ]
                  },
                  "archlevel": 1,
                  "className": "QLinuxFbIntegrationPlugin",
                  "debug": false,
                  "version": 394496
              }
              
              
              qt.core.plugin.factoryloader: Got keys from plugin meta data QList("linuxfb")
              qt.core.plugin.factoryloader: looking at "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqvnc.so"
              qt.core.plugin.loader: Found metadata in lib /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqvnc.so, metadata=
              {
                  "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                  "MetaData": {
                      "Keys": [
                          "vnc"
                      ]
                  },
                  "archlevel": 1,
                  "className": "QVncIntegrationPlugin",
                  "debug": false,
                  "version": 394496
              }
              
              
              qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vnc")
              qt.core.plugin.factoryloader: looking at "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqvkkhrdisplay.so"
              qt.core.plugin.loader: Found metadata in lib /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqvkkhrdisplay.so, metadata=
              {
                  "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                  "MetaData": {
                      "Keys": [
                          "vkkhrdisplay"
                      ]
                  },
                  "archlevel": 1,
                  "className": "QVkKhrDisplayIntegrationPlugin",
                  "debug": false,
                  "version": 394496
              }
              
              
              qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vkkhrdisplay")
              qt.core.plugin.factoryloader: looking at "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqminimalegl.so"
              qt.core.plugin.loader: Found metadata in lib /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqminimalegl.so, metadata=
              {
                  "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                  "MetaData": {
                      "Keys": [
                          "minimalegl"
                      ]
                  },
                  "archlevel": 1,
                  "className": "QMinimalEglIntegrationPlugin",
                  "debug": false,
                  "version": 394496
              }
              
              
              qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimalegl")
              qt.core.plugin.factoryloader: looking at "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so"
              qt.core.plugin.loader: Found metadata in lib /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so, metadata=
              {
                  "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                  "MetaData": {
                      "Keys": [
                          "xcb"
                      ]
                  },
                  "archlevel": 1,
                  "className": "QXcbIntegrationPlugin",
                  "debug": false,
                  "version": 394496
              }
              
              
              qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb")
              qt.core.plugin.factoryloader: checking directory path "/usr/bin/platforms" ...
              qt.core.library: "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so" cannot load: Cannot load library /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: cannot open shared object file: No such file or directory)
              qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: cannot open shared object file: No such file or directory)"
              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: wayland, minimal, eglfs, wayland-egl, offscreen, linuxfb, vnc, vkkhrdisplay, minimalegl, xcb.
              
              zsh: IOT instruction  python main.py
              
              

              And this error occurs when some of the shared libraries are not found.
              In my case was the :
              "/usr/bin/platforms" ...
              qt.core.library: "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so" cannot load: Cannot load library /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so:

              == =>(libxcb-cursor.so.0: cannot open shared object file: No such file or directory) <===

              qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "/home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: cannot open shared object file: No such file or directory)"
              .
              This is the shared library that lefts , it could that does not be the only one , so for see better which shared libraries are and which not use the next command :

              ldd : /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so

              This must show you the next thing :

              ::
              ldd: ./:: No such file or directory
              /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so:
                      linux-vdso.so.1 (0x00007fff8b5b6000)
                      libQt6XcbQpa.so.6 => /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/../../lib/libQt6XcbQpa.so.6 (0x00007febd8bec000)
                      libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007febd8bc3000)
                      libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007febd8b7d000)
                      libxcb-cursor.so.0 => not found
                      libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007febd8b76000)
                      libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007febd8b6e000)
                      libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007febd8800000)
                      libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007febd8b5d000)
                      libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007febd8400000)
                      libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007febd8b58000)
                      libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007febd8b50000)
                      libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007febd8b45000)
                      libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007febd8b37000)
                      libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007febd8b32000)
                      libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007febd8b15000)
                      libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007febd8aeb000)
                      libQt6OpenGL.so.6 => /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/../../lib/libQt6OpenGL.so.6 (0x00007febd8a4a000)
                      libQt6Gui.so.6 => /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/../../lib/libQt6Gui.so.6 (0x00007febd7a00000)
                      libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007febd8779000)
                      libQt6Core.so.6 => /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/../../lib/libQt6Core.so.6 (0x00007febd7200000)
                      libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007febd8a43000)
                      libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007febd8637000)
                      libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007febd8a3c000)
                      libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007febd8a37000)
                      libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007febd6e00000)
                      libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007febd7921000)
                      libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007febd8a17000)
                      libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007febd701f000)
                      libxcb-cursor.so.0 => not found
                      libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007febd6cbd000)
                      libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007febd8a10000)
                      libxcb-util.so.1 => /lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007febd8a08000)
                      libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007febd8a03000)
                      libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007febd6a00000)
                      libEGL.so.1 => /lib/x86_64-linux-gnu/libEGL.so.1 (0x00007febd861f000)
                      libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007febd78d6000)
                      libQt6DBus.so.6 => /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/../../lib/libQt6DBus.so.6 (0x00007febd693b000)
                      libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007febd83e1000)
                      libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007febd6870000)
                      libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007febd67b7000)
                      libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007febd78a2000)
                      libicui18n.so.56 => /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/../../lib/libicui18n.so.56 (0x00007febd6200000)
                      libicuuc.so.56 => /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/../../lib/libicuuc.so.56 (0x00007febd5e00000)
                      libicudata.so.56 => /home/user/.local/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/../../lib/libicudata.so.56 (0x00007febd4400000)
                      librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007febd8616000)
                      /lib64/ld-linux-x86-64.so.2 (0x00007febd8ca7000)
                      libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007febd6c23000)
                      libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007febd83cb000)
                      libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007febd678c000)
                      libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007febd6736000)
                      libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007febd6700000)
                      libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007febd8607000)
                      libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007febd7895000)
                      libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007febd4331000)
                      libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007febd66dd000)
                      libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007febd6c17000)
                      libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007febd41ea000)
                      liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007febd66ae000)
                      libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007febd412e000)
                      liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007febd61da000)
                      libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007febd4106000)
              

              As you can see the shared library which is not , appears like not found

                  libxcb-cursor.so.0 => not found
              

              Just thus easier to fix it , is using :

              sudo apt install libxcb-cursor0

              In your case could be another like: libxcb-randr0

              1 Reply Last reply
              1
              • T twar

                Hello.
                After last qt5 update I'm getting this message:

                ~ $ qtcreator
                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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
                
                Aborted (core dumped)
                

                Here is strace log https://pastebin.com/1GfBFmUH

                Linux disto is manjaro which is based on archlinux. Any idea what is going on?

                Thank you and best regards.

                I Offline
                I Offline
                IuriiV
                wrote on last edited by
                #152

                @twar Hi, solved by sudo apt-get install libxcb*

                F O 2 Replies Last reply
                2
                • I IuriiV

                  @twar Hi, solved by sudo apt-get install libxcb*

                  F Offline
                  F Offline
                  fokhagyma
                  wrote on last edited by
                  #153

                  @IuriiV Thank you, it solved for me too.

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    booter
                    wrote on last edited by
                    #154

                    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: offscreen, wayland, vnc, minimalegl, xcb, wayland-egl, eglfs, linuxfb, vkkhrdisplay, minimal.

                    sudo apt-get install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev

                    sudo apt-get install libxkbcommon-x11-dev

                    sudo apt-get install libxcb-xinerama0

                    ++++++++++++++++++++++++++++++++++

                    sudo apt-get install -qq libglu1-mesa-dev libx11-xcb-dev '^libxcb*'

                    jsulmJ 1 Reply Last reply
                    0
                    • B booter

                      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: offscreen, wayland, vnc, minimalegl, xcb, wayland-egl, eglfs, linuxfb, vkkhrdisplay, minimal.

                      sudo apt-get install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev

                      sudo apt-get install libxkbcommon-x11-dev

                      sudo apt-get install libxcb-xinerama0

                      ++++++++++++++++++++++++++++++++++

                      sudo apt-get install -qq libglu1-mesa-dev libx11-xcb-dev '^libxcb*'

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #155

                      @booter As in your other thread: do you have a question? Please ask a clear question if you have one!
                      If you have same issue as in this thread then the solution should also be same: did you do that?

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      S 1 Reply Last reply
                      1
                      • jsulmJ jsulm

                        @booter As in your other thread: do you have a question? Please ask a clear question if you have one!
                        If you have same issue as in this thread then the solution should also be same: did you do that?

                        S Offline
                        S Offline
                        Spiv
                        wrote on last edited by
                        #156

                        @jsulm
                        Since I am getting the same error, I read the whole thread from the very beginning and tried all solutions but I still cannot load something....
                        I have Lenovo Ideapad Flex5 running Kubuntu.
                        I upgraded Kubuntu 20.04 first to 23.04,then to 23.10.
                        Then something happened ...
                        Now when I start the laptop I get to the login, put my password, the desktop and wallpaper show for 1 second, then I get a black screen.
                        Using Ctrl+Alt+F4 I can get to a terminal, but a cannot copy/paste anything into a browser since I cannot load a browser because I get an error very similar to the original post.
                        I am writing this through my phone.
                        I can take pictures of the terminal and the result of commands, but cannot paste anything....
                        Can you help me please regain my desktop display?

                        BTW, how do I attach pictures here?

                        SGaistS 1 Reply Last reply
                        0
                        • S Spiv

                          @jsulm
                          Since I am getting the same error, I read the whole thread from the very beginning and tried all solutions but I still cannot load something....
                          I have Lenovo Ideapad Flex5 running Kubuntu.
                          I upgraded Kubuntu 20.04 first to 23.04,then to 23.10.
                          Then something happened ...
                          Now when I start the laptop I get to the login, put my password, the desktop and wallpaper show for 1 second, then I get a black screen.
                          Using Ctrl+Alt+F4 I can get to a terminal, but a cannot copy/paste anything into a browser since I cannot load a browser because I get an error very similar to the original post.
                          I am writing this through my phone.
                          I can take pictures of the terminal and the result of commands, but cannot paste anything....
                          Can you help me please regain my desktop display?

                          BTW, how do I attach pictures here?

                          SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #157

                          @Spiv hi and welcome to devnet,

                          Did you try to use the Wayland session rather than the Xorg ? You should be able to select that from the login screen.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          S 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            @Spiv hi and welcome to devnet,

                            Did you try to use the Wayland session rather than the Xorg ? You should be able to select that from the login screen.

                            S Offline
                            S Offline
                            Spiv
                            wrote on last edited by
                            #158

                            @SGaist
                            Hi, thank you for responding so quickly.
                            I don't know what you are suggesting, sorry....
                            How do I select a different (Wayland) session?

                            S 1 Reply Last reply
                            0
                            • S Spiv

                              @SGaist
                              Hi, thank you for responding so quickly.
                              I don't know what you are suggesting, sorry....
                              How do I select a different (Wayland) session?

                              S Offline
                              S Offline
                              Spiv
                              wrote on last edited by Spiv
                              #159

                              I did figure that out...
                              With 'Plasma Wayland' I did not even see a flash of my desktop, just a dark screen.
                              'Plasma X11', desktop flash for a second, then black screen.
                              'Ubuntu' gave me a blue screen on which I can invoke all applications, including Firefox.
                              'Ubuntu Wayland' and 'Ubuntu on Xorg' also give me a working environment.
                              However, I cannot go into 'settings' for some reason.

                              SGaistS 1 Reply Last reply
                              0
                              • S Spiv

                                I did figure that out...
                                With 'Plasma Wayland' I did not even see a flash of my desktop, just a dark screen.
                                'Plasma X11', desktop flash for a second, then black screen.
                                'Ubuntu' gave me a blue screen on which I can invoke all applications, including Firefox.
                                'Ubuntu Wayland' and 'Ubuntu on Xorg' also give me a working environment.
                                However, I cannot go into 'settings' for some reason.

                                SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #160

                                Did you check the logs of your system to see if something else is wrong ?

                                In any case, I would also check with the Kubuntu folks.

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 Reply Last reply
                                0
                                • I IuriiV

                                  @twar Hi, solved by sudo apt-get install libxcb*

                                  O Offline
                                  O Offline
                                  Octopic
                                  wrote on last edited by
                                  #161

                                  @IuriiV mee too. If someone could add it in first comment it would be really helpful ;-)

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    mrt06
                                    wrote on last edited by
                                    #162

                                    Hi, I am trying to run paraview for OpenFOAM but I have that error:

                                    
                                    mrt06@DESKTOP-JQP308P:~$ paraview
                                    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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
                                    
                                    Aborted
                                    
                                    

                                    Then I tried with QT_DEBUG_PLUGINS=1:

                                    mrt06@DESKTOP-JQP308P:~$ export QT_DEBUG_PLUGINS=1
                                    mrt06@DESKTOP-JQP308P:~$ paraview
                                    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ...
                                    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so"
                                    Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so, metadata=
                                    {
                                        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                        "MetaData": {
                                            "Keys": [
                                                "eglfs"
                                            ]
                                        },
                                        "archreq": 0,
                                        "className": "QEglFSIntegrationPlugin",
                                        "debug": false,
                                        "version": 331520
                                    }
                                    
                                    
                                    Got keys from plugin meta data ("eglfs")
                                    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so"
                                    Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so, metadata=
                                    {
                                        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                        "MetaData": {
                                            "Keys": [
                                                "linuxfb"
                                            ]
                                        },
                                        "archreq": 0,
                                        "className": "QLinuxFbIntegrationPlugin",
                                        "debug": false,
                                        "version": 331520
                                    }
                                    
                                    
                                    Got keys from plugin meta data ("linuxfb")
                                    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so"
                                    Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so, metadata=
                                    {
                                        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                        "MetaData": {
                                            "Keys": [
                                                "minimal"
                                            ]
                                        },
                                        "archreq": 0,
                                        "className": "QMinimalIntegrationPlugin",
                                        "debug": false,
                                        "version": 331520
                                    }
                                    
                                    
                                    Got keys from plugin meta data ("minimal")
                                    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so"
                                    Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so, metadata=
                                    {
                                        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                        "MetaData": {
                                            "Keys": [
                                                "minimalegl"
                                            ]
                                        },
                                        "archreq": 0,
                                        "className": "QMinimalEglIntegrationPlugin",
                                        "debug": false,
                                        "version": 331520
                                    }
                                    
                                    
                                    Got keys from plugin meta data ("minimalegl")
                                    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so"
                                    Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so, metadata=
                                    {
                                        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                        "MetaData": {
                                            "Keys": [
                                                "offscreen"
                                            ]
                                        },
                                        "archreq": 0,
                                        "className": "QOffscreenIntegrationPlugin",
                                        "debug": false,
                                        "version": 331520
                                    }
                                    
                                    
                                    Got keys from plugin meta data ("offscreen")
                                    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so"
                                    Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so, metadata=
                                    {
                                        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                        "MetaData": {
                                            "Keys": [
                                                "vnc"
                                            ]
                                        },
                                        "archreq": 0,
                                        "className": "QVncIntegrationPlugin",
                                        "debug": false,
                                        "version": 331520
                                    }
                                    
                                    
                                    Got keys from plugin meta data ("vnc")
                                    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
                                    Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata=
                                    {
                                        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                        "MetaData": {
                                            "Keys": [
                                                "xcb"
                                            ]
                                        },
                                        "archreq": 0,
                                        "className": "QXcbIntegrationPlugin",
                                        "debug": false,
                                        "version": 331520
                                    }
                                    
                                    
                                    Got keys from plugin meta data ("xcb")
                                    QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
                                    loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
                                    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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
                                    
                                    Aborted
                                    

                                    After that I wrote that line without any conscious and get that:

                                    mrt06@DESKTOP-JQP308P:~$ ldd /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
                                            linux-vdso.so.1 (0x00007fff2fbd8000)
                                            libQt5XcbQpa.so.5 => /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 (0x00007f10aff1b000)
                                            libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f10af83d000)
                                            libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f10af2de000)
                                            libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f10af0b2000)
                                            libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f10aee88000)
                                            libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f10aee3e000)
                                            libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f10aed76000)
                                            libQt5DBus.so.5 => /lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x00007f10aece2000)
                                            libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f10aecdd000)
                                            libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f10aecd6000)
                                            libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f10aecce000)
                                            libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f10aecc9000)
                                            libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f10aecc4000)
                                            libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f10aecb1000)
                                            libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007f10aecaa000)
                                            libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f10aec9b000)
                                            libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f10aec94000)
                                            libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f10aec8a000)
                                            libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f10aec80000)
                                            libxcb-xinerama.so.0 => /lib/x86_64-linux-gnu/libxcb-xinerama.so.0 (0x00007f10aec7b000)
                                            libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f10aec5d000)
                                            libxcb-xinput.so.0 => /lib/x86_64-linux-gnu/libxcb-xinput.so.0 (0x00007f10aec39000)
                                            libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f10aec0d000)
                                            libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f10aec00000)
                                            libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f10aeac0000)
                                            libSM.so.6 => /lib/x86_64-linux-gnu/libSM.so.6 (0x00007f10aeab5000)
                                            libICE.so.6 => /lib/x86_64-linux-gnu/libICE.so.6 (0x00007f10aea98000)
                                            libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f10aea8d000)
                                            libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f10aea44000)
                                            libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f10ae90a000)
                                            libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f10ae823000)
                                            libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f10ae803000)
                                            libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f10ae77c000)
                                            libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f10ae73f000)
                                            libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f10ae723000)
                                            libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f10ae654000)
                                            libmd4c.so.0 => /lib/x86_64-linux-gnu/libmd4c.so.0 (0x00007f10ae642000)
                                            libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007f10ae62d000)
                                            libicui18n.so.70 => /lib/x86_64-linux-gnu/libicui18n.so.70 (0x00007f10ae2fe000)
                                            libicuuc.so.70 => /lib/x86_64-linux-gnu/libicuuc.so.70 (0x00007f10ae101000)
                                            libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007f10ae077000)
                                            libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f10adfa8000)
                                            /lib64/ld-linux-x86-64.so.2 (0x00007f10b00b4000)
                                            libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f10adf77000)
                                            libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f10adf6e000)
                                            libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f10adf5e000)
                                            libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f10adf10000)
                                            libxcb-util.so.1 => /lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007f10adf07000)
                                            libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f10adf01000)
                                            libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f10adef9000)
                                            libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f10adedf000)
                                            libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f10ade69000)
                                            libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f10addb1000)
                                            libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f10add7d000)
                                            libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f10add56000)
                                            libicudata.so.70 => /lib/x86_64-linux-gnu/libicudata.so.70 (0x00007f10ac136000)
                                            libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f10ac113000)
                                            libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f10ac04c000)
                                            libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f10ac03f000)
                                            liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f10ac014000)
                                            liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f10abff2000)
                                            libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f10abfe7000)
                                            libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f10abea9000)
                                            libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f10abe83000)
                                    
                                    

                                    I am using wsl2 Ubuntu and I have no idea with Linux. Can you please tell me what should I do? I tried to install libraries but nothing is changed

                                    1 Reply Last reply
                                    0
                                    • hskoglundH Offline
                                      hskoglundH Offline
                                      hskoglund
                                      wrote on last edited by
                                      #163

                                      Hi, maybe your wsl2 needs an X Server to be running, or perhaps you have no vGPU driver installed. Or your Windows 10 is too old so you need to upgrade to Windows 11. More here

                                      M 2 Replies Last reply
                                      2
                                      • hskoglundH hskoglund

                                        Hi, maybe your wsl2 needs an X Server to be running, or perhaps you have no vGPU driver installed. Or your Windows 10 is too old so you need to upgrade to Windows 11. More here

                                        M Offline
                                        M Offline
                                        mrt06
                                        wrote on last edited by mrt06
                                        #164
                                        This post is deleted!
                                        1 Reply Last reply
                                        0
                                        • T twar

                                          The same as before:

                                          ~ $ ldd /usr/lib/qt/plugins/platforms/libqxcb.so
                                          /usr/lib/qt/plugins/platforms/libqxcb.so: error while loading shared libraries: /usr/lib/libxcb-xinerama.so.0: invalid ELF header
                                          

                                          but after that

                                          ~ $ sudo pacman -S libxcb
                                          [sudo] password for tomasz: 
                                          warning: libxcb-1.13-1 is up to date -- reinstalling
                                          resolving dependencies...
                                          looking for conflicting packages...
                                          
                                          Packages (1) libxcb-1.13-1
                                          
                                          Total Download Size:   0.99 MiB
                                          Total Installed Size:  3.96 MiB
                                          Net Upgrade Size:      0.00 MiB
                                          
                                          :: Proceed with installation? [Y/n] Y
                                          :: Retrieving packages...
                                           libxcb-1.13-1-x86_64          1017.5 KiB   242K/s 00:04 [##############################] 100%
                                          (1/1) checking keys in keyring                           [##############################] 100%
                                          (1/1) checking package integrity                         [##############################] 100%
                                          (1/1) loading package files                              [##############################] 100%
                                          (1/1) checking for file conflicts                        [##############################] 100%
                                          (1/1) checking available disk space                      [##############################] 100%
                                          :: Processing package changes...
                                          (1/1) reinstalling libxcb                                [##############################] 100%
                                          :: Running post-transaction hooks...
                                          (1/1) Arming ConditionNeedsUpdate...
                                          ~ $ pacman -Qo /usr/lib/libxcb-xinerama.so.0
                                          /usr/lib/libxcb-xinerama.so.0 is owned by libxcb 1.13-1
                                          ~ $ ldd /usr/lib/qt/plugins/platforms/libqxcb.so
                                          	linux-vdso.so.1 (0x00007ffc93f56000)
                                          	libQt5XcbQpa.so.5 => /usr/lib/libQt5XcbQpa.so.5 (0x00007f730ea63000)
                                          	libQt5Gui.so.5 => /usr/lib/libQt5Gui.so.5 (0x00007f730e2d5000)
                                          	libQt5Core.so.5 => /usr/lib/libQt5Core.so.5 (0x00007f730dbd4000)
                                          	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f730d84b000)
                                          	libc.so.6 => /usr/lib/libc.so.6 (0x00007f730d48f000)
                                          	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f730d24c000)
                                          	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f730cf83000)
                                          	libQt5DBus.so.5 => /usr/lib/libQt5DBus.so.5 (0x00007f730ccf3000)
                                          	libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f730cad5000)
                                          	libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0x00007f730c8d3000)
                                          	libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f730c594000)
                                          	libXi.so.6 => /usr/lib/libXi.so.6 (0x00007f730c383000)
                                          	libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f730c17b000)
                                          	libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f730bf5f000)
                                          	libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f730bd54000)
                                          	libxcb-xkb.so.1 => /usr/lib/libxcb-xkb.so.1 (0x00007f730bb37000)
                                          	libxcb-render-util.so.0 => /usr/lib/libxcb-render-util.so.0 (0x00007f730b933000)
                                          	libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x00007f730b725000)
                                          	libxcb-sync.so.1 => /usr/lib/libxcb-sync.so.1 (0x00007f730b51e000)
                                          	libxcb-xfixes.so.0 => /usr/lib/libxcb-xfixes.so.0 (0x00007f730b316000)
                                          	libxcb-xinerama.so.0 => /usr/lib/libxcb-xinerama.so.0 (0x00007f730b113000)
                                          	libxcb-randr.so.0 => /usr/lib/libxcb-randr.so.0 (0x00007f730af03000)
                                          	libxcb-image.so.0 => /usr/lib/libxcb-image.so.0 (0x00007f730acfe000)
                                          	libxcb-shm.so.0 => /usr/lib/libxcb-shm.so.0 (0x00007f730aafa000)
                                          	libxcb-keysyms.so.1 => /usr/lib/libxcb-keysyms.so.1 (0x00007f730a8f7000)
                                          	libxcb-icccm.so.4 => /usr/lib/libxcb-icccm.so.4 (0x00007f730a6f2000)
                                          	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f730a4c9000)
                                          	libxcb-shape.so.0 => /usr/lib/libxcb-shape.so.0 (0x00007f730a2c5000)
                                          	libxkbcommon.so.0 => /usr/lib/libxkbcommon.so.0 (0x00007f730a086000)
                                          	libxkbcommon-x11.so.0 => /usr/lib/libxkbcommon-x11.so.0 (0x00007f7309e7f000)
                                          	libm.so.6 => /usr/lib/libm.so.6 (0x00007f7309aea000)
                                          	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f73098d2000)
                                          	libGL.so.1 => /usr/lib/libGL.so.1 (0x00007f7309647000)
                                          	libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007f7309411000)
                                          	libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x00007f7309165000)
                                          	libz.so.1 => /usr/lib/libz.so.1 (0x00007f7308f4e000)
                                          	libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007f7308cc4000)
                                          	libicui18n.so.61 => /usr/lib/libicui18n.so.61 (0x00007f7308819000)
                                          	libicuuc.so.61 => /usr/lib/libicuuc.so.61 (0x00007f730845f000)
                                          	libpcre2-16.so.0 => /usr/lib/libpcre2-16.so.0 (0x00007f73081e8000)
                                          	libdouble-conversion.so.1 => /usr/lib/libdouble-conversion.so.1 (0x00007f7307fd8000)
                                          	libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f7307dd4000)
                                          	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f7307abd000)
                                          	/usr/lib64/ld-linux-x86-64.so.2 (0x00007f730efdd000)
                                          	libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f730788b000)
                                          	libuuid.so.1 => /usr/lib/libuuid.so.1 (0x00007f7307684000)
                                          	libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007f7307474000)
                                          	libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00007f7307223000)
                                          	libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f7307011000)
                                          	libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f7306e0d000)
                                          	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f7306c07000)
                                          	libxcb-util.so.1 => /usr/lib/libxcb-util.so.1 (0x00007f7306a01000)
                                          	libGLX.so.0 => /usr/lib/libGLX.so.0 (0x00007f73067d0000)
                                          	libGLdispatch.so.0 => /usr/lib/libGLdispatch.so.0 (0x00007f730651a000)
                                          	libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x00007f73062ee000)
                                          	librt.so.1 => /usr/lib/librt.so.1 (0x00007f73060e6000)
                                          	liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f7305ec0000)
                                          	liblz4.so.1 => /usr/lib/liblz4.so.1 (0x00007f7305ca3000)
                                          	libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007f7305987000)
                                          	libicudata.so.61 => /usr/lib/libicudata.so.61 (0x00007f7303de2000)
                                          	libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007f7303b70000)
                                          	libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f7303950000)
                                          ~ $ qtcreator
                                          QApplication: invalid style override passed, ignoring it.
                                          

                                          so it seems that reinstalling libxcb fixed the issue. So thank you very much guys.
                                          I own you really big beer :-)

                                          @SGaist
                                          there is no such thing on manjaro or archlinux which manjaro is baseed on

                                          D Offline
                                          D Offline
                                          Drexel
                                          wrote on last edited by
                                          #165

                                          Had the same problem today. Activated QT_DEBUG_PLUGINS:

                                          (.venv) raspifm@raspifm:~/Documents/src/raspiFM $  cd /home/raspifm/Documents/src/raspiFM ; /usr/bin/env /home/raspifm/Documents/src/raspiFM/.venv/bin/python /home/raspifm/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 37365 -- -m src.touchui 
                                          qt.core.plugin.factoryloader: checking directory path "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms" ...
                                          qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqwayland-egl.so"
                                          qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqwayland-egl.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "wayland-egl"
                                                  ]
                                              },
                                              "archlevel": 0,
                                              "className": "QWaylandEglPlatformIntegrationPlugin",
                                              "debug": false,
                                              "version": 394752
                                          }
                                          
                                          
                                          qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland-egl")
                                          qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqoffscreen.so"
                                          qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqoffscreen.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "offscreen"
                                                  ]
                                              },
                                              "archlevel": 0,
                                              "className": "QOffscreenIntegrationPlugin",
                                              "debug": false,
                                              "version": 394752
                                          }
                                          
                                          
                                          qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen")
                                          qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqlinuxfb.so"
                                          qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqlinuxfb.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "linuxfb"
                                                  ]
                                              },
                                              "archlevel": 0,
                                              "className": "QLinuxFbIntegrationPlugin",
                                              "debug": false,
                                              "version": 394752
                                          }
                                          
                                          
                                          qt.core.plugin.factoryloader: Got keys from plugin meta data QList("linuxfb")
                                          qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so"
                                          qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "xcb"
                                                  ]
                                              },
                                              "archlevel": 0,
                                              "className": "QXcbIntegrationPlugin",
                                              "debug": false,
                                              "version": 394752
                                          }
                                          
                                          
                                          qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb")
                                          qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqvnc.so"
                                          qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqvnc.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "vnc"
                                                  ]
                                              },
                                              "archlevel": 0,
                                              "className": "QVncIntegrationPlugin",
                                              "debug": false,
                                              "version": 394752
                                          }
                                          
                                          
                                          qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vnc")
                                          qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqminimalegl.so"
                                          qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqminimalegl.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "minimalegl"
                                                  ]
                                              },
                                              "archlevel": 0,
                                              "className": "QMinimalEglIntegrationPlugin",
                                              "debug": false,
                                              "version": 394752
                                          }
                                          
                                          
                                          qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimalegl")
                                          qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqvkkhrdisplay.so"
                                          qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqvkkhrdisplay.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "vkkhrdisplay"
                                                  ]
                                              },
                                              "archlevel": 0,
                                              "className": "QVkKhrDisplayIntegrationPlugin",
                                              "debug": false,
                                              "version": 394752
                                          }
                                          
                                          
                                          qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vkkhrdisplay")
                                          qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqwayland-generic.so"
                                          qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqwayland-generic.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "wayland"
                                                  ]
                                              },
                                              "archlevel": 0,
                                              "className": "QWaylandIntegrationPlugin",
                                              "debug": false,
                                              "version": 394752
                                          }
                                          
                                          
                                          qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland")
                                          qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqeglfs.so"
                                          qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqeglfs.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "eglfs"
                                                  ]
                                              },
                                              "archlevel": 0,
                                              "className": "QEglFSIntegrationPlugin",
                                              "debug": false,
                                              "version": 394752
                                          }
                                          
                                          
                                          qt.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs")
                                          qt.core.plugin.factoryloader: looking at "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqminimal.so"
                                          qt.core.plugin.loader: Found metadata in lib /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqminimal.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "minimal"
                                                  ]
                                              },
                                              "archlevel": 0,
                                              "className": "QMinimalIntegrationPlugin",
                                              "debug": false,
                                              "version": 394752
                                          }
                                          
                                          
                                          qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal")
                                          qt.core.plugin.factoryloader: checking directory path "/usr/bin/platforms" ...
                                          qt.core.library: "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so" cannot load: Cannot load library /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: cannot open shared object file: No such file or directory)
                                          qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "/home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/raspifm/Documents/src/raspiFM/.venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so: (libxcb-cursor.so.0: cannot open shared object file: No such file or directory)"
                                          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: wayland-egl, offscreen, linuxfb, xcb, vnc, minimalegl, vkkhrdisplay, wayland, eglfs, minimal.
                                          

                                          Installed package libxcb-cursor0 and now it works....

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved