"TypeError: Couldn't find foreign struct converter for 'cairo.Context'" after enabling all plugins in Pluma

Bug #1743134 reported by Norbert on 2018-01-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pluma (Ubuntu)
Medium
Martin Wimpress

Bug Description

Steps to reproduce:
1. Install Ubuntu 17.10 MATE
2. Install Pluma dependencies to fix neighbor bug 1743132 - `sudo apt-get install libpeas-1.0-python2loader gir1.2-pluma-1.0`
3. Launch Pluma text editor from terminal
4. Go to Edit->Preferences, Plugins tab, make right click and click "Enable All", then click "Close"

Expected results:
Pluma works normally, does not show text in terminal

Actual results:
Pluma works normally, but shows many warning or error messages in terminal:

TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
....

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: pluma 1.18.2-1
ProcVersionSignature: Ubuntu 4.13.0-25.29-generic 4.13.13
Uname: Linux 4.13.0-25-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: MATE
Date: Sat Jan 13 20:11:57 2018
InstallationDate: Installed on 2017-12-23 (21 days ago)
InstallationMedia: Ubuntu-MATE 17.10 "Artful Aardvark" - Release amd64 (20171018)
SourcePackage: pluma
UpgradeStatus: No upgrade log present (probably fresh install)

Norbert (nrbrtx) wrote :
Changed in pluma (Ubuntu):
status: New → In Progress
status: In Progress → New
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Martin Wimpress (flexiondotorg)
Martin Wimpress (flexiondotorg) wrote :

I can't reproduce this using Pluma 1.20.1-2ubuntu1 on Ubuntu MATE 18.04 daily.

Changed in pluma (Ubuntu):
status: Triaged → Incomplete
Norbert (nrbrtx) wrote :

I have only 1.20.1-0ubuntu1 even with enabled proposed updates and Main server on todays daily ISO (http://cdimage.ubuntu.com/ubuntu-mate/daily-live/current/bionic-desktop-amd64.iso, md5 = fe4e959dbd49658b5fa5155029e3488c).

I followed my steps to reproduce above (`sudo apt-get install libpeas-1.0-python2loader gir1.2-pluma-1.0`, Launch Pluma text editor from terminal; Go to Edit->Preferences, Plugins tab, make right click and click "Enable All", then click "Close").

$ apt-cache policy pluma
pluma:
  Installed: 1.20.1-0ubuntu1
  Candidate: 1.20.1-0ubuntu1
  Version table:
 *** 1.20.1-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status

here I got the same messages:

$ pluma # run it 3-5 seconds and then close it with Alt+F4
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/pluma/plugins/snippets/Document.py", line 702, in on_view_destroy
    self.stop()
  File "/usr/lib/x86_64-linux-gnu/pluma/plugins/snippets/Document.py", line 70, in stop
    self.set_view(None)
  File "/usr/lib/x86_64-linux-gnu/pluma/plugins/snippets/Document.py", line 149, in set_view
    self._set_view(view)
  File "/usr/lib/x86_64-linux-gnu/pluma/plugins/snippets/Document.py", line 113, in _set_view
    completion.remove_provider(self.provider)
GLib.Error: gtk-source-completion-error-quark: Provider is not bound to this completion object (1)

I'm running it on VirtualBox 5.1.34 with installed Guest Additions if it matters.

Norbert (nrbrtx) wrote :

I installed latest 1.20.1-2ubuntu1.

Then I started Pluma from terminal, *Edit->Preferences*, opened *Plugins* tab, right clicked on list, clicked *Disable all*, closed pluma.
Opened Pluma again from terminal, *Edit->Preferences*, opened *Plugins* tab, right clicked on list, clicked *Enable All* got this message in the

 pluma

(pluma:1944): libpeas-WARNING **: 11:48:31.310: Failed to run internal Python hook 'find_extension_type':
Traceback (most recent call last):
  File "peas-python-internal.py", line 71, in call
  File "peas-python-internal.py", line 130, in find_extension_type
AttributeError: 'module' object has no attribute 'UniqueById'

Then closed Pluma.

Opened Pluma again from terminal, it started to show

"TypeError: Couldn't find foreign struct converter for 'cairo.Context'" in the terminal and then

on close:

Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/pluma/plugins/snippets/Document.py", line 702, in on_view_destroy
    self.stop()
  File "/usr/lib/x86_64-linux-gnu/pluma/plugins/snippets/Document.py", line 70, in stop
    self.set_view(None)
  File "/usr/lib/x86_64-linux-gnu/pluma/plugins/snippets/Document.py", line 149, in set_view
    self._set_view(view)
  File "/usr/lib/x86_64-linux-gnu/pluma/plugins/snippets/Document.py", line 113, in _set_view
    completion.remove_provider(self.provider)
GLib.Error: gtk-source-completion-error-quark: Provider is not bound to this completion object (1)

Norbert (nrbrtx) on 2018-04-26
Changed in pluma (Ubuntu):
status: Incomplete → Invalid
Norbert (nrbrtx) wrote :

I see

   Couldn't find foreign struct converter for 'cairo.Context'

message on 19.04 after enabling of all plugins.

tags: added: disco
removed: artful
Changed in pluma (Ubuntu):
status: Invalid → Confirmed
Norbert (nrbrtx) wrote :

Still a problem for Ubuntu MATE 19.04 beta2.

Norbert (nrbrtx) on 2019-04-20
tags: added: cosmic
Norbert (nrbrtx) on 2019-04-21
tags: added: eoan
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers