Bug 1555277

Summary: Unable to load arrow from the cursor theme
Product: [Fedora] Fedora Reporter: yucef sourani <youssef.m.sourani>
Component: mypaintAssignee: Sergey Avseyev <sergey.avseyev>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: christoph.wickert, sergey.avseyev, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: mypaint-1.2.1-15.fc27 mypaint-1.2.1-18.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-28 01:16:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description yucef sourani 2018-03-14 11:51:48 UTC
Description of problem:
(On Wayland Only) The mypaint program won't launch with  Breeze_cursors and Breeze_Snow themes,
its work fine with default theme Adwaita .


Version-Release number of selected component (if applicable):

mypaint-1.2.1-11.fc27

breeze-cursor-theme-5.11.5-1.fc27

Error:
Gdk-Message: Unable to load arrow from the cursor theme
Traceback (most recent call last):
  File "/usr/bin/mypaint", line 464, 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 818, in <module>
    class SingleClickMode (InteractionMode):
  File "/usr/share/mypaint/gui/mode.py", line 823, in SingleClickMode
    cursor = gdk.Cursor.new(gdk.CursorType.ARROW)
TypeError: constructor returned NULL

Comment 1 Fedora Update System 2018-03-25 22:53:38 UTC
mypaint-1.2.1-12.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-4908df51f5

Comment 2 Fedora Update System 2018-03-26 16:41:32 UTC
mypaint-1.2.1-12.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-4908df51f5

Comment 3 yucef sourani 2018-03-26 20:53:36 UTC
The update solved the problem and created another problem on all icon theme and on wayland and Xorg ,when I click  on tool options (Flood Fill , Lines ...)  I get this error:

```python
Mypaint version: 1.2.1+gitexport.bcf5a28d
System information: Linux-4.15.10-300.fc27.x86_64-x86_64-with-fedora-27-Twenty_Seven
Using: Python 2.7.14, GTK 3.22.26, GdkPixbuf 2.36.11, Cairo 1.15.10, GLib 2.54.1
Traceback (most recent call last):
  File "/usr/share/mypaint/gui/document.py", line 2030, mode_radioaction_changed_cb(self=<gui.document.Document object>, action=<Gtk.RadioAction object at 0x7f9fef602410 (GtkRadioAction at 0x55b985bd2750)>, current_action=<Gtk.RadioAction object at 0x7f9fef5f7eb0 (GtkRadioAction at 0x55b9865d32d0)>)
                    mode = mode_class()
                self.modes.context_push(mode)
  variables: {'self.modes.context_push': ('local', <bound method ModeStack.context_push of <ModeStack [StraightMode]>>), 'mode': ('local', <gui.linemode.StraightMode object at 0x7f9fee32a390>)}
  File "/usr/share/mypaint/gui/mode.py", line 1314, context_push(self=<ModeStack [StraightMode]>, mode=<gui.linemode.StraightMode object>)
            self._stack.append(mode)
            mode.enter(doc=self._doc)
            self.changed(old=old_mode, new=mode)
  variables: {'doc': (None, []), 'self._doc': ('local', <gui.document.Document object at 0x7f9ff11724d0>), 'mode.enter': ('local', <bound method StraightMode.enter of <gui.linemode.StraightMode object at 0x7f9fee32a390>>)}
  File "/usr/share/mypaint/gui/linemode.py", line 262, enter(self=<gui.linemode.StraightMode object>, doc=<gui.document.Document object>, **kwds={})
            """
            super(LineModeBase, self).enter(doc, **kwds)
            self.app = self.doc.app
  variables: {'kwds': ('local', {}), 'LineModeBase': ('global', <class 'gui.linemode.LineModeBase'>), 'doc': ('local', <gui.document.Document object at 0x7f9ff11724d0>), 'self': ('local', <gui.linemode.StraightMode object at 0x7f9fee32a390>), 'enter': (None, []), 'super': ('builtin', <type 'super'>)}
  File "/usr/share/mypaint/gui/mode.py", line 428, enter(self=<gui.linemode.StraightMode object>, doc=<gui.document.Document object>, **kwds={})
            self.__reset_delta_totals()
            return super(ScrollableModeMixin, self).enter(doc, **kwds)
  variables: {'kwds': ('local', {}), 'doc': ('local', <gui.document.Document object at 0x7f9ff11724d0>), 'self': ('local', <gui.linemode.StraightMode object at 0x7f9fee32a390>), 'ScrollableModeMixin': ('global', <class 'gui.mode.ScrollableModeMixin'>), 'enter': (None, []), 'super': ('builtin', <type 'super'>)}
  File "/usr/share/mypaint/gui/mode.py", line 1056, enter(self=<gui.linemode.StraightMode object>, doc=<gui.document.Document object>, **kwds={})
            # use __dict__ to make sure that base property is always initialized
            if self.__dict__['inactive_cursor'] is None:
                self.__dict__['inactive_cursor'] = self.doc.app.cursor.get_action_cursor(
  variables: {'self.__dict__': ('local', {'last_y': None, 'last_x': None, 'last_line_data': None, 'initial_modifiers': None, 'idle_srcid': None, '_ScrollableModeMixin__total_dx': 0.0, 'app': None, '_start_keyval': None, 'ignore_modifiers': False, '_tdw_grab_broken_conninfo': None, '_grab_widget': None, '_ScrollableModeMixin__total_dy': 0.0, 'doc': <gui.document.Document object at 0x7f9ff11724d0>, 'start_x': None, 'start_y': None, '_start_button': None, '_line_possible': False, '_BrushworkModeMixin__first_begin': True, '_BrushworkModeMixin__active_brushwork': {}}), 'None': ('builtin', None)}
KeyError: 'inactive_cursor'
```

and

Traceback (most recent call last):
  File "/usr/share/mypaint/gui/document.py", line 635, in motion_notify_cb
    CanvasController.motion_notify_cb(self, tdw, event)
  File "/usr/share/mypaint/gui/document.py", line 121, in motion_notify_cb
    result = mode.motion_notify_cb(tdw, event)
  File "/usr/share/mypaint/gui/mode.py", line 1128, in motion_notify_cb
    self.drag_update_cb(tdw, event, dx, dy)
  File "/usr/share/mypaint/gui/linemode.py", line 290, in drag_update_cb
    self.update_position(event.x, event.y)
  File "/usr/share/mypaint/gui/linemode.py", line 406, in update_position
    self.lx, self.ly = self.tdw.display_to_model(x, y)
AttributeError: 'StraightMode' object has no attribute 'tdw'
Traceback (most recent call last):
  File "/usr/share/mypaint/gui/document.py", line 635, in motion_notify_cb
    CanvasController.motion_notify_cb(self, tdw, event)
  File "/usr/share/mypaint/gui/document.py", line 121, in motion_notify_cb
    result = mode.motion_notify_cb(tdw, event)
  File "/usr/share/mypaint/gui/mode.py", line 1128, in motion_notify_cb
    self.drag_update_cb(tdw, event, dx, dy)
  File "/usr/share/mypaint/gui/linemode.py", line 290, in drag_update_cb
    self.update_position(event.x, event.y)
  File "/usr/share/mypaint/gui/linemode.py", line 406, in update_position
    self.lx, self.ly = self.tdw.display_to_model(x, y)
AttributeError: 'StraightMode' object has no attribute 'tdw'
Traceback (most recent call last):
  File "/usr/share/mypaint/gui/document.py", line 623, in button_release_cb
    return CanvasController.button_release_cb(self, tdw, event)
  File "/usr/share/mypaint/gui/document.py", line 114, in button_release_cb
    result = mode.button_release_cb(tdw, event)
  File "/usr/share/mypaint/gui/mode.py", line 436, in button_release_cb
    return super(ScrollableModeMixin, self).button_release_cb(tdw, event)
  File "/usr/share/mypaint/gui/mode.py", line 1117, in button_release_cb
    self._stop_drag()
  File "/usr/share/mypaint/gui/mode.py", line 929, in _stop_drag
    self.drag_stop_cb(tdw)
  File "/usr/share/mypaint/gui/linemode.py", line 298, in drag_stop_cb
    self.stop_command()
  File "/usr/share/mypaint/gui/linemode.py", line 411, in stop_command
    x, y = self.process_line()
  File "/usr/share/mypaint/gui/linemode.py", line 460, in process_line
    sx, sy = self.sx, self.sy
