Need to add geoclue-ubuntu-geoip to dependencies

Bug #1186224 reported by Сергей Коптев
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Qreator
Fix Committed
Critical
David Planella
qreator (Debian)
Fix Released
Unknown

Bug Description

I used previous versions of Qreator and tried the last 13.05.3 on Xubuntu 12.04 and Xubuntu 13.04 and it's not working.
The installation process goes fine (I use GDebi), but then program do not start and crush report appear.
When I started Qreator in terminal I got this:

(qreator:5908): Gtk-WARNING **: Can't pass in construct-only parameters to cancel_button

(qreator:5908): Gtk-WARNING **: Can't pass in construct-only parameters to ok_button

(qreator:5908): Gtk-WARNING **: Can't pass in construct-only parameters to help_button
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
No handlers could be found for logger "qreator_lib"
Traceback (most recent call last):
  File "/usr/bin/qreator", line 47, in <module>
    qreator.main()
  File "/usr/lib/python2.7/dist-packages/qreator/__init__.py", line 63, in main
    window = QreatorWindow.QreatorWindow()
  File "/usr/lib/python2.7/dist-packages/qreator_lib/Window.py", line 48, in __new__
    new_object.finish_initializing(builder)
  File "/usr/lib/python2.7/dist-packages/qreator/QreatorWindow.py", line 79, in finish_initializing
    self.init_qr_types()
  File "/usr/lib/python2.7/dist-packages/qreator/QreatorWindow.py", line 135, in init_qr_types
    self.qr_types = [d(self.update_qr_code) for d in QRCodeType.dataformats]
  File "/usr/lib/python2.7/dist-packages/qreator/qrcodes/QRCodeType.py", line 71, in __init__
    self.create_widget() # pylint: disable=E1101
  File "/usr/lib/python2.7/dist-packages/qreator/qrcodes/QRCodeLocation.py", line 29, in create_widget
    self.widget = QRCodeLocationGtk(self.qr_code_update_func)
  File "/usr/lib/python2.7/dist-packages/qreator/qrcodes/QRCodeLocationGtk.py", line 49, in __init__
    latitude, longitude = get_current_location()
  File "/usr/lib/python2.7/dist-packages/qreator/qrcodes/QRCodeLocationGtk.py", line 109, in get_current_location
    '/org/freedesktop/Geoclue/Providers/Hostip')
  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Geoclue.Providers.Hostip was not provided by any .service files

Related branches

David Planella (dpm)
Changed in qreator:
status: New → Triaged
importance: Undecided → High
milestone: none → 13.06.1
Revision history for this message
David Planella (dpm) wrote :

Thanks Сергей for trying Qreator and reporting this bug.

As a workaround, could you try to install the geoclue-hostip package and report back if that fixes the issue?

You can do so by opening a terminal with Ctrl+Alt+t and then typing this command followed by Enter:

    sudo apt-get install geoclue-hostip

I think what is happening here is that the Ubuntu GeoIP service provider, on which Qreator relies upon, is not installed by default on Xubuntu. As a fallback then Qreator tries to use the HostIP provider, which is not installed either, and it finally fails.

What we need to do to fix this bug is:

- The Qreator package needs to depend upon the geoclue-ubuntu-geoip or the geoclue-hostip package.
- Qreator should fail gracefully if neither of those is installed.

Changed in qreator:
importance: High → Critical
Revision history for this message
Сергей Коптев (skoptev-m) wrote :

I've installed geoclue-hostip, then tryed to start qreator:

:~$ /usr/bin/qreator

(qreator:3223): Gtk-WARNING **: Can't pass in construct-only parameters to cancel_button

(qreator:3223): Gtk-WARNING **: Can't pass in construct-only parameters to ok_button

