indicator-weather segfaults

Bug #779483 reported by Ivan Giuliani
268
This bug affects 58 people
Affects Status Importance Assigned to Milestone
DBus Menu
Confirmed
Medium
Unassigned
Weather Indicator
Fix Released
High
Unassigned

Bug Description

Every two-three hours the indicator crashes with the following output:

(indicator-weather:3482): LIBDBUSMENU-GLIB-CRITICAL **: dbusmenu_defaults_default_get: assertion `DBUSMENU_IS_DEFAULTS(defaults)' failed

(indicator-weather:3482): LIBDBUSMENU-GLIB-CRITICAL **: dbusmenu_menuitem_get_children: assertion `DBUSMENU_IS_MENUITEM(mi)' failed
Segmentation fault

Revision history for this message
Exquisite Dead Guy (ben-forlent) wrote :

I think this is the same bug I'm getting, my weather-indicator won't stay running for more than a few hours at a time, greping syslog shows:

indicator-weath[1756] general protection ip:7fb9275c488d sp:7fffa73a3f60 error:0 in libc-2.13.so[7fb927548000+18a000]
indicator-weath[1752]: segfault at 3fce ip 00007f1c33e4e540 sp 00007fff97a4ddb0 error 4 in libgobject-2.0.so.0.2800.6[7f1c33e1b000+4e000]

Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Could you please attach the logs from ~/.cache/indicator-weather.log and specify version of weather indicator?

Changed in weather-indicator:
status: New → Incomplete
Revision history for this message
Ivan Giuliani (giuliani.v) wrote :
Revision history for this message
Ivan Giuliani (giuliani.v) wrote :

I attached the indicator-weather.log of the last crash though apparently there's no hint on why it crashed.
Also, I noticed these two lines in dmesg which looks like are somehow related to the crash:

[15353.305087] do_general_protection: 12 callbacks suppressed
[15353.305092] indicator-weath[1688] general protection ip:7f41633ce88d sp:7fffb9fd5490 error:0 in libc-2.13.so[7f4163352000+18a000]

The version crashing is: Weather Indicator 11.04.10 'Cloudy' (11.04.10+repack-0ubuntu2).
If it can help, I have a 64bit system.

Changed in weather-indicator:
status: Incomplete → Confirmed
importance: Undecided → High
Revision history for this message
Panagiotis Skintzos (ph7) wrote :

I confirm this, it happens on my pc too.
It happens randomly when the icon only is shown on the panel.
As a workaround, until it is fixed, chose from the preferences to show the temperature near the indicator icon.
Most probably it is a dbusmenu issue (I think that it happens while recalculating the indicator label size).
The last entry in the log is always a label update. The bad thing is that it happens only randomly.

Revision history for this message
Ivan Giuliani (giuliani.v) wrote :

I already have the temperature showing near the indicator but the bug it's still occurring (or maybe we're talking about two different bugs here).

Changed in weather-indicator:
milestone: none → backlog
Revision history for this message
Kayvee (vkkodali) wrote :

I think I too have the same issue. I am not sure though. Here is what I got when I started indicator-weather from terminal:

/usr/bin/indicator-weather:1825: Warning: invalid uninstantiatable type `-g-type-private--dependants-array' in cast to `DbusmenuMenuitem'
  gtk.main()
(indicator-weather:22839): LIBDBUSMENU-GLIB-CRITICAL **: dbusmenu_menuitem_build_variant: assertion `DBUSMENU_IS_MENUITEM(mi)' failed
/usr/bin/indicator-weather:1825: Warning: g_variant_new_variant: assertion `value != NULL' failed
  gtk.main()
/usr/bin/indicator-weather:1825: Warning: g_variant_get_type: assertion `value != NULL' failed
  gtk.main()
/usr/bin/indicator-weather:1825: Warning: g_variant_type_is_subtype_of: assertion `g_variant_type_check (type)' failed
  gtk.main()
