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. XCB error: 148 - Qt application display issues

XCB error: 148 - Qt application display issues

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 4 Posters 15.0k 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.
  • Jonathan LevanonJ Offline
    Jonathan LevanonJ Offline
    Jonathan Levanon
    wrote on last edited by
    #1

    I'm trying to run my Qt application on a different computer (it works perfectly on mine, where I developed it). When I start this application through the terminal, I get this error -

    QXcbConnection: XCB error: 148 (Unknown), sequence: 175, resource id: 0, major code: 140 (Unknown), minor code: 20

    My program does launch and everything looks ok, but when I run it I see strange behavior when interacting with the display (some paint commands are not being executed, which is crucial for my app).

    I've tried searching for this error and I can't find any solution so far. Do you have any suggestions?

    Using ubuntu 16.04, with Nvidia 1050 GTX gpu, code was compiled with Qt 5.7

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Swapnil_Shelke
      wrote on last edited by
      #2

      i was also facing the same issue
      the solution that worked for me was,
      coping my libxcb.so file on the system i am running my application and making a any_name.conf file in /etc/ld.so.conf/any_name.conf with the folder path where libxcb is placed.

      i have placed my libxcb.so in "platforms" folder where my application is.

      hope this helps...

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

        Hi and welcome to devnet,

        What are the differences between both machines ?
        And how did you deploy your application ?

        @Swapnil_Shelke modifying the ld.so.conf configuration of a user machine for a library that is likely already installed on that machine is not a good idea.

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

        Jonathan LevanonJ 1 Reply Last reply
        2
        • SGaistS SGaist

          Hi and welcome to devnet,

          What are the differences between both machines ?
          And how did you deploy your application ?

          @Swapnil_Shelke modifying the ld.so.conf configuration of a user machine for a library that is likely already installed on that machine is not a good idea.

          Jonathan LevanonJ Offline
          Jonathan LevanonJ Offline
          Jonathan Levanon
          wrote on last edited by
          #4

          @SGaist

          Comp1 (working) -
          Nvidia GTX 960
          ubuntu 14.04
          Qt 5.7

          Comp2 (error) -
          Nvidia GTX 1050
          ubuntu 16.04
          Qt 5.7

          I compiled my code on comp1, and just took the executable. Linking is dynamic to the Qt libraries (they came from the same installation file).

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

            Where does the Qt you installed come from ?

            Just to be sure, you only copy the executable to your other machine ?

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

            Jonathan LevanonJ 1 Reply Last reply
            1
            • SGaistS SGaist

              Where does the Qt you installed come from ?

              Just to be sure, you only copy the executable to your other machine ?

              Jonathan LevanonJ Offline
              Jonathan LevanonJ Offline
              Jonathan Levanon
              wrote on last edited by
              #6

              @SGaist

              The Qt comes from Qt's site, I've installed using the 'qt-opensource-linux-x64-5.7.0.run' script.
              And yes, just copied.
              Thanks

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

                Then are you sue that you are using that version of Qt when running your application ?

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

                Jonathan LevanonJ 1 Reply Last reply
                1
                • SGaistS SGaist

                  Then are you sue that you are using that version of Qt when running your application ?

                  Jonathan LevanonJ Offline
                  Jonathan LevanonJ Offline
                  Jonathan Levanon
                  wrote on last edited by
                  #8

                  @SGaist
                  I'm sure. Will try to reinstall Qt and run it again. Do you have any direction I can look into to even figure out what this error means?

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

                    You didn't deploy the application, did you ? You just copied the executable over you other machine ?

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

                    Jonathan LevanonJ 1 Reply Last reply
                    1
                    • SGaistS SGaist

                      You didn't deploy the application, did you ? You just copied the executable over you other machine ?

                      Jonathan LevanonJ Offline
                      Jonathan LevanonJ Offline
                      Jonathan Levanon
                      wrote on last edited by
                      #10

                      @SGaist
                      Correct

                      mrjjM 1 Reply Last reply
                      1
                      • Jonathan LevanonJ Jonathan Levanon

                        @SGaist
                        Correct

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by mrjj
                        #11

                        @Jonathan-Levanon
                        Hi
                        Normally you create a deployment folder containing
                        a few subfolders ( like platforms )
                        and the needed dlls/so files.

                        http://www.tripleboot.org/?p=138
                        http://doc.qt.io/qt-5/linux-deployment.html

                        You can also test this app
                        https://github.com/probonopd/linuxdeployqt
                        (i have not tried it yet)

                        To inform the loader on linux about the so files in the folder, you can use rpath.

                        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