cannot run as root anymore: invalid cast from Gtklabel to GnomeCanvas

Bug #924885 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
etherape (Ubuntu)
New
Low
Unassigned

Bug Description

Since I upgraded to precise, I cannot use etherape as root anymore:

sudo etherape

libglade-WARNING **: Could not load support for `gnome': libgnome.so: cannot open shared object file: No such file or directory

libglade-WARNING **: Could not load support for `canvas': libcanvas.so: cannot open shared object file: No such file or directory

libglade-WARNING **: unknown widget class 'GnomeMessageBox'

libglade-WARNING **: unknown widget class 'GnomeCanvas'

Gtk-WARNING **: gtk_scrolled_window_add(): cannot add non scrollable widget use gtk_scrolled_window_add_with_viewport() instead

Gtk-CRITICAL **: IA__gtk_style_set_background: assertion `window != NULL' failed

GLib-GObject-WARNING **: invalid cast from `GtkLabel' to `GnomeCanvas'

GLib-GObject-WARNING **: invalid cast from `GtkLabel' to `GnomeCanvas'

GnomeCanvas-CRITICAL **: gnome_canvas_root: assertion `GNOME_IS_CANVAS (canvas)' failed

GnomeCanvas-CRITICAL **: gnome_canvas_item_new: assertion `GNOME_IS_CANVAS_GROUP (parent)' failed
**
ERROR:diagram.c:187:addref_canvas_obj: assertion failed: (obj)

Trying to use it as a regular user outputs:

etherape

libglade-WARNING **: Could not load support for `gnome': libgnome.so: cannot open shared object file: No such file or directory

libglade-WARNING **: Could not load support for `canvas': libcanvas.so: cannot open shared object file: No such file or directory

libglade-WARNING **: unknown widget class 'GnomeMessageBox'

libglade-WARNING **: unknown widget class 'GnomeCanvas'

Gtk-WARNING **: gtk_scrolled_window_add(): cannot add non scrollable widget use gtk_scrolled_window_add_with_viewport() instead

Gtk-CRITICAL **: IA__gtk_style_set_background: assertion `window != NULL' failed

with a dialog reminding me that I need to run as root ;-}

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: etherape 0.9.12-1
ProcVersionSignature: Ubuntu 3.2.0-12.21-generic 3.2.2
Uname: Linux 3.2.0-12-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Wed Feb 1 14:55:24 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64+mac (20110427.1)
SourcePackage: etherape
UpgradeStatus: Upgraded to precise on 2012-01-27 (5 days ago)

Revision history for this message
Vincent Ladeuil (vila) wrote :
Changed in etherape (Ubuntu):
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
Revision history for this message
Martin Pitt (pitti) wrote :

Unassigning Canonical desktop team. This is a universe package.

Changed in etherape (Ubuntu):
assignee: Canonical Desktop Team (canonical-desktop-team) → nobody
Revision history for this message
Sebastien Bacher (seb128) wrote :

try installing libgnomecanvas2-0 libgnome2-0 and see if that does a difference. seems from your output that it tries to load those libraries which are not installed by default nowadays, it should depends on them in it needs them to work correctly

Revision history for this message
Vincent Ladeuil (vila) wrote :

> try installing libgnomecanvas2-0 libgnome2-0

libgnome-2-0 (2.32.1-2ubuntu1) and libgnomecanvas2-0 (2.30.3-1ubuntu1) are (and were) both installed (and present in the Dependencies.txt above), so no difference

Anything I can do to help diagnosing, feel free to ask !

Changed in etherape (Ubuntu):
importance: Undecided → Low
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

I just tried this on my system and it appears to work fine.

Note that I don't believe running etherape as root is very safe -- since it attempts to parse network traffic (although very simply) it could be the target of malicious traffic; which makes the issues far worse when run by root.

Revision history for this message
Vincent Ladeuil (vila) wrote :

@Mathieu: Thanks for the heads-up, it now works for me too.

Running etherape as root is the only way I know to get *something* displayed, running as an ordinary user displays a dialog saying: "No capture device found or insuffiecient privileges...".

Given that I use etherape to get a feeling of what is going on, I'm not really concerned with malicious traffic though... May be I should...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.