/usr/bin/indicator-weather:1825: Warning: g_variant_builder_add_value: assertion `!GVSB(builder)->expected_type || g_variant_is_of_type (value, GVSB(builder)->expected_type)' failed
  gtk.main()
Segmentation fault

Revision history for this message
Pasi Tarhonen (pasi-tarhonen) wrote :

I got this message today:

indicator-weath[1787]: segfault at 47 ip b5ea1be9 sp bf8394f0 error 4 in libdbusmenu-glib.so.3.0.14[b5e9a000+15000]

I guess this is related to the same bug reported in this thread. In this time application crashed just after return from sleep state.

System:
- Acer AOD250, Ubuntu 11.04 with 3.0.0 rc6 kernel
- Linux atomi 3.0.0-0300rc6-generic #201107050905 SMP Tue Jul 5 09:53:33 UTC 2011 i686 i686 i386 GNU/Linux
- all repositories active (incl. updates & proposed), fully updated

Revision history for this message
NoOp (glgxg) wrote :
Download full text (4.0 KiB)

Getting segfaults on boot/startup. Indicator runs for approx 1 second & then segfaults:

From /var/log/messages:
Sep 1 07:24:13 gg nautilus: [N-A] Nautilus-Actions Tracker 2.30.2 initializing...
Sep 1 07:24:13 gg kernel: [ 57.971189] show_signal_msg: 54 callbacks suppressed
Sep 1 07:24:13 gg kernel: [ 57.971198] indicator-weath[2038]: segfault at 1 ip 05902f4b sp bf9145d0 error 4 in libgtk-x11-2.0.so.0.2200.0[580e000+3c8000]

$ file /usr/lib/libgtk-x11-2.0.so.0.2200.0
/usr/lib/libgtk-x11-2.0.so.0.2200.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped

From indicator log:
[MainThread] 2011-09-01 07:24:12,427 - INFO - ------------------------------
[MainThread] 2011-09-01 07:24:12,439 - INFO - Started Weather Indicator from /usr
[MainThread] 2011-09-01 07:24:12,448 - INFO - Weather Indicator version 11.05.31 'Cloudy 8'
[MainThread] 2011-09-01 07:24:12,449 - DEBUG - SingleInstance: writing new pid 2038
[MainThread] 2011-09-01 07:24:12,621 - DEBUG - ProxyMonitor: loading gconf settings
[MainThread] 2011-09-01 07:24:12,621 - DEBUG - ProxyMonitor: using direct connection
[MainThread] 2011-09-01 07:24:12,622 - DEBUG - TimeFormatter: indicator-datetime settings not found
[MainThread] 2011-09-01 07:24:12,625 - DEBUG - Indicator: creating
[MainThread] 2011-09-01 07:24:12,730 - INFO - Monitoring UPower interface
[MainThread] 2011-09-01 07:24:12,730 - DEBUG - Indicator: reading settings
[MainThread] 2011-09-01 07:24:12,731 - DEBUG - Settings: preparing settings store
[MainThread] 2011-09-01 07:24:12,769 - DEBUG - Settings: getting value for refresh_rate
[MainThread] 2011-09-01 07:24:12,770 - DEBUG - Settings: getting value for unit
[MainThread] 2011-09-01 07:24:12,770 - DEBUG - Settings: getting value for notif
[MainThread] 2011-09-01 07:24:12,773 - DEBUG - Settings: getting value for wind
[MainThread] 2011-09-01 07:24:12,774 - DEBUG - Settings: getting value for data_source
[MainThread] 2011-09-01 07:24:12,774 - DEBUG - Settings: getting value for placechosen
[MainThread] 2011-09-01 07:24:12,774 - DEBUG - Settings: getting value for places
[MainThread] 2011-09-01 07:24:12,775 - DEBUG - Settings: getting value for show_label
[MainThread] 2011-09-01 07:24:12,775 - DEBUG - Preferences: got settings: rate=15, unit=I, notif=N, wind=knots, placechosen=0, places=[['2451745', 'Milpitas']]
[MainThread] 2011-09-01 07:24:12,776 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[MainThread] 2011-09-01 07:24:12,958 - DEBUG - Indicator: update_label: setting label to ' '
[MainThread] 2011-09-01 07:24:12,958 - DEBUG - Indicator: updateWeather: updating weather for ['2451745', 'Milpitas']
[Cache] 2011-09-01 07:24:12,995 - DEBUG - Settings: getting cached weather for 2451745
[Cache] 2011-09-01 07:24:12,996 - DEBUG - Indicator: loading weather from cache for ['2451745', 'Milpitas']
[Cache] 2011-09-01 07:24:12,997 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Fetcher] 2011-09-01 07:24:13,119 - DEBUG - Indicator: getWeather for location 'Milpitas, California, United States'
[Fetcher] 2011-09-01 07:24:13,120 - DEBUG - Indicator: getWeather: updating weather report
[Fetcher] 2011-09-...

Read more...

Revision history for this message
NoOp (glgxg) wrote : Re: [Bug 779483] Re: indicator-weather segfaults

On 09/01/2011 12:10 PM, NoOp wrote:
> Getting segfaults on boot/startup. Indicator runs for approx 1 second &
> then segfaults:
>
>>From /var/log/messages:
> Sep 1 07:24:13 gg nautilus: [N-A] Nautilus-Actions Tracker 2.30.2 initializing...
> Sep 1 07:24:13 gg kernel: [ 57.971189] show_signal_msg: 54 callbacks suppressed
> Sep 1 07:24:13 gg kernel: [ 57.971198] indicator-weath[2038]: segfault at 1 ip 05902f4b sp bf9145d0 error 4 in libgtk-x11-2.0.so.0.2200.0[580e000+3c8000]
>
> $ file /usr/lib/libgtk-x11-2.0.so.0.2200.0
> /usr/lib/libgtk-x11-2.0.so.0.2200.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
>

Note: just had to reboot to due to a kernel update. Upon reboot:

Sep 1 12:38:16 gg nautilus: [N-A] Nautilus-Actions Menu Extender 2.30.2
initializing...
Sep 1 12:38:17 gg nautilus: [N-A] Nautilus-Actions Tracker 2.30.2
initializing...
Sep 1 12:38:18 gg kernel: [ 100.009080] show_signal_msg: 54 callbacks
suppressed
Sep 1 12:38:18 gg kernel: [ 100.009088] indicator-weath[1929]:
segfault at 1 ip 06a75f4b sp bfea8ef0 error 4 in
libgtk-x11-2.0.so.0.2200.0[6981000+3c8000]

Revision history for this message
Ilya G. Ryabinkin (ileyka) wrote :

Still have segfaults once/twice a day without apparent regularity.

Revision history for this message
Ted Gould (ted) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a backtrace following the instructions at http://wiki.ubuntu.com/DebuggingProgramCrash and upload the backtrace (as an attachment) to the bug report. This will greatly help us in tracking down your problem.

Changed in dbusmenu:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
NoOp (glgxg) wrote :

@Ted Gould: it's pretty hard to run a backtrace on a startup application. Can you advise on how I do that?

Revision history for this message
NoOp (glgxg) wrote :

Plus:
$ sudo apt-get install indicator-weather-dbgsym=11.05.31~maverick6
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package indicator-weather-dbgsym

So can you tell us exactly how to: 1) get the dbg symbols, and 2) how to run a backtrace on indicator-weather?
Added question: why is this listed as 'https://bugs.launchpad.net/weather-indicator/' when the actual application is 'indicator-weather'?
https://launchpad.net/weather-indicator
[Indicator-Weather]

$ apt-cache policy indicator-weather
indicator-weather:
  Installed: 11.05.31~maverick6
  Candidate: 11.05.31~maverick6
  Version table:
 *** 11.05.31~maverick6 0
        500 http://ppa.launchpad.net/weather-indicator-team/ppa/ubuntu/ maverick/main i386 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Luke Hoersten (lukehoersten) wrote :
Download full text (4.9 KiB)

[Fetcher] 2011-11-15 15:46:03,949 - DEBUG - Indicator: menu_normal: filling in a menu for found places
[Fetcher] 2011-11-15 15:46:03,953 - DEBUG - Indicator: update_label: setting label to ' '
[Fetcher] 2011-11-15 15:46:03,954 - DEBUG - Indicator: setting refresh label to 'Refresh (just now)'
[Fetcher] 2011-11-15 15:46:03,955 - DEBUG - Indicator: scheduling refresh label update in 1 min
[Fetcher] 2011-11-15 15:46:03,958 - DEBUG - Weather: day, show 'weather-few-clouds' icon
[Fetcher] 2011-11-15 15:46:03,959 - DEBUG - Settings: setting '2379574'='{'humidity': u'Humidity: 44%', 'sunrise': 'Sunrise: 06:41:15 AM', 'sunset': 'Sunset: 04:28:11 PM', 'wind': 'Wind: SW , 16 mph', 'humidex': None, 'icon': 'weather-few-clouds', 'temper': u'Temperature: 62 \u02daF', 'condition': 'Partly cloudy', 'label': '62 \xcb\x9aF'}'
[Fetcher] 2011-11-15 15:46:03,960 - DEBUG - Indicator: update_label: setting label to '62 ˚F'
[Fetcher] 2011-11-15 15:46:03,960 - DEBUG - Indicator: scheduling update in 15 mins
[MainThread] 2011-11-15 15:47:04,007 - DEBUG - Indicator: setting refresh label to 'Refresh (1 min. ago)'
[MainThread] 2011-11-15 15:47:04,007 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-11-15 15:48:04,046 - DEBUG - Indicator: setting refresh label to 'Refresh (2 min. ago)'
[MainThread] 2011-11-15 15:48:04,046 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-11-15 15:49:04,055 - DEBUG - Indicator: setting refresh label to 'Refresh (3 min. ago)'
[MainThread] 2011-11-15 15:49:04,055 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-11-15 15:50:04,064 - DEBUG - Indicator: setting refresh label to 'Refresh (4 min. ago)'
[MainThread] 2011-11-15 15:50:04,065 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-11-15 15:51:04,122 - DEBUG - Indicator: setting refresh label to 'Refresh (5 min. ago)'
[MainThread] 2011-11-15 15:51:04,122 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-11-15 15:52:04,174 - DEBUG - Indicator: setting refresh label to 'Refresh (6 min. ago)'
[MainThread] 2011-11-15 15:52:04,174 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-11-15 15:53:04,218 - DEBUG - Indicator: setting refresh label to 'Refresh (7 min. ago)'
[MainThread] 2011-11-15 15:53:04,218 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-11-15 15:54:04,225 - DEBUG - Indicator: setting refresh label to 'Refresh (8 min. ago)'
[MainThread] 2011-11-15 15:54:04,225 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-11-15 15:55:04,237 - DEBUG - Indicator: setting refresh label to 'Refresh (9 min. ago)'
[MainThread] 2011-11-15 15:55:04,237 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-11-15 15:56:04,239 - DEBUG - Indicator: setting refresh label to 'Refresh (10 min. ago)'
[MainThread] 2011-11-15 15:56:04,240 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-11-15 15:57:04,253 - DEBUG - Indicator: setting refresh label to 'Refresh (11 min. ago)'
[MainThread] 2011-11-15 15:57:04,253 - DEBU...

Read more...

Revision history for this message
Evan (halful01) wrote :

I too experience "random" crashes in indicator-weather. I have attached a backtrace from gdb. When gdb suspended at the segfault the sunny icon was still displayed by the temperature was missing. Seems to fit the current theory that it crashes when displaying a new temperature.
Thanks,
Evan

Revision history for this message
tekstr1der (tekstr1der) wrote :

Still seeing this segfault crasher bug on an up-to-date oneiric 11.10 installation.

Any progress on a fix for this?

Revision history for this message
Al Stone (ahs3) wrote :
Download full text (5.2 KiB)

I am also seeing this on up-to-date Oneiric; it appears to happen more frequently when my display is mirrored from my laptop but then again, that's my most common use of my system. I can restart it from the command line but get messages like this:

 /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject

I do see the following in syslog:

Dec 22 08:12:26 leporello kernel: [142262.702401] indicator-weath[3736] general protection ip:7f53f4820d29 sp:7fff1d8a6a40 error:0 in libc-2.13.so[7f53f47a4000+195000]

The file ~/.cache/indicator-weather.log contains the following at about the time of failure noted in syslog (and abruptly stops after the last entry below):

[Fetcher] 2011-12-22 07:57:26,422 - DEBUG - Settings: setting '2405641'='{'humidity': u'Humidity: 83%', 'sunrise': 'Sunrise: 07:22', 'sunset': 'Sunset: 16:35', 'wind': 'Wind: N , 8 mph', 'humidex': None, 'icon': 'weather-clouds', 'temper': u'Temperature: 21 \u02daF', 'condition': 'Cloudy', 'label': '21 \xcb\x9aF'}'
[Fetcher] 2011-12-22 07:57:26,422 - DEBUG - Indicator: update_label: setting label to '21 ˚F'
[Fetcher] 2011-12-22 07:57:26,423 - DEBUG - Indicator: scheduling update in 15 mins
[MainThread] 2011-12-22 07:58:26,475 - DEBUG - Indicator: setting refresh label to 'Refresh (1 min. ago)'
[MainThread] 2011-12-22 07:58:26,475 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-12-22 07:59:26,491 - DEBUG - Indicator: setting refresh label to 'Refresh (2 min. ago)'
[MainThread] 2011-12-22 07:59:26,491 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-12-22 08:00:26,542 - DEBUG - Indicator: setting refresh label to 'Refresh (3 min. ago)'
[MainThread] 2011-12-22 08:00:26,543 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-12-22 08:01:26,566 - DEBUG - Indicator: setting refresh label to 'Refresh (4 min. ago)'
[MainThread] 2011-12-22 08:01:26,566 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-12-22 08:02:26,585 - DEBUG - Indicator: setting refresh label to 'Refresh (5 min. ago)'
[MainThread] 2011-12-22 08:02:26,585 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-12-22 08:03:26,647 - DEBUG - Indicator: setting refresh label to 'Refresh (6 min. ago)'
[MainThread] 2011-12-22 08:03:26,647 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-12-22 08:04:26,664 - DEBUG - Indicator: setting refresh label to 'Refresh (7 min. ago)'
[MainThread] 2011-12-22 08:04:26,665 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-12-22 08:05:26,701 - DEBUG - Indicator: setting refresh label to 'Refresh (8 min. ago)'
[MainThread] 2011-12-22 08:05:26,701 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-12-22 08:06:26,763 - DEBUG - Indicator: setting refresh label to 'Refresh (9 min. ago)'
[MainThread] 2011-12-22 08:06:26,763 - DEBUG - Indicator: scheduling refresh label update in 1 min
[MainThread] 2011-12-22 08:07:26,794 - DEBUG - Indicator: setting refresh l...

Read more...

Revision history for this message
József Kószó (k-joe) wrote :

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric

$ uname -a
Linux joe 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 17:23:00 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

$ dpkg -l | grep indicator-weather
ii indicator-weather 11.05.31-0ubuntu2.1

$ python --version
Python 2.7.2+

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff56cbf40 in g_type_check_instance_is_a () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
(gdb) bt
#0 0x00007ffff56cbf40 in g_type_check_instance_is_a () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#1 0x00007fffeb09d73a in dbusmenu_menuitem_get_id () from /usr/lib/libdbusmenu-glib.so.4
#2 0x00007fffeb09d9ad in ?? () from /usr/lib/libdbusmenu-glib.so.4
#3 0x00007ffff53e2b97 in g_list_foreach () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007fffeb09f5ff in dbusmenu_menuitem_find_id () from /usr/lib/libdbusmenu-glib.so.4
#5 0x00007fffeb0a1bbe in ?? () from /usr/lib/libdbusmenu-glib.so.4
#6 0x00007ffff4f0a620 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#7 0x00007ffff53e7a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8 0x00007ffff53e8258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9 0x00007ffff53e8792 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007ffff2791db7 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#11 0x00007ffff2e45056 in ?? () from /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/_gtk.so
#12 0x00000000004b7114 in PyEval_EvalFrameEx ()
#13 0x00000000004b6d77 in PyEval_EvalFrameEx ()
#14 0x00000000004bcd2d in PyEval_EvalCodeEx ()
#15 0x00000000004bd802 in PyEval_EvalCode ()
#16 0x00000000004dcc22 in ?? ()
#17 0x00000000004dd7e4 in PyRun_FileExFlags ()
#18 0x00000000004de2ee in PyRun_SimpleFileExFlags ()
#19 0x00000000004ee6dd in Py_Main ()
#20 0x00007ffff699e30d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#21 0x000000000041cb69 in _start ()

$ dmesg | grep indicator
[64405.067832] indicator-weath[1553] general protection ip:7fd7fcd93d29 sp:7fff5d2b72a0 error:0 in libc-2.13.so[7fd7fcd17000+195000]
[111512.057000] indicator-weath[15679] general protection ip:7f84fdf602d0 sp:7fff78101670 error:0 in libglib-2.0.so.0.3000.0[7f84fdf48000+f4000]
[143595.664468] indicator-weath[18609]: segfault at 1000000001 ip 00007f68fe4be0b5 sp 00007fff6da639d0 error 4 in libglib-2.0.so.0.3000.0[7f68fe45e000+f4000]
[179865.289325] indicator-weath[23062]: segfault at 700000008 ip 00007fa77c5dd916 sp 00007fff3a951700 error 4 in libdbusmenu-glib.so.4.0.5[7fa77c5d7000+17000]

Revision history for this message
Kurt Miller (miller-kurt-e) wrote :

Launches from command line but not otherwise. This began after the last update:

3.0.0-16-generic #28-Ubuntu SMP Fri Jan 27 17:50:54 UTC 2012 i686 athlon i386 GNU/Linux

Otherwise:

kernel: [34021.573532] indicator-weath[11704]: segfault at 1 ip 006c89cd sp bfa30340 error 4 in libglib-2.0.so.0.3000.0[669000+f7000]

Revision history for this message
skep (skep) wrote :

Same problem every x hours:

$ uname -a
Linux 3.2.0-21-generic #34-Ubuntu SMP Thu Mar 29 22:13:29 UTC 2012 i686 i686 i386 GNU/Linux

$ dpkg -l | grep indicator-weather
ii indicator-weather 11.11.28-0ubuntu1

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu precise (development branch)
Release: 12.04
Codename: precise

Starting indicator-weather via cmd line:
$ indicator-weather
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Speicherzugriffsfehler (Speicherabzug geschrieben)

$ dmesg | grep indicator
[52063.818246] indicator-weath[21221] general protection ip:56f429 sp:bfd0f870 error:0 in libglib-2.0.so.0.3200.0[557000+f7000]

So, right now (and for the past months) indicator-weather is not really stable..

Spence (spencer.carter)
no longer affects: indicator-weather (Ubuntu)
Revision history for this message
ulrich (ulrich) wrote :

well, for me the still exists.

starting weather-indicator i get:

/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed

and then:
(indicator-weather:19700): LIBDBUSMENU-GLIB-CRITICAL **: dbusmenu_menuitem_property_get_variant: assertion `DBUSMENU_IS_MENUITEM(mi)' failed

(indicator-weather:19700): LIBDBUSMENU-GLIB-CRITICAL **: dbusmenu_menuitem_property_get_variant: assertion `DBUSMENU_IS_MENUITEM(mi)' failed

(indicator-weather:19700): LIBDBUSMENU-GLIB-CRITICAL **: dbusmenu_menuitem_get_children: assertion `DBUSMENU_IS_MENUITEM(mi)' failed

system is up to date. amd64.

Revision history for this message
Thomas Majewski (thomasjmajewski) wrote :

Experiencing the exact same problem as described by Ulrich above on 12.04.
Linux tm-Satellite-Pro-L300D 3.2.0-24-generic-pae #39-Ubuntu SMP Mon May 21 18:54:21 UTC 2012 i686 athlon i386 GNU/Linux

Revision history for this message
NoOp (glgxg) wrote :

From this mornings ~/.xsession-errors.log:

Exception in thread Fetcher:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/bin/indicator-weather", line 1148, in get_new_weather_data
    weather = self.get_weather()
  File "/usr/bin/indicator-weather", line 1210, in get_weather
    self.current_location.update_weather_data(self.weather_source)
  File "/usr/bin/indicator-weather", line 329, in update_weather_data
    self.weather = Weather(self.location_details['yahoo id'], source, self.metric_system, self.wind_unit, self.location_details['latitude'], self.location_details['longitude'])
  File "/usr/bin/indicator-weather", line 518, in __init__
    self.__report = pywapi.get_weather_from_yahoo (location_id, 'imperial')
  File "/usr/lib/pymodules/python2.7/pywapi.py", line 192, in get_weather_from_yahoo
    handler = urllib2.urlopen(url)
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 391, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 409, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1185, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1160, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno -2] Name or service not known>

