ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Gtk-Critical messages when dumpcap has insufficient privileg

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Wed, 20 Jul 2011 20:41:22 +0200
On Wed, Jul 20, 2011 at 07:39:32PM +0200, Joerg Mayer wrote:
> I am seeing Gtk-CRITICAL messages, but only if dumpcap has insufficient
> privileges to capture/list interfaces (see below). I hope that this is
> not a side effect of my changes :-/ How can one go to locate the source
> of such a problem (in this case it's hopefully somewhere where the
> interfacelist should be displayed)?

> jmayer@egg:~/work/wireshark/svn> wireshark 
> 
> (wireshark:5643): Gtk-CRITICAL **: IA__gtk_tree_view_get_model: assertion `GTK_IS_TREE_VIEW (tree_view)' failed
> 
> (wireshark:5643): Gtk-CRITICAL **: IA__gtk_tree_view_get_selection: assertion `GTK_IS_TREE_VIEW (tree_view)' failed
> 
> (wireshark:5643): Gtk-CRITICAL **: IA__gtk_tree_model_foreach: assertion `GTK_IS_TREE_MODEL (model)' failed
> 
> (wireshark:5643): Gtk-CRITICAL **: IA__gtk_widget_grab_focus: assertion `GTK_IS_WIDGET (widget)' failed

I located it to happen inside main_welcome.c, function select_ifaces(),
where the value of  global_capture_opts.ifaces->len is 1 (and where the
code seems to assume that it should be 0 if there a no interfaces.

Ciao
 Joerg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.