MyPaint does not work under Wayland

Bug #1687180 reported by Moses Palmér on 2017-04-29
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mypaint (Ubuntu)

Bug Description

lsb_release -rd
Description: Ubuntu 17.04
Release: 17.04

apt-cache policy mypaint
  Installed: 1.2.0-4
  Candidate: 1.2.0-4

When running MyPaint under a GNOME Wayland session, the application does not start. When launched from the command line, the following output is generated:

INFO: mypaint: Installation layout: conventional POSIX-like structure with prefix u'/usr'
INFO: lib.i18n: POSIX: LANG='en_US.UTF-8'
INFO: lib.i18n: POSIX: LANGUAGE=None
Gdk-Message: Unable to load bogosity from the cursor theme
Traceback (most recent call last):
  File "/usr/bin/mypaint", line 462, in <module>
    main.main(datapath, iconspath, old_confpath, version=version)
  File "/usr/share/mypaint/gui/", line 95, in main
    from gui import application
  File "/usr/share/mypaint/gui/", line 53, in <module>
    import gui.device
  File "/usr/share/mypaint/gui/", line 25, in <module>
    import gui.mode
  File "/usr/share/mypaint/gui/", line 809, in <module>
    class SingleClickMode (InteractionMode):
  File "/usr/share/mypaint/gui/", line 813, in SingleClickMode
    cursor = gdk.Cursor(gdk.BOGOSITY)
  File "/usr/lib/python2.7/dist-packages/gi/overrides/", line 329, in __new__
    return*args, **kwds)
TypeError: constructor returned NULL

This bug can be worked around by setting the environment variable GDK_BACKEND to x11 when running MyPaint; the patch does this.

Moses Palmér (mosespalmer) wrote :

The attachment "diff -U5 output of old and new version" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
affects: ubuntu → mypaint (Ubuntu)
Sergey Avseyev (avsej) wrote :

Just FYI, Fedora package has backported several patches to make it work with Wayland. Feel free to pull those patches into Debian/Ubuntu:

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mypaint (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers