Getting started with Linux: Solve the Problem of fixed Wireshark interface on Linux
Problem: When I tried to open a pre-recorded packet dump in Wireshark on Ubuntu, its interface suddenly crashed and the following error and warning appeared on the terminal where I ran Wireshark. How can I solve this problem?
(wireshark:3480):GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GObject'
(wireshark:3480):GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion 'G_IS_OBJECT (object)' failed
(wireshark:3480):GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GtkRange'
(wireshark:3480):Gtk-CRITICAL **: gtk_range_get_adjustment: assertion 'GTK_IS_RANGE (range)' failed
(wireshark:3480):GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GtkOrientable'
(wireshark:3480):Gtk-CRITICAL **: gtk_orientable_get_orientation: assertion 'GTK_IS_ORIENTABLE (orientable)' failed
(wireshark:3480):GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GtkScrollbar'
(wireshark:3480):GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GtkWidget'
(wireshark:3480):GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GObject'
(wireshark:3480):GLib-GObject-CRITICAL **: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed
(wireshark:3480):Gtk-CRITICAL **: gtk_widget_set_name: assertion 'GTK_IS_WIDGET (widget)' failed
Wireshark is a GUI-based data packet capture and sniffing tool. This tool is widely used by network administrators. Network Security engineers or developers are required to perform packet-level network analysis for various tasks, such as network faults, vulnerability tests, and application debugging, or reverse protocol engineering is required. Wireshark allows you to record data packets in real time and view their protocol headers and payload on a convenient graphical user interface.
This is the Wireshark UI, especially when running on Ubuntu Desktop, When you scroll up or down the group list view, or start loading a pre-recorded package dump file, sometimes it is suspended or frozen and the following error occurs.
Obviously, this error is caused by some incompatibility between Wireshark and the stacked scroll bar. It has not been resolved in the latest Ubuntu Desktop (for example, Ubuntu 15.04 desktop ).
One way to avoid Wireshark UI freezing is to temporarily disable the stacked scroll bar. There are two ways to disable the stacked scroll bar on Wireshark, depending on how you start Wireshark on the desktop.
Command Line Solution
You can set the "LIBOVERLAY_SCROLLBAR" environment variable to "0" to disable the stacked scroll bar.
Therefore, if you start Wireshark on a terminal using the command line, you can disable the stacked scroll bar in Wireshark, as shown below.
Open your. bashrc file and define the following alias.
alias wireshark="LIBOVERLAY_SCROLLBAR=0 /usr/bin/wireshark"
Desktop startup Solution
If you are using Wireshark started by the desktop starter, You can edit the desktop starter file.
$ sudovi/usr/share/applications/wireshark.desktop
Find the row starting with "Exec" and change it as follows.
Exec=env LIBOVERLAY_SCROLLBAR=0 wireshark %f
Although this solution can help all desktop users at the system level, it is useless to overwrite Wireshark after it is upgraded. If you want to keep the modified. desktop file, copy it to your home directory as follows.
$ cp/usr/share/applications/wireshark.desktop ~/.local/share/applications/
Install Wireshark in Ubuntu 13.10
Simple use of Wireshark
Install Wireshark in Ubuntu 12.04
Starting Wireshark packet capture from common users in Linux
Install and run Wireshark in Linux
Wireshark details: click here
Wireshark: click here
Via: http://ask.xmodulo.com/fix-wireshark-gui-freeze-linux-desktop.html
Author: Dan Nanni Translator: strugglingyouth Proofreader: wxy
This article was originally translated by LCTT and launched with the Linux honor in China
This article permanently updates the link address: