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
Forum Updated to NodeBB v4.3 + New Features

qt.qpa.xcb: could not connect to display

Scheduled Pinned Locked Moved Solved Installation and Deployment
23 Posts 7 Posters 154.1k 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 Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #7

    Did you test other Qt based applications ?

    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
    • J Offline
      J Offline
      jarvis
      wrote on last edited by
      #8

      Well not yet

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jarvis
        wrote on last edited by
        #9

        Is there any way to restore libqxcb.so this file is missing.

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

          You deleted it from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/ ?

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

          J 1 Reply Last reply
          0
          • SGaistS SGaist

            You deleted it from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/ ?

            J Offline
            J Offline
            jarvis
            wrote on last edited by
            #11

            @SGaist I have it now
            still facing the same issue

            1 Reply Last reply
            0
            • J Offline
              J Offline
              jarvis
              wrote on last edited by
              #12

              can any symbolic link solve this issue?

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

                No

                As requested did you check other Qt application ?
                What desktop environment are you using ?

                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
                • J Offline
                  J Offline
                  jarvis
                  wrote on last edited by
                  #14

                  Well i am on windows 10 with enabled subsystem kali linux.
                  "sudo apt-get install wireshark-common" was the command which I used,
                  it downloads all the lib as well automatically which I mentioned above.

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

                    That's the kind of details that is important. A full blown Linux system or the Windows Linux subsystem is not exactly the same.

                    AFAIK, they currently don't provide direct support for X11, you may have to install a tool like Xming for that.

                    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
                    • J Offline
                      J Offline
                      jarvis
                      wrote on last edited by
                      #16

                      Well I have installed Xming. Could you please help me with this

                      qt.qpa.xcb: X server does not support XInput 2
                      failed to get the current screen resources
                      QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-jarvis'
                      Failed to connect to generic netlink.
                      The X11 connection broke: I/O error (code 1)
                      XIO: fatal IO error 2 (No such file or directory) on X server ":0"
                      after 364 requests (364 known processed) with 0 events remaining.

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

                        I can currently go further as I don't have a Windows machine at hand.

                        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
                        • J Offline
                          J Offline
                          jarvis
                          wrote on last edited by
                          #18

                          Well, I have installed VcXsrv instead of Xming and now Wireshark is working just as expected.

                          Thanks @SGaist

                          1 Reply Last reply
                          0
                          • N Offline
                            N Offline
                            Networkyy
                            wrote on last edited by
                            #19

                            Hello i have this message while trying to downgrde ubuntu 20.04 to 18.04

                            E: The repository 'https://packages.sury.org/php focal Release' does not have a Release file.
                            N: Updating from such a repository can't be done securely, and is therefore disabled by default.
                            N: See apt-secure(8) manpage for repository creation and user configuration details.
                            E: The repository 'http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04 Release' does not have a Release file.
                            N: Updating from such a repository can't be done securely, and is therefore disabled by default.
                            N: See apt-secure(8) manpage for repository creation and user configuration details.

                            jsulmJ 1 Reply Last reply
                            0
                            • N Networkyy

                              Hello i have this message while trying to downgrde ubuntu 20.04 to 18.04

                              E: The repository 'https://packages.sury.org/php focal Release' does not have a Release file.
                              N: Updating from such a repository can't be done securely, and is therefore disabled by default.
                              N: See apt-secure(8) manpage for repository creation and user configuration details.
                              E: The repository 'http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04 Release' does not have a Release file.
                              N: Updating from such a repository can't be done securely, and is therefore disabled by default.
                              N: See apt-secure(8) manpage for repository creation and user configuration details.

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

                              @Networkyy How is your issue related to this thread?
                              It is not even clear to me how it is related to Qt at all...

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

                              1 Reply Last reply
                              1
                              • Z Offline
                                Z Offline
                                ZainlessBrombie
                                wrote on last edited by
                                #21

                                FYI I had this issue when I had ssh-ed into localhost for port forwarding and tried to start it from there. A fresh terminal worked.
                                What I am trying to say is: Check if your $DISPLAY ist set correctly for the process and that it can communicate.

                                1 Reply Last reply
                                1
                                • J Offline
                                  J Offline
                                  John.M T
                                  wrote on last edited by
                                  #22

                                  hi guys,
                                  I have the same error when issuing the following command:
                                  ros2 run turtlesim turtlesim_node

                                  My environment:
                                  Running ubuntu20.04 server with ROS2 foxy desktop on Raspberry Pi 4.
                                  Using windows10 putty ssh to access raspberry pi 4 and login into its ubuntu,
                                  and issued the command "ros2 run turtlesim turtlesim_node"

                                  Error message:


                                  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.


                                  Please advise.
                                  Thanks.

                                  JonBJ 1 Reply Last reply
                                  0
                                  • J John.M T

                                    hi guys,
                                    I have the same error when issuing the following command:
                                    ros2 run turtlesim turtlesim_node

                                    My environment:
                                    Running ubuntu20.04 server with ROS2 foxy desktop on Raspberry Pi 4.
                                    Using windows10 putty ssh to access raspberry pi 4 and login into its ubuntu,
                                    and issued the command "ros2 run turtlesim turtlesim_node"

                                    Error message:


                                    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.


                                    Please advise.
                                    Thanks.

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

                                    @John-M-T
                                    Duplicate post of your https://forum.qt.io/topic/134114/error-when-launching-rqt.

                                    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