AttributeError: 'StraightMode' object has no attribute 'sx'
Traceback (most recent call last):
  File "/usr/share/mypaint/gui/document.py", line 2030, in mode_radioaction_changed_cb
    self.modes.context_push(mode)
  File "/usr/share/mypaint/gui/mode.py", line 1307, in context_push
    self._stack.pop(-1).leave()
  File "/usr/share/mypaint/gui/linemode.py", line 271, in leave
    rootstack.current_path_updated -= self._update_cursors
  File "/usr/share/mypaint/lib/observable.py", line 315, in __isub__
    self.observers.remove(_wrap_observer(observer))
ValueError: list.remove(x): x not in list
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Traceback (most recent call last):
  File "/usr/share/mypaint/gui/document.py", line 2030, in mode_radioaction_changed_cb
    self.modes.context_push(mode)
  File "/usr/share/mypaint/gui/mode.py", line 1314, in context_push
    mode.enter(doc=self._doc)
  File "/usr/share/mypaint/gui/inktool.py", line 189, in enter
    super(InkingMode, self).enter(doc, **kwds)
  File "/usr/share/mypaint/gui/mode.py", line 428, in enter
    return super(ScrollableModeMixin, self).enter(doc, **kwds)
  File "/usr/share/mypaint/gui/mode.py", line 1056, in enter
    if self.__dict__['inactive_cursor'] is None:
KeyError: 'inactive_cursor'
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

Comment 4 Fedora Update System 2018-03-27 11:28:34 UTC
zmap-2.1.1-7.fc28 tlog-4-3.fc28 systemtap-3.2-8.fc28 syslog-ng-3.14.1-4.fc28 sway-0.15.1-3.fc28 strongswan-5.6.2-2.fc28 riemann-c-client-1.9.0-10.fc28 postgis-2.4.3-3.fc28 opensips-2.3.3-3.fc28 openhpi-3.7.0-5.fc28 newsbeuter-2.9-9.fc28 ndctl-59.2-2.fc28 mypaint-1.2.1-18.fc28 libvmi-0.11.0-13.20170706gite919365.fc28 libverto-jsonrpc-0.1.0-19.fc28 libu2f-server-1.0.1-12.fc28 libu2f-host-1.1.4-3.fc28 libstorj-1.0.2-5.fc28 libreport-2.9.3-8.fc28 libmypaint-1.3.0-7.fc28 lcgdm-dav-0.20.0-2.fc28 json-c-0.13.1-1.fc28 gluster-block-0.3-5.fc28 girara-0.2.7-7.fc28 gfal2-2.15.3-2.fc28 gdcm-2.8.4-5.fc28 gdal-2.2.4-2.fc28 fwts-18.01.00-2.fc28 freeradius-3.0.15-12.fc28 filezilla-3.32.0-0.rc1.fc28.1 fastd-18-9.fc28 device-mapper-multipath-0.7.4-2.git07e7bd5.fc28 cryptsetup-2.0.2-2.fc28 bluez-5.49-2.fc28 abrt-2.10.8-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-a2b3791b2b

Comment 5 Fedora Update System 2018-03-27 11:41:39 UTC
abrt-2.10.8-2.fc28 bluez-5.49-2.fc28 cryptsetup-2.0.2-2.fc28 device-mapper-multipath-0.7.4-2.git07e7bd5.fc28 fastd-18-9.fc28 filezilla-3.32.0-0.rc1.fc28.1 freeradius-3.0.15-12.fc28 fwts-18.01.00-2.fc28 gdal-2.2.4-2.fc28 gdcm-2.8.4-5.fc28 gfal2-2.15.3-2.fc28 girara-0.2.7-7.fc28 gluster-block-0.3-5.fc28 json-c-0.13.1-1.fc28 lcgdm-dav-0.20.0-2.fc28 libmypaint-1.3.0-7.fc28 libreport-2.9.3-8.fc28 libstorj-1.0.2-5.fc28 libu2f-host-1.1.4-3.fc28 libu2f-server-1.0.1-12.fc28 libverto-jsonrpc-0.1.0-19.fc28 libvmi-0.11.0-13.20170706gite919365.fc28 mypaint-1.2.1-18.fc28 ndctl-59.2-2.fc28 newsbeuter-2.9-9.fc28 openhpi-3.7.0-5.fc28 opensips-2.3.3-3.fc28 postgis-2.4.3-3.fc28 riemann-c-client-1.9.0-10.fc28 strongswan-5.6.2-2.fc28 sway-0.15.1-3.fc28 syslog-ng-3.14.1-4.fc28 systemtap-3.2-8.fc28 tlog-4-3.fc28 zmap-2.1.1-7.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-a2b3791b2b

