Opening 'preferences' dialog crashes indicator-weather

Bug #1198389 reported by Alex Klapheke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Weather Indicator
Fix Released
Undecided
Joshua Tasker

Bug Description

Clicking 'preferences' in the indicator menu does not open the dialog, but causes the application to exit with the following message:

(indicator-weather:4286): GLib-GObject-ERROR **: cannot create instance of abstract (non-instantiatable) type `GtkBox'
Trace/breakpoint trap

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: indicator-weather 13.05.29 [origin: LP-PPA-weather-indicator-team]
ProcVersionSignature: Ubuntu 3.5.0-34.55-generic 3.5.7.13
Uname: Linux 3.5.0-34-generic x86_64
ApportVersion: 2.6.1-0ubuntu11
Architecture: amd64
CrashDB: indicator_weather
Date: Fri Jul 5 22:48:23 2013
InstallationDate: Installed on 2012-08-19 (320 days ago)
InstallationMedia: Xubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: indicator-weather
ThirdParty: True
UpgradeStatus: Upgraded to quantal on 2013-03-08 (119 days ago)

Revision history for this message
Alex Klapheke (alexklapheke) wrote :
Revision history for this message
Joshua Tasker (jtasker) wrote :

I can't reproduce this. Looking at your indicator-weather.log, there is another issue that needs to be addressed. which may or may not be related to this crash.

Are you able to consistently reproduce this crash? If so, can you give the steps?

Changed in weather-indicator:
status: New → Incomplete
assignee: nobody → Joshua Tasker (jtasker)
Revision history for this message
Alex Klapheke (alexklapheke) wrote :

I just noticed that the same error occurs when clicking 'forecast' as well. I suspect it's to to with opening a new dialog.

This is consistently reproducable for me simply by clicking 'preferences' or 'forecast.'

N.B. clicking 'about' does not crash the program but produces this error (the dialog never opens):

  File "/usr/local/bin/indicator-weather", line 1491, in about
    ifile = open(os.path.join(PROJECT_ROOT_DIRECTORY, "share/doc/indicator-weather/AUTHORS"), "r")
IOError: [Errno 2] No such file or directory: '/usr/local/share/doc/indicator-weather/AUTHORS'

Should I file a separate bug report for this? And what is the logfile issue you mentioned?

Revision history for this message
Joshua Tasker (jtasker) wrote :

Hold on, the bug description says you have version 13.05.29 installed, but your log file shows version 12.07.30.

What's the output of running this command in a terminal?

sudo updatedb; locate indicator-weather | xargs -I{} grep -Hs VERSION\ = {}

Revision history for this message
Alex Klapheke (alexklapheke) wrote :

Here's the result:

$ sudo updatedb; locate indicator-weather | xargs -I{} grep -Hs VERSION\ = {}
/usr/bin/indicator-weather:VERSION = "13.05.29 'Rainy 6'"
/usr/local/bin/indicator-weather:VERSION = "12.07.30 'Cloudy 10'"

It seems the older version is the default, but running the newer version segfaults:

$ which indicator-weather
/usr/local/bin/indicator-weather

$ /usr/bin/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
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: specified class size for type `PyGtkGenericCellRenderer' is smaller than the parent type's `GtkCellRenderer' class size
  from gtk import _gtk
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_get_qdata: assertion `node != NULL' failed
  from gtk import _gtk

Segmentation fault

Revision history for this message
Joshua Tasker (jtasker) wrote :

Very odd. Do you have GTK3 installed?

What is the output of running the following command in a terminal?

  dpkg-query -W -f='${binary:Package;-34}${Version;-18}\t${Status}\n' 'gir1.2*'

Revision history for this message
Alex Klapheke (alexklapheke) wrote :

$ dpkg-query -W -f='${binary:Package;-34}${Version;-18}\t${Status}\n' 'gir1.2*'

