kded4 hangs when wlan, vpn or pptp network toggled

Bug #741200 reported by shoo_ash
70
This bug affects 14 people
Affects Status Importance Assigned to Milestone
plasma-widget-networkmanagement (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Frequently the kded4 hangs, consuming 50% cpu, when some network connections are disabled or reenabled. In this case plasma network manager applet also doesn't respond. Changed it to knetworkmanager - and wlan gets connected while system tray is frozen.

Seems like networkstatus kde module bug. No problems when kded4 started without this service (had to alter .desktop launcher)

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: kdelibs-bin 4:4.6.1-0ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-7.38-generic 2.6.38
Uname: Linux 2.6.38-7-generic i686
Architecture: i386
Date: Wed Mar 23 22:24:16 2011
ExecutablePath: /usr/bin/kdeinit4
InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110307)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: kde4libs
UpgradeStatus: No upgrade log present (probably fresh install)
XsessionErrors:
 (knotify4:1260): GStreamer-CRITICAL **: gst_debug_add_log_function: assertion `func != NULL' failed
 (thunderbird-bin:1443): GLib-CRITICAL **: g_hash_table_insert_internal: assertion `hash_table != NULL' failed

Revision history for this message
shoo_ash (ash-mail) wrote :
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

KDE's network manager has a kded plugin that's probably causing this issue.

affects: kde4libs (Ubuntu) → plasma-widget-networkmanagement (Ubuntu)
Revision history for this message
E.T. Anderson (firebringer11) wrote :

More precisely, the process consumes 100% of one CPU core. I've got 4, so it shows as 25% use.

I do not experience this problem with the wireless, but I do when I disconnect from a VPN connection.

Revision history for this message
David Matějček (dmatej) wrote :

The same when my mobile connection goes down. I use the 64bit Natty.

Revision history for this message
shoo_ash (ash-mail) wrote :

Internet-surfing gave me some results.
For me this bug doesn't reproduce if kded4 starts with networkstatus module (service) turned off. This idea was suggested here: https://bugs.kde.org/show_bug.cgi?id=220047#c28
But the module was loading always even when disabled in Service Manager or via qdbus. So to turn it off completely I had to edit /usr/share/kde4/services/kded/networkstatus.desktop
$ sudo nano /usr/share/kde4/services/kded/networkstatus.desktop

There I set autoload and load-on-demand options to false:

X-KDE-Kded-autoload=false
X-KDE-Kded-load-on-demand=false

Then - unloaded the module manually
$ qdbus org.kde.kded /kded unloadModule networkstatus
and restarted kded4
$ qdbus org.kde.kded /kded quit
$ kded4 &

Now I can trigger wlan connection without problems, but without networkstatus service.

Revision history for this message
shoo_ash (ash-mail) wrote :

Another 5 c.: to connect without networkstatus service use KNetworkManager. plasma-widget-networkmanagement depends strictly on networkstatus.

description: updated
summary: - kded4 hangs when wlan toggled
+ kded4 hangs when wlan, vpn or pptp network toggled
Revision history for this message
Jose Bernardo (bernardo-bandos) wrote :

You mean install KNetworkManager instead of plasma-widget-networkmanagement?

Revision history for this message
shoo_ash (ash-mail) wrote :

> You mean install KNetworkManager instead of plasma-widget-networkmanagement?
Yes, as they are incompatible (as package manager says).

To revert if the bug gets fixed just install plasma-widget-networkmanagement back (and don't forget to turn networkstatus service on).

Revision history for this message
Dimitri (dr-kart) wrote :

I use Kubuntu 11.04 x32.
3G USB modem Huawei E219. System hangs when I disconnect from internet. After that I can only get to console via CTRL-ALT-F1.

Revision history for this message
Francisco Gonzalez (gzmorell-gmail) wrote :

This can be reproduced easily.
This happens every time you try to disconnect from networ using a gsm connection.
It can also reproduced using a virtualbox machine with a "Host-only networking" after starting the virtual machine, a network is added if you try to disconnect from plasma-widget-networkmanagement kded4 goes to 100%.

Changed in plasma-widget-networkmanagement (Ubuntu):
status: New → Confirmed
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.