Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. qt.qpa.xcb: QXcbConnection: XCB error: on Raspberry Pi 3B

qt.qpa.xcb: QXcbConnection: XCB error: on Raspberry Pi 3B

Scheduled Pinned Locked Moved Unsolved Qt for Python
18 Posts 3 Posters 12.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.
  • hskoglundH Offline
    hskoglundH Offline
    hskoglund
    wrote on last edited by
    #9

    Hi, just tried your example on my Raspberry Pi 4 and it works fine (I get a small blank window with the title "Qt5 example").

    Don't know if it's relevant, but I'm still on Debian 10 (Buster) where the default distro Qt version is 5.11.3:

    henry@tungware1:~ $ lsb_release -a
    No LSB modules are available.
    Distributor ID:	Raspbian
    Description:	Raspbian GNU/Linux 10 (buster)
    Release:	10
    Codename:	buster
    henry@tungware1:~ $ sudo apt-get install qt5-default
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    qt5-default is already the newest version (5.11.3+dfsg1-1+rpi1+deb10u4).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    henry@tungware1:~ $ sudo apt-get install python3-pyqt5
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    python3-pyqt5 is already the newest version (5.11.3+dfsg-1+rpi1+b3).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    

    I connect to my Raspberry PU using an old Samsung 22" monitor with just one HDMI connector and 1920x1080 resolution.

    1 Reply Last reply
    1
    • C Offline
      C Offline
      California
      wrote on last edited by
      #10

      Well, you have an old release of Raspbian (10 Buster) and qt5 version 5.11.3 in my case Raspbian is the newest release 11 - Bullseye and qt5 version 5.15.2.

      1 Reply Last reply
      0
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #11

        Perhaps the video output differ, what monitor do you use and is it connected through HDMI?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          California
          wrote on last edited by
          #12

          I don't have any monitor connected to RPi, I am working over VNC ... and with buster OS and qt5-5.11.3 no warning messages were appeared...

          1 Reply Last reply
          0
          • hskoglundH Offline
            hskoglundH Offline
            hskoglund
            wrote on last edited by hskoglund
            #13

            I remember trying VNC but I could not get Youtube to work over it :-(
            Does Youtube work for you?

            1 Reply Last reply
            0
            • SGaistS SGaist

              Do you have the same issue if you just show a simple widget ?

              C Offline
              C Offline
              California
              wrote on last edited by
              #14

              @SGaist said in qt.qpa.xcb: QXcbConnection: XCB error: on Raspberry Pi 3B:

              Do you have the same issue if you just show a simple widget ?

              Any news about this topic?

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

                Can you give the full explanation of your work setup ?

                You started with issues related to Xorg but now you wrote that you are connecting to your Pi through VNC.

                How did you setup everything ?
                Is it the exact same setup as with Debian 10 ?

                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
                1
                • C Offline
                  C Offline
                  California
                  wrote on last edited by
                  #16

                  Thanks for your collaboration. I usualy did installation over ssh and everything worked ok until last update of raspbian. I did follow sugestions of yours and start fresh installation without enabled ssh and vnc. This time I got only one warning message shown below:

                  libEGL warning: DRI2: failed to authenticate
                  

                  Is this one solvable, couse everything else works ok now?
                  Thanks for help,

                  Vlado

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

                    This RaspberryPI Stack Exchange thread might help.

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

                      Update to topic: it seems that warning message below happends on RPi3B, but not on RPi3B+

                      qt.qpa.xcb: QXcbConnection: XCB error: 148 (Unknown), sequence: 191, resource id: 0, major code: 140 (Unknown), minor code: 20
                      

                      I just took SD card with my app from my hardware system where RPi3B is heart of it and I put it into my test RPi3B+ and I noticed no such a warning message appeared in terminal...so it's strange...

                      For warning message:

                      libEGL warning: DRI2: failed to authenticate
                      

                      I will do complete new SD software installation and result will be posted here...
                      Regards, Vlado

                      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