Bug 1435447

Summary: Pitivi does not work with custom cursor themes under Wayland
Product: [Fedora] Fedora Reporter: Rubén <rlledo>
Component: pitiviAssignee: Gwyn Ciesla <gwync>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 25CC: elad, gwync, ignatenko, otte, wtaymans
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-23 23:02:05 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:
Attachments:
Description Flags
FlatbedCursors Black Regular LH none

Description Rubén 2017-03-23 20:22:59 UTC
Created attachment 1265883 [details]
FlatbedCursors Black Regular LH

Description of problem:
Pitivi does not work with custom cursor themes under Wayland

Version-Release number of selected component (if applicable):
pitivi-0.98-5.fc25.x86_64

Steps to Reproduce:
1. Set a custom cursor theme with gnome-tweak-tool.
2. Open Pitivi.

Actual results:
This log:
Gdk-Message: Unable to load tcross from the cursor theme
Traceback (most recent call last):
  File "/usr/bin/pitivi", line 144, in <module>
    _run_pitivi()
  File "/usr/bin/pitivi", line 128, in _run_pitivi
    from pitivi import application
  File "/usr/lib64/python3.5/site-packages/pitivi/application.py", line 34, in <module>
    from pitivi.mainwindow import MainWindow
  File "/usr/lib64/python3.5/site-packages/pitivi/mainwindow.py", line 47, in <module>
    from pitivi.timeline.timeline import TimelineContainer
  File "/usr/lib64/python3.5/site-packages/pitivi/timeline/timeline.py", line 34, in <module>
    from pitivi.timeline.elements import Clip
  File "/usr/lib64/python3.5/site-packages/pitivi/timeline/elements.py", line 31, in <module>
    from matplotlib.backends.backend_gtk3cairo import FigureCanvasGTK3Cairo as FigureCanvas
  File "/usr/lib64/python3.5/site-packages/matplotlib/backends/backend_gtk3cairo.py", line 6, in <module>
    from . import backend_gtk3
  File "/usr/lib64/python3.5/site-packages/matplotlib/backends/backend_gtk3.py", line 61, in <module>
    cursors.SELECT_REGION : Gdk.Cursor.new(Gdk.CursorType.TCROSS),
TypeError: constructor returned NULL


Expected results:
Pitivi working.

Additional info:
I attach my current custom cursor theme "Flatbed Cursors". Please, notice that I'm left handed. I got it from https://gnome-look.org, although it's no longer available. I haven't got this problem with any other application.

Comment 1 Rubén 2017-03-23 23:02:05 UTC
Solved.
Somehow, this theme is incomplete. To solve this non-bug of Pitivi, change to the cursor theme installation directory and type:

sudo cp cross tcross
sudo cp hand2 hand1

Pitivi then will revive ;)

Regards.