Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QXcbConnection error at startup
Qt 6.11 is out! See what's new in the release blog

QXcbConnection error at startup

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 537 Views 2 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.
  • M Offline
    M Offline
    Marc_Van_Daele
    wrote on last edited by
    #1

    When running the following application from QtCreator (4.2.0) using Qt5.7.1

    #include <QGuiApplication>
    
    int main(int argc, char *argv[])
    {
        QGuiApplication app(argc, argv);
        return app.exec();
    }
    

    I get the following error

    QML debugging is enabled. Only use this in a safe environment.
    QXcbConnection: XCB error: 179 (Unknown), sequence: 174, resource id: 0, major code: 153 (Unknown), minor code: 20
    

    Any idea how to avoid/mask this error?

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

      Hi,

      What Linux distribution are you running ?
      What desktop environnement are you using ?
      Did you test your application using your distribution provided Qt ?

      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
      • M Offline
        M Offline
        Marc_Van_Daele
        wrote on last edited by
        #3

        We are running Debian Wheezy (Yes, I know :-)) , desktop environment xfce4.
        I've only tested against Qt5.7.1, not against Qt provided by the distribution (and I would rather not install it since I'm afraid it might break our current setup)

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

          The thing is, it's likely already installed just not the développement packages.

          Can you check which version it is ?

          You X installation might be too old.

          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
          • M Offline
            M Offline
            Marc_Van_Daele
            wrote on last edited by
            #5

            Next to my /usr/local/Qt5.7.1, I indeed also have

            • /usr/include/qt4
            • /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6 (and other .so files)
            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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
              • M Offline
                M Offline
                Marc_Van_Daele
                wrote on last edited by
                #7

                My desktop environment is xfce4
                Obviously this is a very minor issue so don't spend too much of your time on this (although I do appreciate your support!).

                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