So it's now starting on boot, but stuck at 'Refreshing please wait' & I have to switch to a different location to get it to update.

$ apt-cache policy indicator-weather
indicator-weather:
  Installed: 11.04.10+repack-0ubuntu2
  Candidate: 11.04.10+repack-0ubuntu2
  Version table:
 *** 11.04.10+repack-0ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Tessa Lau (tlau) wrote :

I'm trying to debug this problem on Precise. I have indicator-weather version 11.11.29.

It is crashing with a segmentation fault every couple of days. I have been trying to get a stack trace with debugging symbols by installing python-dbg and running indicator-weather using /usr/bin/python-dbg. However I can't find python-appindicator-dbg in the Ubuntu repositories so that route fails.

I have managed to obtain a core dump by doing "limit coredumpsize unlimited" at the shell and running indicator-weather from the command line. However, trying to load in the core dump using "gdb /usr/bin/python-dbg core" just gives me a backtrace full of "??"'s. Is there any documentation on how to get useful debugging symbols from a Python script's core dump?

I found that the earthtools.org website is unavailable, so fetching the sunrise/sunset times was failing and causing the weather update to fail. I've commented that out, but the segfaults are still persisting.

I changed the scheduled update to happen once a minute and with that frequency, I can cause the app to segfault within an hour or two. Without knowing how else to debug this, I am inserting print statements into the code to try to bisect exactly where the segfault is happening. Any better ideas?

Revision history for this message
Edward Donovan (edward.donovan) wrote :

Hi Tessa -

You might look at

  https://wiki.ubuntu.com/DebuggingProgramCrash#Debug_Symbol_Packages

There's an archive of packages built for debugging at ddebs.ubuntu.com. I have not started using these myself, yet.

I get the similar crash that is bug 927384 (and dozens of duplicates) all the time. It looks like it's related to libdbusmenu-glib, too. I'm hoping to have some time to look at these problems, soon, too. I'll post on that bug if I can find anything, and maybe I can remember to post here, too, if it seems related. Thanks.

Revision history for this message
Edward Donovan (edward.donovan) wrote :

Oh, a little more: I'm running Quantal, and the newer version there is still segfaulting all the time, too. There's a fix for bug 964365, anyway, so it no longer stalls when it can't connect earthtools.org, but moves on without that info. Thanks.

Revision history for this message
Tessa Lau (tlau) wrote :

I finally got a backtrace (I don't know how, Python printed it before dumping core this time even though nothing changed from last time):

/lib/i386-linux-gnu/libc.so.6(+0x73e42)[0xb7398e42]
/lib/i386-linux-gnu/libglib-2.0.so.0(+0x4cd0b)[0xb6d1ed0b]
/lib/i386-linux-gnu/libglib-2.0.so.0(g_free+0x20)[0xb6d1ef90]
/lib/i386-linux-gnu/libglib-2.0.so.0(+0x1843c)[0xb6cea43c]
/usr/lib/i386-linux-gnu/libdbusmenu-glib.so.4(+0xa031)[0xb4a8b031]
/usr/lib/i386-linux-gnu/libdbusmenu-glib.so.4(+0xc2b6)[0xb4a8d2b6]
/lib/i386-linux-gnu/libglib-2.0.so.0(+0x44850)[0xb6d16850]
/lib/i386-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x146)[0xb6d18d86]
/lib/i386-linux-gnu/libglib-2.0.so.0(+0x47125)[0xb6d19125]
/lib/i386-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x7b)[0xb6d1956b]
/usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0(gtk_main+0xaf)[0xb64c9b8f]
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/_gtk.so(+0x17331d)[0xb696f31d]
/usr/bin/python(PyEval_EvalFrameEx+0x1310)[0x8089c20]
/usr/bin/python(PyEval_EvalFrameEx+0x7bc)[0x80890cc]
/usr/bin/python(PyEval_EvalCodeEx+0x150)[0x81a7d70]
/usr/bin/python(PyRun_SimpleFileExFlags+0x2c1)[0x8151e21]
/usr/bin/python(Py_Main+0x559)[0x815a4d9]
/usr/bin/python(main+0x1b)[0x805e78b]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb733e4d3]
/usr/bin/python[0x805e7b1]

