GNOME Bugzilla – Bug 779388
wayland: crash when changing cursor theme from inspector
Last modified: 2018-05-02 18:12:06 UTC
I installed the elementary¹ cursor theme to test out a bug. When selecting it from the inspector, I got the following crash.
+ Trace 237207
¹ https://github.com/snwh/elementary-cursors
Odd, I tried setting the same cursor theme from gnome-tweak-tools and it worked.
Right before that, i got some warning about empty wl cursor structures, but I mistakenly forgot to copy it, oops!
I cannot reproduce with the inspector either... running gtk3-demo from current gtk-3-22 branch, startign the inspector and changing the cursor there (and size) works here... Can you provide the full backtrace maybe? The image index is 0 so unlikely the problem, and the cursor is not null when entering _gdk_wayland_cursor_get_buffer() and the code checks for wayland_cursor->wl_cursor being non-null so best bet is wayland_cursor->wl_cursor->images but cannot get to this using just a simple backtrace.
That is indeed what I was testing, we were using GDK_SB_H_DOUBLE_ARROW and GDK_SB_V_DOUBLE_ARROW instead of the cursor-name based col-resize/row-resize (and it was missing from their theme). I don't have access to it anymore, but I'll see if I can reproduce again.
Can we get a quick-and-dirty testcase that uses the enums instead of the names ?
The complicating factor is that we have to build it into a flatpak i think.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/773.