(qreator:3223): Gtk-WARNING **: Can't pass in construct-only parameters to help_button
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
No handlers could be found for logger "qreator_lib"
ERROR:dbus.proxies:Introspect error on :1.104:/org/freedesktop/Geoclue/Providers/Hostip: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Traceback (most recent call last):
  File "/usr/bin/qreator", line 47, in <module>
    qreator.main()
  File "/usr/lib/python2.7/dist-packages/qreator/__init__.py", line 63, in main
    window = QreatorWindow.QreatorWindow()
  File "/usr/lib/python2.7/dist-packages/qreator_lib/Window.py", line 48, in __new__
    new_object.finish_initializing(builder)
  File "/usr/lib/python2.7/dist-packages/qreator/QreatorWindow.py", line 79, in finish_initializing
    self.init_qr_types()
  File "/usr/lib/python2.7/dist-packages/qreator/QreatorWindow.py", line 135, in init_qr_types
    self.qr_types = [d(self.update_qr_code) for d in QRCodeType.dataformats]
  File "/usr/lib/python2.7/dist-packages/qreator/qrcodes/QRCodeType.py", line 71, in __init__
    self.create_widget() # pylint: disable=E1101
  File "/usr/lib/python2.7/dist-packages/qreator/qrcodes/QRCodeLocation.py", line 29, in create_widget
    self.widget = QRCodeLocationGtk(self.qr_code_update_func)
  File "/usr/lib/python2.7/dist-packages/qreator/qrcodes/QRCodeLocationGtk.py", line 49, in __init__
    latitude, longitude = get_current_location()
  File "/usr/lib/python2.7/dist-packages/qreator/qrcodes/QRCodeLocationGtk.py", line 111, in get_current_location
    dbus_interface='org.freedesktop.Geoclue.Position')
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Revision history for this message
Сергей Коптев (skoptev-m) wrote :

then I install geoclue-ubuntu-geoip, and again tryed to start qreator:

/usr/bin/qreator

(qreator:2623): Gtk-WARNING **: Can't pass in construct-only parameters to cancel_button

(qreator:2623): Gtk-WARNING **: Can't pass in construct-only parameters to ok_button

(qreator:2623): Gtk-WARNING **: Can't pass in construct-only parameters to help_button
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
No handlers could be found for logger "qreator_lib"

(qreator:2623): Gtk-WARNING **: Unknown property: GtkEntry.input-purpose
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `QreatorWindow' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)

(qreator:2623): Gtk-WARNING **: Unknown property: GtkEntry.input-purpose

(qreator:2623): Gdk-WARNING **: gdk_window_set_icon_list: icons too large

(qreator:2623): GdkPixbuf-CRITICAL **: gdk_pixbuf_new_subpixbuf: assertion `src_y >= 0 && src_y + height <= src_pixbuf->height' failed

(qreator:2623): GdkPixbuf-CRITICAL **: gdk_pixbuf_copy_area: assertion `dest_x >= 0 && dest_x + width <= dest_pixbuf->width' failed

(qreator:2623): GdkPixbuf-CRITICAL **: gdk_pixbuf_copy_area: assertion `dest_x >= 0 && dest_x + width <= dest_pixbuf->width' failed

(qreator:2623): GdkPixbuf-CRITICAL **: gdk_pixbuf_copy_area: assertion `dest_y >= 0 && dest_y + height <= dest_pixbuf->height' failed

Revision history for this message
David Planella (dpm) wrote :

Thanks for testing and coming back to us.

It seems the workaround worked (except for the fact that HostIP does not seem to work), so we know all that's required to fix that bug and start working on it.

The icons not loading is a separate issue, which we need to track on a separate bug as well. Would you mind opening a new bug for the icons issue?

Thanks!

Revision history for this message
Сергей Коптев (skoptev-m) wrote :

I've opened a new bug for the icons issue.

Thank You for answers and good luck with bugfixing

David Planella (dpm)
summary: - Qreator don't work on Xubuntu
+ Need to add geoclue-ubuntu-geoip to dependencies
Changed in qreator:
assignee: nobody → David Planella (dpm)
status: Triaged → In Progress
Revision history for this message
Ofloo (ofloo) wrote :

xenial still dependencie is not set maybe it is wise to add this package as a dependencie for qreator.

David Planella (dpm)
Changed in qreator:
milestone: 13.10.1 → next
status: In Progress → Fix Committed
milestone: next → 16.06.1
Changed in qreator (Debian):
status: Unknown → New
Changed in qreator (Debian):
status: New → Fix Released
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.