@Edward, thanks for the pointer. I have tried following the instructions to install debugging packages, but the indicator-weather script still won't run using python-dbg. The script can't import the appindicator package. I've installed python-appindicator-dbgsym, but I get an error importing appindicator:

% /usr/bin/python-dbg
>>> import appindicator
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/appindicator/__init__.py", line 27, in <module>
    from _appindicator import *
ImportError: /usr/lib/python2.7/dist-packages/appindicator/_appindicator.so: undefined symbol: Py_InitModule4

I believe it's related to this bug:

https://bugs.launchpad.net/ubuntu/+source/python-central/+bug/552432

The python-appindicator-dbgsym package puts _appindicator.so into /usr/lib/debug and Python doesn't look there for it.

todaioan (alan-ar06)
Changed in weather-indicator:
status: Confirmed → Incomplete
Revision history for this message
T_W (walshtc) wrote :

toda, what information is required?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for DBus Menu because there has been no activity for 60 days.]

Changed in dbusmenu:
status: Incomplete → Expired
Revision history for this message
Edward Donovan (edward.donovan) wrote :

User todaioan, recently just toda, is either a vandal, or just does not know what they are doing. He or she doesn't speak English, it looks like, so perhaps that's part of the problem. And perhaps why I haven't been able to successfully ask them to stop. He or she goes around marking bugs to wrong states, and wrong assignments. I still hope someone can do something about their account, or talk to them. It looks like they speak Romanian.

Thanks.

Changed in dbusmenu:
status: Expired → Confirmed
Changed in weather-indicator:
status: Incomplete → Confirmed
todaioan (alan-ar06)
Changed in dbusmenu:
status: Confirmed → Fix Committed
Changed in weather-indicator:
status: Confirmed → Fix Released
Revision history for this message
tekstr1der (tekstr1der) wrote :

@todaioan - please do not modify the status of this bug. It is not fix, nor is it released.

Changed in dbusmenu:
status: Fix Committed → Confirmed
Revision history for this message
Larry Wilson (larry2311) wrote :

Still happening, with a slight variation (libdbusmenu-glib.so)

kernel: [78994.784222] indicator-weath[3000]: segfault at 700000008 ip 00007f894b1abd3b sp 00007fff99952080 error 4 in libdbusmenu-glib.so.4.0.13[7f894b1a4000+1a000]

Joshua Tasker (jtasker)
Changed in weather-indicator:
milestone: backlog → 13.05.17
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.