Public bug reported:

Environment: Lubuntu 12.04
Preconditions: python-gi-cairo NOT pre-installed

Steps:
1) Install gedit (3.4.1) with default options
2) Enable "snippets" plugin (possibly gedit relaunch is needed)
3) Open any text document via __drag'n'drop___

Expected:
3) Document properly opened

Actual:
3) Crash dump
Error message shown:
---------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 235, in mro
    return mro(cls)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 249, in mro
    bases_of_subclasses += list(map(mro, C.__bases__)) + [list(C.__bases__)]
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 249, in mro
    bases_of_subclasses += list(map(mro, C.__bases__)) + [list(C.__bases__)]
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 249, in mro
    bases_of_subclasses += list(map(mro, C.__bases__)) + [list(C.__bases__)]
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 249, in mro
    bases_of_subclasses += list(map(mro, C.__bases__)) + [list(C.__bases__)]
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 254, in mro
    not_head = [s for s in bases_of_subclasses if candidate in s[1:]]
TypeError: Couldn't find conversion for foreign struct 'cairo.Context'
**
ERROR:/build/buildd/pygobject-3.2.2/gi/_gobject/pygobject.c:929:pygobject_new_full:
 assertion failed: (tp != NULL)
Aborted (core dumped)
-------------------------------

Notes (workaround):
Snippets plugin seemes to exploit pyton-gi-cairo contained modules.
Manually installing package solves the problem.

Fix:
Since "snippets" is a part of gedit package, python-gi-cairo should be added to 
dependencies list.

** Affects: gedit (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: gedit snippets

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gedit in Ubuntu.
https://bugs.launchpad.net/bugs/1039686

Title:
  gedit should depend on python-gi-cairo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1039686/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to