Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65571

get_crct_info ends in error with mobaxterm

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 5.9.1
    • QPA: X11/XCB
    • None
    • Qt has been installed on a CentOS 7 linux machine to which I connect with `ssh -Y` from mobaXterm.

       

      xrandr returns

       Screen 0: minimum 0 x 0, current 1280 x 1024, maximum 4096 x 4096

    Description

      (sorry I hit ENTER by mistake)

      When I run any Qt application, with Qt configured with `-opensource -xcb`, I systematically see warnings such as

      QXcbConnection: XCB error: 145 (Unknown), sequence: 171, resource id: 0, major code: 139 (Unknown), minor code: 20

       

      After investigation I've found out the culprit with xtrace:

      000:<:00a2: 12: RANDR-Request(139,0): QueryVersion major-version=1 minor-version=3
       000:>:00a2:32: Reply to QueryVersion: major-version=1 minor-version=3
       000:<:00a3: 12: RANDR-Request(139,4): SelectInput window=0x000000e1 enable=ScreenChangeNotifyMask,OutputChangeNotifyMask,OutputPropertyNotifyMask
       000:<:00a4: 12: XFIXES-Request(137,0): QueryVersion major version=4 minor version=0
       000:>:00a4:32: Reply to QueryVersion: major version=4 minor version=0
       000:<:00a5: 24: Request(16): InternAtom only-if-exists=false(0x00) name='_NET_WM_CM_S0'
       000:>:00a5:32: Reply to InternAtom: atom=0x13f("_NET_WM_CM_S0")
       000:<:00a6:  8: Request(23): GetSelectionOwner atom=0x13f("_NET_WM_CM_S0")
       000:>:00a6:32: Reply to GetSelectionOwner: owner=None(0x00000000)
       000:<:00a7: 24: Request(20): GetProperty delete=false(0x00) window=0x000000e1 property=0x11a("_NET_WORKAREA") type=0x6("CARDINAL") long-offset=0x00000000 long-length=0x00000400
       {{000:>:00a7:32: Reply to GetProperty: type=None(0x0) bytes-after=0x00000000 }}
       000:<:00a8:  8: RANDR-Request(139,25): GetScreenResourcesCurrent window=0x000000e1
       000:>:00a8:32: Reply to GetScreenResourcesCurrent: timestamp=0x680132f6 config-timestamp=0x68018de8 crtcs=; outputs=; modeinfos=; mode names=''
       000:<:00a9:  8: RANDR-Request(139,8): GetScreenResources window=0x000000e1
       000:>:00a9:32: Reply to GetScreenResources: timestamp=0x680132f6 config-timestamp=0x68018de8 crtcs=; outputs=; modeinfos=; mode names=''
       000:<:00aa: 12: RANDR-Request(139,4): SelectInput window=0x000000e1 enable=ScreenChangeNotifyMask
       000:<:00ab: 12: RANDR-Request(139,20): GetCrtcInfo crtc=0x00000000 config-timestamp=0x00000000
       000:>:00ab:Error 145=BadCrtc: major=139, minor=20, bad=0

       

      After further investigations, it seems to come from QXcbScreen constructor where xcb_randr_get_crtc_info_unchecked() is called. This results in an error that is then reported by the ErrorHandler.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            liaqi Liang Qi
            luchermitte Luc Hermitte
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes