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. Wireshark "failed to get the current screen resources" using Xming/ssh
QtWS25 Last Chance

Wireshark "failed to get the current screen resources" using Xming/ssh

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 4 Posters 15.0k Views
  • 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.
  • B borkowsk
    9 May 2019, 12:03

    I have cloned the git repository of Wireshark on the Centos7 remote workstation and compiled almoust current version. However, I have to work remotely from Windows 10 using Xming/ssh and in this enviroment I'm not able to run this Qt based aplication (error messages are cited below).
    Other X application, including Qtcreator work fine.

    I was trying to debug this issue, but it seems to be inside Qt libraries. The QtApplication constructor print "failed to get the current screen resources", and, after quite a lot of code, application finished at this line:

    main_window->show()

    with message:
    The X11 connection broke: I/O error (code 1)
    XIO: fatal IO error 2 (No such file or directory) on X server "localhost:14.0" after 363 requests (363 known processed) with 0 events remaining.

    I'm not a Wireshark developer, but just trying to add my own ASN.1 based dissector, unfortunately, currently I'm not able to test anything.

    I tested also this:
    [centos7dev run]$ xrandr
    xrandr: Failed to get size of gamma for output default
    Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
    default connected 1920x1080+0+0 0mm x 0mm
    1920x1080 0.00
    *

    P Offline
    P Offline
    Pablo J. Rogina
    wrote on 9 May 2019, 12:27 last edited by
    #4

    @borkowsk I think of 3 things here, as you mentioned you need to develop under Windows:

    1. What about trying with another X server in Windows? i.e. VcXsrv
    2. What about using CentOS development environment from a virtual machine?
    3. What about building Wireshark directly on Windows?

    Upvote the answer(s) that helped you solve the issue
    Use "Topic Tools" button to mark your post as Solved
    Add screenshots via postimage.org
    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

    B 2 Replies Last reply 9 May 2019, 14:36
    3
    • B borkowsk
      9 May 2019, 12:24

      @jsulm - No. I just used ready to use CMakeLists.txt supplied with the code. But is'nt Qt creator a Qt application? It work fine.

      I think, that some error handling may be missing in Wireshark GUI code. Is it posible to check about what resources this message "failed to get..." talking? I saw similar with openGL application, but there is no openGL on the library list.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 9 May 2019, 12:29 last edited by
      #5

      @borkowsk said in Wireshark "failed to get the current screen resources" using Xming/ssh:

      But is'nt Qt creator a Qt application? It work fine.

      Yes, but you did not build it by yourself, right?

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

      B 1 Reply Last reply 10 May 2019, 08:12
      0
      • J jsulm
        9 May 2019, 12:06

        @borkowsk Did you try to build a simple Qt widgets app and run it in the same way?

        B Offline
        B Offline
        borkowsk
        wrote on 9 May 2019, 14:19 last edited by
        #6

        @jsulm - Qt creator have the same message but it work almust perfectly:

        $qtcreator
        failed to get the current screen resources
        QXcbConnection: XCB error: 170 (Unknown), sequence: 170, resource id: 90, major code: 146 (Unknown), minor code: 20
        WARNING: Application calling GLX 1.3 function "glXCreatePbuffer" when GLX 1.3 is not supported! This is an application bug!

        1 Reply Last reply
        0
        • P Pablo J. Rogina
          9 May 2019, 12:27

          @borkowsk I think of 3 things here, as you mentioned you need to develop under Windows:

          1. What about trying with another X server in Windows? i.e. VcXsrv
          2. What about using CentOS development environment from a virtual machine?
          3. What about building Wireshark directly on Windows?
          B Offline
          B Offline
          borkowsk
          wrote on 9 May 2019, 14:36 last edited by
          #7

          @Pablo-J.-Rogina - Off course these are other options.
          However, Ultimately I need Wireshark also on Centos and on Windows, but my developing enviroment is mostly on Centos7, and hopefully also remotely.

          Maybe I have to check VcXsrv. Is it real difference? Do you have own expierience about that?

          1 Reply Last reply
          0
          • J jsulm
            9 May 2019, 12:29

            @borkowsk said in Wireshark "failed to get the current screen resources" using Xming/ssh:

            But is'nt Qt creator a Qt application? It work fine.

            Yes, but you did not build it by yourself, right?

            B Offline
            B Offline
            borkowsk
            wrote on 10 May 2019, 08:12 last edited by
            #8

            @jsulm - Wireshark is a big project, I just compiled it from the sources.
            I don't think that they never try it on Qt , when they suply Qt sources for GUI :-)

            1 Reply Last reply
            0
            • P Pablo J. Rogina
              9 May 2019, 12:27

              @borkowsk I think of 3 things here, as you mentioned you need to develop under Windows:

              1. What about trying with another X server in Windows? i.e. VcXsrv
              2. What about using CentOS development environment from a virtual machine?
              3. What about building Wireshark directly on Windows?
              B Offline
              B Offline
              borkowsk
              wrote on 13 May 2019, 12:24 last edited by borkowsk
              #9

              @Pablo-J.-Rogina - (y)
              Yes, using VcXsrv it work!
              But I would suggest better diagnostic messages when QtApplication starting, and any workaround for Xming which is still the most popular MS Windows Xserwer!

              It looks like Qt programmers use a solution which work on Xming (most of "standard" applications work properly), but it is practice existing somewhere outside the code of Qt libraries, which is not known for other Qt libraries users.

              P 1 Reply Last reply 13 May 2019, 12:30
              0
              • B borkowsk
                13 May 2019, 12:24

                @Pablo-J.-Rogina - (y)
                Yes, using VcXsrv it work!
                But I would suggest better diagnostic messages when QtApplication starting, and any workaround for Xming which is still the most popular MS Windows Xserwer!

                It looks like Qt programmers use a solution which work on Xming (most of "standard" applications work properly), but it is practice existing somewhere outside the code of Qt libraries, which is not known for other Qt libraries users.

                P Offline
                P Offline
                Pablo J. Rogina
                wrote on 13 May 2019, 12:30 last edited by
                #10

                @borkowsk glad you have at least a workaround. Are you calling your issue solved? if so please don't forget to mark your post as such. Thanks.

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                B 1 Reply Last reply 15 May 2019, 16:13
                1
                • P Pablo J. Rogina
                  13 May 2019, 12:30

                  @borkowsk glad you have at least a workaround. Are you calling your issue solved? if so please don't forget to mark your post as such. Thanks.

                  B Offline
                  B Offline
                  borkowsk
                  wrote on 15 May 2019, 16:13 last edited by
                  #11

                  @Pablo-J.-Rogina - I'm not sure the workaround means this is "solved" :-)
                  Especially, if this required change of such basic application as Xserwer!

                  For me solution should be at least a piece of code able to test and solve such situation in MyApp (derived from QtApplication) class constructor.

                  It is possible because other Qt applications work well on Xming.

                  F 1 Reply Last reply 15 May 2019, 17:27
                  0
                  • B borkowsk
                    15 May 2019, 16:13

                    @Pablo-J.-Rogina - I'm not sure the workaround means this is "solved" :-)
                    Especially, if this required change of such basic application as Xserwer!

                    For me solution should be at least a piece of code able to test and solve such situation in MyApp (derived from QtApplication) class constructor.

                    It is possible because other Qt applications work well on Xming.

                    F Offline
                    F Offline
                    fcarney
                    wrote on 15 May 2019, 17:27 last edited by
                    #12

                    @borkowsk
                    Xming was last updated on sourceforge in 2007. VcXsrv was last updated on sourceforge november 2018. Xming probably needs to be updated for newer X server standards.

                    C++ is a perfectly valid school of magic.

                    B 1 Reply Last reply 16 May 2019, 11:28
                    1
                    • F fcarney
                      15 May 2019, 17:27

                      @borkowsk
                      Xming was last updated on sourceforge in 2007. VcXsrv was last updated on sourceforge november 2018. Xming probably needs to be updated for newer X server standards.

                      B Offline
                      B Offline
                      borkowsk
                      wrote on 16 May 2019, 11:28 last edited by
                      #13

                      @fcarney - OK, but Xming is still used in many places...
                      And it work with most of Qt applications, so it is doable to workaround its oldfashioned/nonstandard behavior.

                      1 Reply Last reply
                      0

                      13/13

                      16 May 2019, 11:28

                      • Login

                      • Login or register to search.
                      13 out of 13
                      • First post
                        13/13
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved