/usr/lib/unity-lens-files/unity-scope-gdocs:TypeError:<module>:__init__:constructor

Bug #1058063 reported by Evan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Google Documents Lens
Fix Released
High
Iain Lane
unity-scope-gdocs (Ubuntu)
Fix Released
High
Unassigned
Quantal
Fix Released
High
Unassigned
Revision history for this message
Sebastien Bacher (seb128) wrote :

Hey Alberto, could you look at this issue? It's one of the most reported issues on quantal

Changed in unity-scope-gdocs (Ubuntu):
importance: Undecided → High
Changed in unity-lens-gdocs:
assignee: nobody → Alberto Mardegan (mardy)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Traceback (most recent call last):
  File "/usr/lib/unity-lens-files/unity-scope-gdocs", line 280, in <module>
    daemon = Daemon()
  File "/usr/lib/unity-lens-files/unity-scope-gdocs", line 46, in __init__
    self._account_manager = Accounts.Manager.new_for_service_type("documents")
  File "/usr/lib/python3/dist-packages/gi/types.py", line 76, in constructor
    return info.invoke(cls, *args, **kwargs)
TypeError: constructor returned NULL

looking at the stats by version those are really low for 0.5, it could be either fixed already (the system report the installed version not the running one) or few people upgraded to the new one

Revision history for this message
Iain Lane (laney) wrote :

Recipe:

$ chmod a-r ~/.config/libaccounts-glib/accounts.db
$ killall unity-scope-gdocs; /usr/lib/unity-lens-files/unity-scope-gdocs

(process:12783): accounts-glib-WARNING **: Error opening accounts DB: unable to open database file

(process:12783): accounts-glib-CRITICAL **: ag_manager_new_for_service_type: assertion `AG_IS_MANAGER (manager)' failed
Traceback (most recent call last):
  File "/usr/lib/unity-lens-files/unity-scope-gdocs", line 298, in <module>
    daemon = Daemon()
  File "/usr/lib/unity-lens-files/unity-scope-gdocs", line 49, in __init__
    self._account_manager = Accounts.Manager.new_for_service_type("documents")
  File "/usr/lib/python3/dist-packages/gi/types.py", line 76, in constructor
    return info.invoke(cls, *args, **kwargs)
TypeError: constructor returned NULL

Revision history for this message
Iain Lane (laney) wrote :

you can legitimately get this when apparmor denies the open request due to you having a home directory in a nonstandard location

Changed in unity-scope-gdocs (Ubuntu):
status: New → Triaged
Iain Lane (laney)
Changed in unity-lens-gdocs:
assignee: Alberto Mardegan (mardy) → Iain Lane (laney)
status: New → Confirmed
Alberto Mardegan (mardy)
Changed in unity-lens-gdocs:
status: Confirmed → Fix Released
importance: Undecided → High
David King (amigadave)
Changed in unity-lens-gdocs:
milestone: none → 0.7
Changed in unity-scope-gdocs (Ubuntu):
milestone: none → quantal-updates
status: Triaged → Confirmed
Revision history for this message
Alberto Mardegan (mardy) wrote :

It should be possible to reproduce the bug by making ~/.config/libaccounts-glib/accounts.db.* read-only.
The regression risk is 0: all what we are doing is terminating normally when we catch the exception, rather than having python terminate our script because of the unhandled exception.

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

This bug was fixed in the package unity-scope-gdocs - 0.7-0ubuntu1

---------------
unity-scope-gdocs (0.7-0ubuntu1) quantal-proposed; urgency=low

  * New upstream release.
    - Use ‘alternate’ link-type to open files in a browser (LP: #1041749)
    - Exit if the account manager can't be instantiated. (LP: #1058063)
 -- Ken VanDine <email address hidden> Tue, 16 Oct 2012 11:20:54 -0400

Changed in unity-scope-gdocs (Ubuntu Quantal):
status: Confirmed → 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.