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.xcb: could not connect to display :1.0 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.xcb: could not connect to display :1.0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
28 Posts 7 Posters 58.6k Views 1 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.
  • SGaistS SGaist

    What output do you get from paraview if you set QT_DEBUG_PLUGINS to 1 ?

    B Offline
    B Offline
    B_R_Khan
    wrote on last edited by
    #19

    @SGaist
    I get the following output:

    QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/home/b/OpenFOAM/ParaView-5.9.1/plugins/platforms/libqxcb.so"
    Found metadata in lib /home/b/OpenFOAM/ParaView-5.9.1/plugins/platforms/libqxcb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "xcb"
            ]
        },
        "archreq": 0,
        "className": "QXcbIntegrationPlugin",
        "debug": false,
        "version": 330752
    }
    
    
    Got keys from plugin meta data ("xcb")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/bin/platforms" ...
    loaded library "/home/b/OpenFOAM/ParaView-5.9.1/plugins/platforms/libqxcb.so"
    loaded library "Xcursor"
    QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/bin/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/platforminputcontexts" ...
    QFactoryLoader::QFactoryLoader() looking at "/home/b/OpenFOAM/ParaView-5.9.1/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
    Found metadata in lib /home/b/OpenFOAM/ParaView-5.9.1/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "compose",
                "xim"
            ]
        },
        "archreq": 0,
        "className": "QComposePlatformInputContextPlugin",
        "debug": false,
        "version": 330752
    }
    
    
    Got keys from plugin meta data ("compose", "xim")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/bin/platforminputcontexts" ...
    loaded library "/home/b/OpenFOAM/ParaView-5.9.1/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/bin/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/iconengines" ...
    QFactoryLoader::QFactoryLoader() looking at "/home/b/OpenFOAM/ParaView-5.9.1/plugins/iconengines/libqsvgicon.so"
    Found metadata in lib /home/b/OpenFOAM/ParaView-5.9.1/plugins/iconengines/libqsvgicon.so, metadata=
    {
        "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
        "MetaData": {
            "Keys": [
                "svg",
                "svgz",
                "svg.gz"
            ]
        },
        "archreq": 0,
        "className": "QSvgIconPlugin",
        "debug": false,
        "version": 330752
    }
    
    
    Got keys from plugin meta data ("svg", "svgz", "svg.gz")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/bin/iconengines" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/imageformats" ...
    QFactoryLoader::QFactoryLoader() looking at "/home/b/OpenFOAM/ParaView-5.9.1/plugins/imageformats/libqsvg.so"
    Found metadata in lib /home/b/OpenFOAM/ParaView-5.9.1/plugins/imageformats/libqsvg.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "svg",
                "svgz"
            ],
            "MimeTypes": [
                "image/svg+xml",
                "image/svg+xml-compressed"
            ]
        },
        "archreq": 0,
        "className": "QSvgPlugin",
        "debug": false,
        "version": 330752
    }
    
    
    Got keys from plugin meta data ("svg", "svgz")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/bin/imageformats" ...
    loaded library "/home/b/OpenFOAM/ParaView-5.9.1/plugins/imageformats/libqsvg.so"
    loaded library "/home/b/OpenFOAM/ParaView-5.9.1/plugins/iconengines/libqsvgicon.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/accessible" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/bin/accessible" ...
    VisRTX 0.1.6, using devices:
     0: NVIDIA GeForce RTX 3050 Ti Laptop GPU (Total: 4.1 GB, Available: 4.0 GB)
    debug: In unknown, line 0
    debug: QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/xcbglintegrations" ...
    debug: In unknown, line 0
    debug: QFactoryLoader::QFactoryLoader() looking at "/home/b/OpenFOAM/ParaView-5.9.1/plugins/xcbglintegrations/libqxcb-glx-integration.so"
    
    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #20

      Hi, paraview works because is using it's own Qt (version 5.9.1).
      On the same PC you also have Qt version 5.12.8 and 5.12.9 installed. Having more than one version of Qt installed on the same computer is always risky :.-(
      Try to get rid of that qt5-default Qt version 5.12.8 and instead install complete versions of flameshot and gnuplot (so that they get also get their own, internal Qt version, like paraview has now).

      1 Reply Last reply
      1
      • M Offline
        M Offline
        muhammad4997
        wrote on last edited by
        #21

        I am using a remote Jupyter notebook and trying to start the qtconsole but getting the following error.

        qt.qpa.xcb: could not connect to display :0
        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, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

        I have tried both
        export DISPLAY=:0
        $
        export DISPLAY=:1

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #22

          When you say remote, how are you accessing it ?

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

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            When you say remote, how are you accessing it ?

            M Offline
            M Offline
            muhammad4997
            wrote on last edited by muhammad4997
            #23

            @SGaist I access it via IP and port like
            http://<IP>:8999

            The Jupyter is deployed on another server machine

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #24

              So you have a JupyterLab session running ?

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

              M 1 Reply Last reply
              0
              • SGaistS SGaist

                So you have a JupyterLab session running ?

                M Offline
                M Offline
                muhammad4997
                wrote on last edited by
                #25

                @SGaist No its not a JupyterLab session. It is only notebook running on a remote machine. On remote machine i installed it via
                "pip install notebook"

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #26

                  What is your exact setup ?
                  You seem to be running your notebook in a browser.

                  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
                  • SGaistS SGaist

                    Hi,

                    Any chances that your desktop environment runs on top of Wayland ?

                    What are you currently using ?

                    X Offline
                    X Offline
                    Ximeng
                    wrote on last edited by
                    #27

                    @SGaist Hello, I got the same problem as this post "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. And I am installing code_saturne v7.2.0 in WSL ubuntu 20.04.5. It seems like my laptop environment runs on Wayland, since when I use synaptic, it showed that: 'Probably you're running Synaptic on Wayland with root permission.
                    Please restart your session without Wayland, or run Synaptic without root permission.'
                    Do you have any suggestions about this? Very appreciate.

                    SGaistS 1 Reply Last reply
                    0
                    • X Ximeng

                      @SGaist Hello, I got the same problem as this post "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. And I am installing code_saturne v7.2.0 in WSL ubuntu 20.04.5. It seems like my laptop environment runs on Wayland, since when I use synaptic, it showed that: 'Probably you're running Synaptic on Wayland with root permission.
                      Please restart your session without Wayland, or run Synaptic without root permission.'
                      Do you have any suggestions about this? Very appreciate.

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

                      @Ximeng hi and welcome to devnet,

                      Did you try to use the Qt version provided by your distribution ? It should be configured to be directly usable under Wayland.

                      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

                      • Login

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