Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception against NameHasNoOwner crashes program #566

Closed
fantasai opened this issue Feb 18, 2020 · 4 comments
Closed

Exception against NameHasNoOwner crashes program #566

fantasai opened this issue Feb 18, 2020 · 4 comments

Comments

@fantasai
Copy link
Contributor

#529 seems to have been fixed, but now running into

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 177, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 363, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 653, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.gnome.Hamster': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/hamster", line 138, in on_activate_window
    self._open_window(action.get_name(), data)
  File "/usr/bin/hamster", line 168, in _open_window
    self.overview_controller = Overview()
  File "/usr/lib/python3/dist-packages/hamster/overview.py", line 479, in __init__
    self.find_facts()
  File "/usr/lib/python3/dist-packages/hamster/overview.py", line 533, in find_facts
    self.facts = self.storage.get_facts(start, end, search_terms=search)
  File "/usr/lib/python3/dist-packages/hamster/client.py", line 156, in get_facts
    for fact in self.conn.GetFactsJSON(dbus_range, search_terms)]
  File "/usr/lib/python3/dist-packages/hamster/client.py", line 97, in conn
    '/org/gnome/Hamster'),
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 243, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 250, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 182, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 280, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 653, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Hamster exited with status 1
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 177, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 363, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 653, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.gnome.Hamster': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/hamster", line 138, in on_activate_window
    self._open_window(action.get_name(), data)
  File "/usr/bin/hamster", line 168, in _open_window
    self.overview_controller = Overview()
  File "/usr/lib/python3/dist-packages/hamster/overview.py", line 479, in __init__
    self.find_facts()
  File "/usr/lib/python3/dist-packages/hamster/overview.py", line 533, in find_facts
    self.facts = self.storage.get_facts(start, end, search_terms=search)
  File "/usr/lib/python3/dist-packages/hamster/client.py", line 156, in get_facts
    for fact in self.conn.GetFactsJSON(dbus_range, search_terms)]
  File "/usr/lib/python3/dist-packages/hamster/client.py", line 97, in conn
    '/org/gnome/Hamster'),
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 243, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 250, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 182, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 280, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 653, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Hamster exited with status 1

This is running 95687ac after executing the following:

☯ ~$ pkill -f hamster-service
☯ ~$ pkill -f hamster-windows-service
☯ ~$ pgrep -af hamster
☯ ~$ sudo ./waf uninstall
☯ ~$ cd temporary/hamster
☯ ~/temporary/hamster$ sudo ./waf uninstall
☯ ~/temporary/hamster$ ./waf configure build
☯ ~/temporary/hamster$ ( umask 0022 && sudo ./waf install; )
☯ ~/temporary/hamster$ hamster

I haven't bisected the commits to find the responsible commit, but as before, 8d281b9 builds and runs correctly.

@ederag
Copy link
Collaborator

ederag commented Feb 18, 2020

Thanks for the report.
Looks a lot like #402 (comment).
What's your system ?
Have you followed the instructions, including the find check ?

@mwilck
Copy link
Contributor

mwilck commented Feb 19, 2020

This error would occur if hamster-service (which owns org.gnome.Hamster) had exited or crashed. @fantasai, check if you can start the service manually, either by running hamster-service & or by activating org.gnome.Hamster e.g. with d-feet. Also, check your logs for DBus error messages (journalctl --user).

Looks a lot like #402 (comment).

Not quite. in #402, it was hamster-windows-service which failed to start. Here, it's hamster-service.

@ederag
Copy link
Collaborator

ederag commented Feb 19, 2020

@fantasai Please just follow #566 (comment) and report back success or failure. We'll see then.

@ederag
Copy link
Collaborator

ederag commented Feb 22, 2020

@fantasai Closing because this could scare packagers away for nothing,
but please report either way, I'd really like to have an answer before the v3.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants