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.3k 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.
  • B Offline
    B Offline
    B_R_Khan
    wrote on last edited by
    #1

    Hi!

    I installed qt5 default on ubuntu 20.04 and tried to run flameshot & gnuplot. But it gives me the following error when I run flameshot after QT_DEBUG_PLUGINS=1:

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

    I have tried everything, from exporting plug in paths to downloading all library dependencies using ldd, I also used export DISPLAY=:1.0 but still this error is shown.

    Kindly help!
    One more thing, the path to my plugins is /usr/lib/x86_64-linux-gnu/qt5/plugins but the bin is in /usr/lib/qt5/bin (I'm not sure if this is relevant but it might explain the problem)

    Thanks!

    jsulmJ JonBJ 2 Replies Last reply
    0
    • B B_R_Khan

      Hi!

      I installed qt5 default on ubuntu 20.04 and tried to run flameshot & gnuplot. But it gives me the following error when I run flameshot after QT_DEBUG_PLUGINS=1:

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

      I have tried everything, from exporting plug in paths to downloading all library dependencies using ldd, I also used export DISPLAY=:1.0 but still this error is shown.

      Kindly help!
      One more thing, the path to my plugins is /usr/lib/x86_64-linux-gnu/qt5/plugins but the bin is in /usr/lib/qt5/bin (I'm not sure if this is relevant but it might explain the problem)

      Thanks!

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

      @B_R_Khan said in 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.:

      qt.qpa.xcb: could not connect to display :1.0

      Is XServer running?

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

      1 Reply Last reply
      1
      • B Offline
        B Offline
        B_R_Khan
        wrote on last edited by
        #3

        I don't know how to start xserver. I assumed it is only required on WSL and no particular installation/running is required for ubuntu

        1 Reply Last reply
        0
        • B B_R_Khan

          Hi!

          I installed qt5 default on ubuntu 20.04 and tried to run flameshot & gnuplot. But it gives me the following error when I run flameshot after QT_DEBUG_PLUGINS=1:

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

          I have tried everything, from exporting plug in paths to downloading all library dependencies using ldd, I also used export DISPLAY=:1.0 but still this error is shown.

          Kindly help!
          One more thing, the path to my plugins is /usr/lib/x86_64-linux-gnu/qt5/plugins but the bin is in /usr/lib/qt5/bin (I'm not sure if this is relevant but it might explain the problem)

          Thanks!

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @B_R_Khan said in 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.:

          qt.qpa.xcb: could not connect to display :1.0

          Just so you know: once you get this message you can forget everything about dependencies or paths. xcb is OK, but it cannot access your specified DISPLAY (do you have dual monitors or something?).

          You could verify this with

          sudo apt install xterm    # This seems to need installing on 20.04
          export DISPLAY=:1.0
          xterm
          

          You should get the same error message.

          You need to get that working (I don't suppose export DISPLAY=:0 solves it, does it?) for the Qt program to work too. Not that I know what you have to do to make it work, but there you are...!

          B 1 Reply Last reply
          1
          • JonBJ JonB

            @B_R_Khan said in 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.:

            qt.qpa.xcb: could not connect to display :1.0

            Just so you know: once you get this message you can forget everything about dependencies or paths. xcb is OK, but it cannot access your specified DISPLAY (do you have dual monitors or something?).

            You could verify this with

            sudo apt install xterm    # This seems to need installing on 20.04
            export DISPLAY=:1.0
            xterm
            

            You should get the same error message.

            You need to get that working (I don't suppose export DISPLAY=:0 solves it, does it?) for the Qt program to work too. Not that I know what you have to do to make it work, but there you are...!

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

            @JonB it says

            xterm: Xt error: Can't open display: :1.0

            Nope I don't have dual monitors.
            One thing more,
            I don't know what's happening but when I open new terminal it sometimes gives me error :

            Got keys from plugin meta data ("ibus")
            QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforminputcontexts" ...
            loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
            Cannot mix incompatible Qt library (version 0x50c08) with this library (version 0x50c09)
            Aborted (core dumped)
            

            I reinstalled qt5-default again ,tried your command and now I 'm back to getting the old cannot connect to display error

            JonBJ 1 Reply Last reply
            0
            • B B_R_Khan

              @JonB it says

              xterm: Xt error: Can't open display: :1.0

              Nope I don't have dual monitors.
              One thing more,
              I don't know what's happening but when I open new terminal it sometimes gives me error :

              Got keys from plugin meta data ("ibus")
              QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforminputcontexts" ...
              loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
              Cannot mix incompatible Qt library (version 0x50c08) with this library (version 0x50c09)
              Aborted (core dumped)
              

              I reinstalled qt5-default again ,tried your command and now I 'm back to getting the old cannot connect to display error

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #6

              @B_R_Khan

              @JonB said in 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.:

              You should get the same error message.

              I know it does, that is exactly what I said it would do! So now you know you have the problem quite outside of anything Qt, and it needs resolving.

              B 1 Reply Last reply
              1
              • JonBJ JonB

                @B_R_Khan

                @JonB said in 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.:

                You should get the same error message.

                I know it does, that is exactly what I said it would do! So now you know you have the problem quite outside of anything Qt, and it needs resolving.

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

                @JonB It's giving me a different error now:

                Cannot mix incompatible Qt library (version 0x50c08) with this library (version 0x50c09)

                JonBJ 1 Reply Last reply
                0
                • B B_R_Khan

                  @JonB It's giving me a different error now:

                  Cannot mix incompatible Qt library (version 0x50c08) with this library (version 0x50c09)

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by
                  #8

                  @B_R_Khan said in 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.:

                  @JonB It's giving me a different error now:

                  Programs are (mostly) deterministic and do not give different error messages each time they run.

                  Unless you changed something and don't bother to say what, in which case there's no point asking about it.

                  Meanwhile, that is an error message about Qt. xterm does not use Qt. I said get xterm working then your Qt issue should resolve itself. Fiddling with things Qt won't affect xterm, or your problem.

                  B 1 Reply Last reply
                  0
                  • JonBJ JonB

                    @B_R_Khan said in 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.:

                    @JonB It's giving me a different error now:

                    Programs are (mostly) deterministic and do not give different error messages each time they run.

                    Unless you changed something and don't bother to say what, in which case there's no point asking about it.

                    Meanwhile, that is an error message about Qt. xterm does not use Qt. I said get xterm working then your Qt issue should resolve itself. Fiddling with things Qt won't affect xterm, or your problem.

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

                    @JonB
                    sorry for not being clear enough. I apologize.

                    I was following the thread https://forum.qt.io/topic/111553/solved-qt-qpa-plugin-could-not-find-the-qt-platform-plugin-xcb-in/8 before I posted this question. Initially, I was only getting qt plugin not found error. I followed the steps
                    export QT_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt5/plugins
                    export QT_DEBUG_PLUGINS=1
                    flameshot / gave plot command in gnuplot
                    It started giving the error I asked in this thread i-e display not found and could not load qt plugin even though it was found.
                    I started looking for display not found error as you mentioned it's not qt error. Assuming that I have to run the export QT_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt5/plugins everytime I open new terminal, I executed all of the above commands again in new terminal in addition to sudo ln -sf /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms. I ran flameshot again and got error:

                    Got keys from plugin meta data ("ibus")
                    QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforminputcontexts" ...
                    loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
                    Cannot mix incompatible Qt library (version 0x50c08) with this library (version 0x50c09)
                    Aborted (core dumped)
                    

                    I deleted all xcb libraries and qt packages, reinstalled but again getting the same error. I don't know what went wrong.

                    jsulmJ JonBJ 2 Replies Last reply
                    0
                    • B B_R_Khan

                      @JonB
                      sorry for not being clear enough. I apologize.

                      I was following the thread https://forum.qt.io/topic/111553/solved-qt-qpa-plugin-could-not-find-the-qt-platform-plugin-xcb-in/8 before I posted this question. Initially, I was only getting qt plugin not found error. I followed the steps
                      export QT_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt5/plugins
                      export QT_DEBUG_PLUGINS=1
                      flameshot / gave plot command in gnuplot
                      It started giving the error I asked in this thread i-e display not found and could not load qt plugin even though it was found.
                      I started looking for display not found error as you mentioned it's not qt error. Assuming that I have to run the export QT_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt5/plugins everytime I open new terminal, I executed all of the above commands again in new terminal in addition to sudo ln -sf /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms. I ran flameshot again and got error:

                      Got keys from plugin meta data ("ibus")
                      QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforminputcontexts" ...
                      loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
                      Cannot mix incompatible Qt library (version 0x50c08) with this library (version 0x50c09)
                      Aborted (core dumped)
                      

                      I deleted all xcb libraries and qt packages, reinstalled but again getting the same error. I don't know what went wrong.

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

                      @B_R_Khan said in 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.:

                      Assuming that I have to run the export QT_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt5/plugins

                      This is wrong assumption.
                      Your problem has NOTHING to do with Qt!
                      The problem is that you do not have XServer running, or display: :1.0 is wrong.
                      So, do NOT set QT_PLUGIN_PATH.
                      Make sure you have XServer running and find out which display id you have to use.

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

                      1 Reply Last reply
                      1
                      • B B_R_Khan

                        @JonB
                        sorry for not being clear enough. I apologize.

                        I was following the thread https://forum.qt.io/topic/111553/solved-qt-qpa-plugin-could-not-find-the-qt-platform-plugin-xcb-in/8 before I posted this question. Initially, I was only getting qt plugin not found error. I followed the steps
                        export QT_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt5/plugins
                        export QT_DEBUG_PLUGINS=1
                        flameshot / gave plot command in gnuplot
                        It started giving the error I asked in this thread i-e display not found and could not load qt plugin even though it was found.
                        I started looking for display not found error as you mentioned it's not qt error. Assuming that I have to run the export QT_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt5/plugins everytime I open new terminal, I executed all of the above commands again in new terminal in addition to sudo ln -sf /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms. I ran flameshot again and got error:

                        Got keys from plugin meta data ("ibus")
                        QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforminputcontexts" ...
                        loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
                        Cannot mix incompatible Qt library (version 0x50c08) with this library (version 0x50c09)
                        Aborted (core dumped)
                        

                        I deleted all xcb libraries and qt packages, reinstalled but again getting the same error. I don't know what went wrong.

                        JonBJ Offline
                        JonBJ Offline
                        JonB
                        wrote on last edited by
                        #11

                        @B_R_Khan
                        As I said clearly earlier, forget Qt anything. Come back as & when you have xterm starting correctly.

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

                          Hi,

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

                          What are you currently using ?

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

                          B X 2 Replies Last reply
                          1
                          • SGaistS SGaist

                            Hi,

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

                            What are you currently using ?

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

                            @SGaist Hi!

                            I have x11 and xterm is running now since I started using a different kernel version. Unfortunately, I'm still not being able to solve this error. The error says:

                            qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
                            This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                            
                            Aborted (core dumped)
                            

                            The output for ldd libqxcb.so is:

                            linux-vdso.so.1 (0x00007ffcd771e000)
                            	libQt5XcbQpa.so.5 => /home/b/OpenFOAM/ParaView-5.9.1/lib/libQt5XcbQpa.so.5 (0x00007f324df9f000)
                            	libQt5Gui.so.5 => /home/b/OpenFOAM/ParaView-5.9.1/lib/libQt5Gui.so.5 (0x00007f324d786000)
                            	libQt5Core.so.5 => /home/b/OpenFOAM/ParaView-5.9.1/lib/libQt5Core.so.5 (0x00007f324cf66000)
                            	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f324cd67000)
                            	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f324cb73000)
                            	libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f324caeb000)
                            	libfontconfig.so.1 => /home/b/OpenFOAM/ParaView-5.9.1/lib/libfontconfig.so.1 (0x00007f324c89c000)
                            	libfreetype.so.6 => /home/b/OpenFOAM/ParaView-5.9.1/lib/libfreetype.so.6 (0x00007f324c5b1000)
                            	libz.so.1 => /home/b/OpenFOAM/ParaView-5.9.1/lib/libz.so.1 (0x00007f324c394000)
                            	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f324c371000)
                            	libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f324c36a000)
                            	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f324c340000)
                            	libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f324c136000)
                            	libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f324c121000)
                            	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f324bfe4000)
                            	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f324be95000)
                            	libSM.so.6 => /lib/x86_64-linux-gnu/libSM.so.6 (0x00007f324be88000)
                            	libICE.so.6 => /lib/x86_64-linux-gnu/libICE.so.6 (0x00007f324be6a000)
                            	libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f324be5f000)
                            	libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f324be1d000)
                            	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f324be17000)
                            	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f324bdfc000)
                            	libpng16.so.16 => /home/b/OpenFOAM/ParaView-5.9.1/lib/libpng16.so.16 (0x00007f324bbb7000)
                            	/lib64/ld-linux-x86-64.so.2 (0x00007f324e2d9000)
                            	libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f324baff000)
                            	libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f324bacb000)
                            	libxml2.so.2 => /home/b/OpenFOAM/ParaView-5.9.1/lib/../lib/libxml2.so.2 (0x00007f324b70f000)
                            	libuuid.so.1 => /home/b/OpenFOAM/ParaView-5.9.1/lib/../lib/libuuid.so.1 (0x00007f324b507000)
                            	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f324b4ff000)
                            	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f324b4f7000)
                            	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f324b4dd000)
                            	libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f324b4bf000)
                            
                            

                            Would really appreciate some help since I want to use some applications that can't be run without qt

                            Thanks

                            JonBJ 1 Reply Last reply
                            0
                            • B B_R_Khan

                              @SGaist Hi!

                              I have x11 and xterm is running now since I started using a different kernel version. Unfortunately, I'm still not being able to solve this error. The error says:

                              qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
                              This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                              
                              Aborted (core dumped)
                              

                              The output for ldd libqxcb.so is:

                              linux-vdso.so.1 (0x00007ffcd771e000)
                              	libQt5XcbQpa.so.5 => /home/b/OpenFOAM/ParaView-5.9.1/lib/libQt5XcbQpa.so.5 (0x00007f324df9f000)
                              	libQt5Gui.so.5 => /home/b/OpenFOAM/ParaView-5.9.1/lib/libQt5Gui.so.5 (0x00007f324d786000)
                              	libQt5Core.so.5 => /home/b/OpenFOAM/ParaView-5.9.1/lib/libQt5Core.so.5 (0x00007f324cf66000)
                              	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f324cd67000)
                              	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f324cb73000)
                              	libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f324caeb000)
                              	libfontconfig.so.1 => /home/b/OpenFOAM/ParaView-5.9.1/lib/libfontconfig.so.1 (0x00007f324c89c000)
                              	libfreetype.so.6 => /home/b/OpenFOAM/ParaView-5.9.1/lib/libfreetype.so.6 (0x00007f324c5b1000)
                              	libz.so.1 => /home/b/OpenFOAM/ParaView-5.9.1/lib/libz.so.1 (0x00007f324c394000)
                              	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f324c371000)
                              	libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f324c36a000)
                              	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f324c340000)
                              	libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f324c136000)
                              	libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f324c121000)
                              	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f324bfe4000)
                              	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f324be95000)
                              	libSM.so.6 => /lib/x86_64-linux-gnu/libSM.so.6 (0x00007f324be88000)
                              	libICE.so.6 => /lib/x86_64-linux-gnu/libICE.so.6 (0x00007f324be6a000)
                              	libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f324be5f000)
                              	libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f324be1d000)
                              	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f324be17000)
                              	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f324bdfc000)
                              	libpng16.so.16 => /home/b/OpenFOAM/ParaView-5.9.1/lib/libpng16.so.16 (0x00007f324bbb7000)
                              	/lib64/ld-linux-x86-64.so.2 (0x00007f324e2d9000)
                              	libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f324baff000)
                              	libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f324bacb000)
                              	libxml2.so.2 => /home/b/OpenFOAM/ParaView-5.9.1/lib/../lib/libxml2.so.2 (0x00007f324b70f000)
                              	libuuid.so.1 => /home/b/OpenFOAM/ParaView-5.9.1/lib/../lib/libuuid.so.1 (0x00007f324b507000)
                              	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f324b4ff000)
                              	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f324b4f7000)
                              	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f324b4dd000)
                              	libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f324b4bf000)
                              
                              

                              Would really appreciate some help since I want to use some applications that can't be run without qt

                              Thanks

                              JonBJ Offline
                              JonBJ Offline
                              JonB
                              wrote on last edited by JonB
                              #14

                              @B_R_Khan
                              Please post (or look at) the output after export QT_DEBUG_PLUGINS=1, at the end where it will state what the actual issue is. You should have more lines preceding the 2 lines you post above.

                              B 1 Reply Last reply
                              0
                              • JonBJ JonB

                                @B_R_Khan
                                Please post (or look at) the output after export QT_DEBUG_PLUGINS=1, at the end where it will state what the actual issue is. You should have more lines preceding the 2 lines you post above.

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

                                @JonB

                                I get this when I run gnuplot commands after export QT_DEBUG_PLUGINS=1:

                                QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
                                qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
                                This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                
                                Aborted (core dumped)
                                
                                JonBJ 1 Reply Last reply
                                0
                                • B B_R_Khan

                                  @JonB

                                  I get this when I run gnuplot commands after export QT_DEBUG_PLUGINS=1:

                                  QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
                                  qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
                                  This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                  
                                  Aborted (core dumped)
                                  
                                  JonBJ Offline
                                  JonBJ Offline
                                  JonB
                                  wrote on last edited by
                                  #16

                                  @B_R_Khan
                                  I am really surprised. If you look at anyone else reporting this or similar issues you will see they get voluminous diagnostic output. Are you setting the environment variable in a shell/terminal and running your application from there after setting the variable? If the output is not markedly different with and without that variable set it does not sound right.

                                  B 1 Reply Last reply
                                  0
                                  • JonBJ JonB

                                    @B_R_Khan
                                    I am really surprised. If you look at anyone else reporting this or similar issues you will see they get voluminous diagnostic output. Are you setting the environment variable in a shell/terminal and running your application from there after setting the variable? If the output is not markedly different with and without that variable set it does not sound right.

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

                                    @JonB

                                    I ran export QT_DEBUG_PLUGINS=1 in a new terminal and then ran flameshot/ gnuplot commands . Flameshot gives:

                                    QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
                                    qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
                                    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                    
                                    Aborted (core dumped)
                                    

                                    Gnuplot gives following when I try to plot anything:

                                    Terminal type is now 'qt'
                                    gnuplot> plot sin(x)/x  
                                    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/gnuplot/platforms" ...
                                    qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
                                    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                    
                                    Could not connect to existing gnuplot_qt. Starting a new one.
                                    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/gnuplot/platforms" ...
                                    qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
                                    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                    

                                    I hope I followed your instructions correctly . I am using paraview as well which requires qt and it is running fine.
                                    I also want to mention that I get the following when I try the command qmake --version:
                                    QMake version 3.1
                                    Using Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu

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

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

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

                                      B 1 Reply Last reply
                                      2
                                      • 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

                                          • Login

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