Comment 6 Fedora Update System 2018-03-27 11:43:14 UTC
mypaint-1.2.1-15.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-4908df51f5

Comment 7 Fedora Update System 2018-03-27 17:53:51 UTC
abrt-2.10.8-2.fc28, bluez-5.49-2.fc28, cryptsetup-2.0.2-2.fc28, device-mapper-multipath-0.7.4-2.git07e7bd5.fc28, fastd-18-9.fc28, filezilla-3.32.0-0.rc1.fc28.1, freeradius-3.0.15-12.fc28, fwts-18.01.00-2.fc28, gdal-2.2.4-2.fc28, gdcm-2.8.4-5.fc28, gfal2-2.15.3-2.fc28, girara-0.2.7-7.fc28, gluster-block-0.3-5.fc28, json-c-0.13.1-1.fc28, lcgdm-dav-0.20.0-2.fc28, libmypaint-1.3.0-7.fc28, libreport-2.9.3-8.fc28, libstorj-1.0.2-5.fc28, libu2f-host-1.1.4-3.fc28, libu2f-server-1.0.1-12.fc28, libverto-jsonrpc-0.1.0-19.fc28, libvmi-0.11.0-13.20170706gite919365.fc28, mypaint-1.2.1-18.fc28, ndctl-59.2-2.fc28, newsbeuter-2.9-9.fc28, openhpi-3.7.0-5.fc28, opensips-2.3.3-3.fc28, postgis-2.4.3-3.fc28, riemann-c-client-1.9.0-10.fc28, strongswan-5.6.2-2.fc28, sway-0.15.1-3.fc28, syslog-ng-3.14.1-4.fc28, systemtap-3.2-8.fc28, tlog-4-3.fc28, zmap-2.1.1-7.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-a2b3791b2b

Comment 8 Fedora Update System 2018-03-27 21:24:07 UTC
mypaint-1.2.1-15.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-4908df51f5

Comment 9 yucef sourani 2018-03-28 01:16:43 UTC
Tkank you 
solved in mypaint-1.2.1-15.fc27

Comment 10 Fedora Update System 2018-03-29 16:20:51 UTC
mypaint-1.2.1-15.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2018-04-01 00:44:45 UTC
abrt-2.10.8-2.fc28, bluez-5.49-2.fc28, cryptsetup-2.0.2-2.fc28, device-mapper-multipath-0.7.4-2.git07e7bd5.fc28, fastd-18-9.fc28, filezilla-3.32.0-0.rc1.fc28.1, freeradius-3.0.15-12.fc28, fwts-18.01.00-2.fc28, gdal-2.2.4-2.fc28, gdcm-2.8.4-5.fc28, gfal2-2.15.3-2.fc28, girara-0.2.7-7.fc28, gluster-block-0.3-5.fc28, json-c-0.13.1-1.fc28, lcgdm-dav-0.20.0-2.fc28, libmypaint-1.3.0-7.fc28, libreport-2.9.3-8.fc28, libstorj-1.0.2-5.fc28, libu2f-host-1.1.4-3.fc28, libu2f-server-1.0.1-12.fc28, libverto-jsonrpc-0.1.0-19.fc28, libvmi-0.11.0-13.20170706gite919365.fc28, mypaint-1.2.1-18.fc28, ndctl-59.2-2.fc28, newsbeuter-2.9-9.fc28, openhpi-3.7.0-5.fc28, opensips-2.3.3-3.fc28, postgis-2.4.3-3.fc28, riemann-c-client-1.9.0-10.fc28, strongswan-5.6.2-2.fc28, sway-0.15.1-3.fc28, syslog-ng-3.14.1-4.fc28, systemtap-3.2-8.fc28, tlog-4-3.fc28, zmap-2.1.1-7.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.