After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 678210 - control-center network module crashes with NetworkManager controlled VLAN
control-center network module crashes with NetworkManager controlled VLAN
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Network
git master
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-06-16 12:18 UTC by D.S. (Spider) Ljungmark
Modified: 2012-08-22 14:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-control-center showing the "(null)" entry (32.39 KB, image/png)
2012-06-16 12:18 UTC, D.S. (Spider) Ljungmark
  Details
network: ignore unrecognized device types (1.64 KB, patch)
2012-08-22 13:24 UTC, Dan Winship
committed Details | Review

Description D.S. (Spider) Ljungmark 2012-06-16 12:18:13 UTC
Created attachment 216565 [details]
gnome-control-center showing the "(null)" entry

Both tests on Fedora 17
fails both with jhbuild trunk (3.5/3.6) and on 3.4 release from Fedora 17.

Steps to reproduce:
   Set up VLANs using NetworkManager.
( If you don't know how to do this, consult : http://www.skuggor.se/habari/fedora-17-networkmanager-and-vlan for example setup )

What goes wrong:
  gnome control center "network" component shows a "(null)" network. 
  It crashes when you attempt to select this "(null)" network.


Gdb backtrace : 
  (gdb) run network
Starting program: /opt/gnome/bin/gnome-control-center network
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Gtk-Message: Failed to load module "canberra-gtk-module"
[New Thread 0x7fffec3ed700 (LWP 11457)]
[New Thread 0x7fffebbec700 (LWP 11458)]
[New Thread 0x7fffeb3eb700 (LWP 11459)]
[New Thread 0x7fffeabea700 (LWP 11460)]
[New Thread 0x7fffea3e9700 (LWP 11461)]
[New Thread 0x7fffe9be8700 (LWP 11462)]
[New Thread 0x7fffe93e7700 (LWP 11463)]
[New Thread 0x7fffe8be6700 (LWP 11464)]
Detaching after fork from child process 11465.
Detaching after fork from child process 11466.
[New Thread 0x7fffd3394700 (LWP 11467)]

(gnome-control-center:11454): Gtk-WARNING **: Overriding tab label for notebook

(gnome-control-center:11454): Gtk-WARNING **: Overriding tab label for notebook

(gnome-control-center:11454): Gtk-WARNING **: Overriding tab label for notebook
[New Thread 0x7fffd293e700 (LWP 11468)]

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 2

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 3

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 4

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 5

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 6

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 7

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 8

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 9

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 10

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 11

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 12

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 13

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 14

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 15

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 16

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 17

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 18

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 19

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 20

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 21

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 22

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 23

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 24

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 25

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 26

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 27

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 28

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 29

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 30

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 31

(gnome-control-center:11454): Clutter-WARNING **: No listener with the specified listener id 32

(gnome-control-center:11454): GLib-CRITICAL **: g_hash_table_remove_internal: assertion `hash_table != NULL' failed

(gnome-control-center:11454): Clutter-WARNING **: Not able to remove listener with id 1

(gnome-control-center:11454): GLib-CRITICAL **: g_hash_table_size: assertion `hash_table != NULL' failed
**
network-cc-panel:ERROR:cc-network-panel.c:1984:nm_device_refresh_device_ui: code should not be reached

Program received signal SIGABRT, Aborted.
0x0000003928a35965 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install cairo-1.10.2-7.fc17.x86_64 cairo-gobject-1.10.2-7.fc17.x86_64 cracklib-2.8.18-3.fc17.x86_64 cups-libs-1.5.3-2.fc17.x86_64 dbus-libs-1.4.10-4.fc17.x86_64 enchant-1.6.0-4.fc17.x86_64 flac-1.2.1-9.fc17.x86_64 freetype-2.4.8-3.fc17.x86_64 glibc-2.15-37.fc17.x86_64 gsm-1.0.13-6.fc17.x86_64 json-c-0.9-4.fc17.x86_64 keyutils-libs-1.5.5-2.fc17.x86_64 krb5-libs-1.10.2-2.fc17.x86_64 lcms2-2.3-2.fc17.x86_64 libICE-1.0.8-1.fc17.x86_64 libSM-1.2.1-1.fc17.x86_64 libX11-1.5.0-2.fc17.x86_64 libXau-1.0.6-3.fc17.x86_64 libXcomposite-0.4.3-3.fc17.x86_64 libXcursor-1.1.13-1.fc17.x86_64 libXdamage-1.1.3-3.fc17.x86_64 libXext-1.3.1-1.fc17.x86_64 libXfixes-5.0-2.fc17.x86_64 libXi-1.6.1-1.fc17.x86_64 libXinerama-1.1.2-1.fc17.x86_64 libXrandr-1.3.1-3.fc17.x86_64 libXrender-0.9.7-1.fc17.x86_64 libXt-1.1.2-2.fc17.x86_64 libXtst-1.2.0-3.fc17.x86_64 libXxf86vm-1.1.2-1.fc17.x86_64 libasyncns-0.8-3.fc17.x86_64 libcanberra-0.28-6.fc17.x86_64 libcanberra-gtk3-0.28-6.fc17.x86_64 libcom_err-1.42.3-2.fc17.x86_64 libcroco-0.6.5-1.fc17.x86_64 libdrm-2.4.33-3.fc17.x86_64 libffi-3.0.10-2.fc17.x86_64 libgcc-4.7.0-5.fc17.x86_64 libgudev1-182-3.fc17.x86_64 libicu-4.8.1.1-2.fc17.x86_64 libjpeg-turbo-1.2.0-1.fc17.x86_64 libmodman-2.0.1-4.fc17.x86_64 libogg-1.3.0-1.fc17.x86_64 libpng-1.5.10-1.fc17.x86_64 libproxy-0.4.7-4.fc17.x86_64 libselinux-2.1.10-3.fc17.x86_64 libsndfile-1.0.25-2.fc17.x86_64 libstdc++-4.7.0-5.fc17.x86_64 libtasn1-2.12-1.fc17.x86_64 libtdb-1.2.9-14.fc17.x86_64 libudev-182-3.fc17.x86_64 libuuid-2.21.2-1.fc17.x86_64 libvorbis-1.3.3-1.fc17.x86_64 libxcb-1.8.1-1.fc17.x86_64 libxkbfile-1.0.8-1.fc17.x86_64 llvm-libs-3.0-13.fc17.x86_64 mesa-dri-drivers-8.0.3-1.fc17.x86_64 mesa-libGL-8.0.3-1.fc17.x86_64 mesa-libglapi-8.0.3-1.fc17.x86_64 nss-softokn-freebl-3.13.4-2.fc17.x86_64 pixman-0.24.4-2.fc17.x86_64 pulseaudio-libs-1.1-9.fc17.x86_64 pulseaudio-libs-glib2-1.1-9.fc17.x86_64 sqlite-3.7.11-3.fc17.x86_64 startup-notification-0.12-3.fc17.x86_64 systemd-44-14.fc17.x86_64 tcp_wrappers-libs-7.6-69.fc17.x86_64 xcb-util-0.3.8-2.fc17.x86_64 zlib-1.2.5-6.fc17.x86_64
(gdb) bt full
  • #0 raise
    from /lib64/libc.so.6
  • #1 abort
    from /lib64/libc.so.6
  • #2 g_assertion_message
    at gtestutils.c line 1861
  • #3 nm_device_refresh_device_ui
    at cc-network-panel.c line 1984
  • #4 refresh_ui_idle
    at cc-network-panel.c line 2277
  • #5 g_main_dispatch
    at gmain.c line 2539
  • #6 g_main_context_dispatch
    at gmain.c line 3075
  • #7 g_main_context_iterate
    at gmain.c line 3146
  • #8 g_main_context_iteration
    at gmain.c line 3207
  • #9 g_application_run
    at gapplication.c line 1607
  • #10 main
    at control-center.c line 256

Comment 1 Dan Winship 2012-08-22 13:24:50 UTC
Created attachment 222145 [details] [review]
network: ignore unrecognized device types

rather than showing a blank line in the device-type list that doesn't
do anything.
Comment 2 Dan Winship 2012-08-22 13:26:33 UTC
There seems to be some code in control-center master for dealing with other device types, but it doesn't actually work...

Note that for testing purposes, you don't actually need weird hardware/network config to create weird NM connections; with network-manager-applet master, you can create, eg, an InfiniBand connection even if you don't have any InfiniBand devices.
Comment 3 Richard Hughes 2012-08-22 14:18:36 UTC
Patch looks fine, thanks. I'll try out the network-manager-applet trick to get other device types.
Comment 4 Dan Winship 2012-08-22 14:33:09 UTC
Attachment 222145 [details] pushed as ecdb1d8 - network: ignore unrecognized device types