MyPaint does not work under Wayland

Bug #1687180 reported by Moses Palmér
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mypaint (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

lsb_release -rd
Description: Ubuntu 17.04
Release: 17.04

apt-cache policy mypaint
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/main.py", line 95, in main
    from gui import application
  File "/usr/share/mypaint/gui/application.py", line 53, in <module>
    import gui.device
  File "/usr/share/mypaint/gui/device.py", line 25, in <module>
    import gui.mode
  File "/usr/share/mypaint/gui/mode.py", line 809, in <module>
    class SingleClickMode (InteractionMode):
  File "/usr/share/mypaint/gui/mode.py", line 813, in SingleClickMode
    cursor = gdk.Cursor(gdk.BOGOSITY)
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gdk.py", line 329, in __new__
    return cls.new(*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.

Revision history for this message
Moses Palmér (mosespalmer) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) 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)
Revision history for this message
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: https://src.fedoraproject.org/rpms/mypaint/tree/master

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.