Getting started with Linux: Solve the Problem of fixed Wireshark interface on Linux

Source: Internet
Author: User

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?

  1. (wireshark:3480):GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GObject'
  2. (wireshark:3480):GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion 'G_IS_OBJECT (object)' failed
  3. (wireshark:3480):GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GtkRange'
  4. (wireshark:3480):Gtk-CRITICAL **: gtk_range_get_adjustment: assertion 'GTK_IS_RANGE (range)' failed
  5. (wireshark:3480):GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GtkOrientable'
  6. (wireshark:3480):Gtk-CRITICAL **: gtk_orientable_get_orientation: assertion 'GTK_IS_ORIENTABLE (orientable)' failed
  7. (wireshark:3480):GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GtkScrollbar'
  8. (wireshark:3480):GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GtkWidget'
  9. (wireshark:3480):GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GObject'
  10. (wireshark:3480):GLib-GObject-CRITICAL **: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed
  11. (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.

  1. 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.

  1. $ sudovi/usr/share/applications/wireshark.desktop

Find the row starting with "Exec" and change it as follows.

  1. 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.

  1. $ 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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.