Bug 1442612 - TypeError: constructor returned NULL
Summary: TypeError: constructor returned NULL
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: 26
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-16 12:42 UTC by yucef sourani
Modified: 2017-04-29 15:49 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-04-29 15:49:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description yucef sourani 2017-04-16 12:42:23 UTC
virt-manager-1.4.1-2.fc26.src.rpm
virt-manager-common-1.4.1-2.fc26.noarch

4.11.0-0.rc6.git0.1.fc26.x86_64





Error:

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 302, in _exit_if_necessary
    self._thread_finished()
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 280, in _thread_finished
    self._finish_cb(error, details, *self._finish_args)
  File "/usr/share/virt-manager/virtManager/create.py", line 2237, in _install_finished_cb
    self._undo_finish_cursor(parentobj.topwin)
  File "/usr/share/virt-manager/virtManager/create.py", line 2178, in _undo_finish_cursor
    Gdk.Cursor.new(Gdk.CursorType.TOP_LEFT_ARROW))
TypeError: constructor returned NULL

Comment 1 Pavel Grunt 2017-04-18 08:06:50 UTC
Interesting, probably not available on wayland... Per gtk docs it is better to use the platform independent gdk_cursor_new_from_name() instead of X specific cursor types 

https://developer.gnome.org/gdk3/stable/gdk3-Cursors.html#gdk-cursor-new-from-name

https://developer.gnome.org/gdk3/stable/gdk3-Cursors.html#GdkCursorType

Comment 2 Cole Robinson 2017-04-27 18:20:38 UTC
Doesn't reproduce for me on f26 + gnome-shell + wayland with the default theme. Reporter, what desktop are you using? Any non-default themes installed? There's similar errors that sound theme related:

https://bugzilla.redhat.com/show_bug.cgi?id=1435447
https://bugzilla.redhat.com/show_bug.cgi?id=1408506

Comment 3 yucef sourani 2017-04-29 12:07:02 UTC
gnome shell on wayland .

mosue cursor theme : Capitain-cursor.

after switching cursor theme from Capitain-cursor to Adwaita it works,thank you.


Note You need to log in before you can comment on or make changes to this bug.