gir1.2-appindicator3-0.1 12.10.0-0ubuntu1 install ok installed
gir1.2-atk-1.0 2.6.0-0ubuntu1 install ok installed
gir1.2-atspi-2.0 2.6.3-0ubuntu0.1 install ok installed
gir1.2-dbusmenu-glib-0.4 12.10.2-0ubuntu1 install ok installed
gir1.2-dbusmenu-gtk-0.4 12.10.2-0ubuntu1 install ok installed
gir1.2-dee-0.5 unknown ok not-installed
gir1.2-dee-1.0 1.0.14-0ubuntu1.1 install ok installed
gir1.2-eog-3.0 unknown ok not-installed
gir1.2-freedesktop 1.33.14-1 install ok installed
gir1.2-gconf-2.0 3.2.5-0ubuntu4 install ok installed
gir1.2-gdkpixbuf-2.0 2.26.4-0ubuntu1 install ok installed
gir1.2-glib-2.0 1.33.14-1 install ok installed
gir1.2-gmenu-3.0 3.6.0-0ubuntu1 install ok installed
gir1.2-gstreamer-0.10 0.10.36-1ubuntu2 install ok installed
gir1.2-gtk-2.0 2.24.13-0ubuntu2 install ok installed
gir1.2-gtk-3.0 3.6.0-0ubuntu3.2 install ok installed
gir1.2-gudev-1.0 175-0ubuntu13 install ok installed
gir1.2-indicate-0.5 unknown ok not-installed
gir1.2-javascriptcoregtk-3.0 1.10.0-0ubuntu1.1 install ok installed
gir1.2-launchpad-integration-3.0 0.1.56.2 install ok installed
gir1.2-notify-0.7 0.7.5-1build1 install ok installed
gir1.2-panelapplet-4.0 1:3.6.0-0ubuntu2 install ok installed
gir1.2-pango-1.0 1.30.1-0ubuntu3 install ok installed
gir1.2-peas-1.0 1.4.0-2ubuntu3 install ok installed
gir1.2-soup-2.4 2.40.0-0ubuntu1 install ok installed
gir1.2-soup-gnome-2.4 unknown ok not-installed
gir1.2-unity-3.0 unknown ok not-installed
gir1.2-unity-5.0:amd64 6.12.0-0ubuntu0.1 install ok installed
gir1.2-vte-2.90 1:0.34.0-0ubuntu1 install ok installed
gir1.2-webkit-3.0 1.10.0-0ubuntu1.1 install ok installed
gir1.2-wnck-3.0 3.4.3-0ubuntu1 install ok installed

Revision history for this message
Joshua Tasker (jtasker) wrote :

I just rewrote all the dbus code to use GDBus instead of the (deprecated) python-dbus, the latest changes are in the Unstable PPA. Please try the latest unstable build (349).

If that doesn't help, do what is suggested in this comment: https://bugs.launchpad.net/bzr-gtk/+bug/923824/comments/1

"Temporarily modify /usr/lib/python2.7/dist-packages/gobject/constants.py to say

raise ImportError("no static plz")

somewhere at the top, then you will get a proper backtrace."

And then post the resulting backtrace here.

Revision history for this message
Alex Klapheke (alexklapheke) wrote :

Segfaults as before. This is the backtrace I get when modifying that library file:

Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 60, in <module>
    from indicator_weather.helpers import *
  File "/usr/local/lib/python2.7/dist-packages/indicator_weather/helpers.py", line 34, in <module>
    import gconf
ImportError: could not import gobject (error was: ImportError('no static plz',))

Revision history for this message
Joshua Tasker (jtasker) wrote :

That helpers.py file being referenced is outdated. I am not sure why you have two copies of indicator-weather installed.

If you remove the (outdated) copy installed into /usr/local it should clear up all these issues.

Make sure the following files and folders are removed:
/usr/local/bin/indicator-weather
/usr/local/lib/python2.7/dist-packages/indicator_weather/*
/usr/local/share/indicator-weather/media/*
/usr/local/share/indicator-weather/ui/*

Then try running the version installed in /usr/bin and see what happens.

Revision history for this message
Alex Klapheke (alexklapheke) wrote :

That cleared it up. I have no idea why the old version was never replaced. Thanks for your help!

Revision history for this message
Joshua Tasker (jtasker) wrote :

You're welcome. I'm marking this fixed now.

Changed in weather-indicator:
status: Incomplete → Fix Released
milestone: none → 13.06.01
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.