[Pkg-utopia-maintainers] Bug#777387: Bug#777387: nm-applet:ERROR:applet-device-broadband.c:634:get_icon: assertion failed: (info)

Steve McIntyre steve at einval.com
Tue Jan 5 03:02:51 UTC 2016


On Thu, Oct 29, 2015 at 11:27:49AM +0100, Morten Shearman Kirkegaard wrote:
>On Wed, Oct 28, 2015 at 06:55:11PM +0100, Michael Biebl wrote:
>> Having a tested patch would certainly speed things up.
>
>Attached.

I've been seeing this error a lot after installing a new Jessie
machine for my mother. She uses a USB 3G modem, and it used to work
very well in Wheezy. Since switching over to the new Jessie machine,
nm-applet keeps on aborting shortly after the USB 3G modem is plugged
in.

With this patch applied locally, things now work and the modem is
usable. Please apply the fix, and a stable upload would be lovely too.

>diff -urN _network-manager-applet-0.9.10.0/src/applet-device-broadband.c network-manager-applet-0.9.10.0/src/appl
>et-device-broadband.c
>--- _network-manager-applet-0.9.10.0/src/applet-device-broadband.c      2014-07-04 02:33:31.000000000 +0200
>+++ network-manager-applet-0.9.10.0/src/applet-device-broadband.c       2015-10-29 11:02:06.358075197 +0100
>@@ -625,14 +625,13 @@
> {
>        BroadbandDeviceInfo *info;
>
>-       if (!applet->mm1) {
>+       info = g_object_get_data (G_OBJECT (device), "devinfo");
>+
>+       if (!applet->mm1 || !info) {
>                g_warning ("ModemManager is not available for modem at %s", nm_device_get_udi (device));
>                return NULL;
>        }
>
>-       info = g_object_get_data (G_OBJECT (device), "devinfo");
>-       g_assert (info);
>-
>        return mobile_helper_get_icon (device,
>                                       state,
>                                       connection,

-- 
Steve McIntyre, Cambridge, UK.                                steve at einval.com
You lock the door
And throw away the key
There's someone in my head but it's not me 



More information about the Pkg-utopia-maintainers mailing list