/usr/lib/unity-lens-photos/unity-lens-photos:TypeError:<module>:__init__:__init__:_get_accounts_for_service:constructor
Bug #1058061 reported by
Evan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Online Accounts: libaccounts-glib |
Invalid
|
Undecided
|
Alberto Mardegan | ||
Photos Lens |
Fix Released
|
High
|
Iain Lane | ||
libaccounts-glib (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
unity-lens-photos (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
https:/
[Impact]
This is one of the most reported error on errors.ubuntu.com, probably related to dbus not being responsive when libaccounts needs it. This properly handles the error and avoid a lens crash by disabling the failing scope.
[Test case]
No clear test case to trigger this failure.
[Regression potential]
Minimal.
Related branches
lp:~laney/unity-lens-photos/handle-libaccounts-failure
- David Callé (community): Approve
-
Diff: 50 lines (+15/-3)3 files modifiedsrc/facebook_scope.py (+5/-1)
src/flickr_scope.py (+5/-1)
src/picasa_scope.py (+5/-1)
Changed in online-accounts-libaccounts-glib: | |
assignee: | nobody → Alberto Mardegan (mardy) |
Changed in unity-lens-photos: | |
status: | In Progress → Fix Committed |
Changed in unity-lens-photos: | |
importance: | Undecided → High |
description: | updated |
description: | updated |
Changed in unity-lens-photos: | |
milestone: | none → 0.9 |
no longer affects: | libaccounts-glib (Ubuntu Quantal) |
Changed in unity-lens-photos: | |
status: | Fix Committed → Fix Released |
Changed in unity-lens-photos (Ubuntu): | |
status: | New → Fix Released |
To post a comment you must log in.
I think this bug is in libaccounts- glib:libaccount s-glib/ ag-manager. c: constructor (GType type, guint n_params,
GObjectConst ructParam *params) parent_ class;
static GObject *
ag_manager_
{
GObjectClass *object_class = (GObjectClass *)ag_manager_
AgManager *manager;
GObject *object;
object = object_ class-> constructor (type, n_params, params);
g_return_ val_if_ fail (object != NULL, NULL);
manager = AG_MANAGER (object);
g_object_ unref (object);
if (G_UNLIKELY (!open_db (manager) || !setup_dbus (manager)))
{
return NULL;
}
return object;
}
i.e. the database has failed to open or dbus not worked.