First time here? Check out the FAQ!

Ask Your Question
0

Why new wireshark GUI compiled from git does not connect to Xserver?

asked Apr 18 '19

wborkowsk gravatar image

updated May 15 '19

I have clone the git repository of wireshark on the Centos7 remote workstation and compile current version, but I'm not able to run wireshark application because:

$ ./wireshark

failed to get the current screen resources

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

I use Xming via PUTTY for connection from MS Windows to Centos7 workstation. Other X application, including Qtcreator work fine on this configuration.

Repository: https://code.wireshark.org/review/wir...

Preview: (hide)

Comments

People had similar problems , but only solution I found in Internet was to install wireshark-gtk :-)

wborkowsk gravatar imagewborkowsk ( Apr 18 '19 )

This may be similar to this, also unsolved issue: https://bugs.wireshark.org/bugzilla/s...

wborkowsk gravatar imagewborkowsk ( Apr 18 '19 )

At work we had similar problem some one suggested https://sourceforge.net/projects/vcxsrv/

Anders gravatar imageAnders ( Apr 18 '19 )

Thank you Anders. I have to ask administrator to install anything on my Windows, so it take some time to test, but I will leave info after checking this.

wborkowsk gravatar imagewborkowsk ( Apr 18 '19 )

Can't you use tshark on the remote system to make the capture or capture over ssh, rather than trying to run the GUI over ssh?

grahamb gravatar imagegrahamb ( Apr 18 '19 )

I have to add few additional dissectors, but remote work on Centos is my regular configuration.

wborkowsk gravatar imagewborkowsk ( Apr 24 '19 )

Now I have my dissector compiled & linked into wireshark and I'm not able to test it :-(

wborkowsk gravatar imagewborkowsk ( Apr 24 '19 )

Now im able do this using VcXsrv instead of Xming. But...

wborkowsk gravatar imagewborkowsk ( May 15 '19 )

1 Answer

Sort by » oldest newest most voted
0

answered May 14 '19

Guy Harris gravatar image

So you're logged into a remote machine running Centos 7, from a machine running an X server, and, on the command line on the remote machine, you run ./wireshark?

If so, then you need to make sure that the DISPLAY environment variable is set to refer to the machine with the X server; the message

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

means that it's trying to connect to "localhost" - i.e., it's trying to connect to an X server running on the remote machine.

But still I suggest better diagnostic when GUI starting

Please send your suggestion to the developers of the X11 client library - we don't print that message, the X11 client library does. Wireshark calls Qt routines to display the GUI, and versions of Qt that use X11 as the window system call the X11 client library to do display operations.

Preview: (hide)
link

Comments

This is ssh connection made by PUTTY, so DISPLAY is set automatically, as "localhost:n.m". All other applications work properly with that.

wborkowsk gravatar imagewborkowsk ( May 15 '19 )

"failed to get the current screen resources" is a warning not from Xlib but from Qt lib, and it appears also for QtCreator and some other Qt applications. But those applications work with Xming, when Wireshark not.

wborkowsk gravatar imagewborkowsk ( May 15 '19 )

All applications work on different Xserwer for Windows: VcXsrv But Xming is still much more popular.

wborkowsk gravatar imagewborkowsk ( May 15 '19 )

I have made the thread on Qt forum, (https://forum.qt.io/topic/102617/wire...) but this issue is "in betwen" of Qt library calls - QtApplication construction (it print this "failed to get the current screen resources" messages) and main_window->show() which stop Wireshark with message from Xlib.

wborkowsk gravatar imagewborkowsk ( May 15 '19 )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: Apr 18 '19

Seen: 5,533 times

Last updated: May 15 '19