Gnome-Shell crashes when dragging in overview mode! "Oh no! Something went wrong"

Hello folks, :wave:

I am just checking in, because I was searching for a solution for aaaages. Now that I have it, I want to help everybody having the same issue, solve it as well.

Issue:
Whenever I went to “overview screen” in Gnome-Shell (Windows Key), and tied to move an open window, the system crashed with “Oh no! Something went wrong” and logged me out. Discarding unsaved stuff. :skull:

I tracked it down with journal-ctl to:

No cursor theme available, please install a cursor theme
gnome-shell[9341]: Received an X Window System error.
                   This probably reflects a bug in the program.
                   The error was 'BadCursor (invalid Cursor parameter)'.
                   (Details: serial 30266 error_code 6 request_code 95 (core protocol) minor_code 0)
                   (Note to programmers: normally, X errors are reported asynchronously;
                   that is, you will receive the error a while after causing it.
                   To debug your program, run it with the MUTTER_SYNC environment
                   variable to change this behavior. You can then get a meaningful
                   backtrace from your debugger if you break on the mtk_x_error() function.)

Many posts on the internet tried to connect this to xorg, wayland or any version or customization. All unrelated. :woman_shrugging:

What it is:
When moving/dragging a window the mouse cursor changes. Specifically it changes to dnd-none. If mutter doesn’t find this, it crashes. So it is a bug in mutter. I don’t know which, it is quite old. I found some issue in an old code repository but that moved. So… feel free to add the current bug in the comments and/or add similar reports!

Solution:
Make sure dnd-none exists. As I was using uncustomized, plain Adwaita icon theme, I don’t know why it was missing. Just do:

sudo ln -s /usr/share/icons/Adwaita/cursors/dnd-move /usr/share/icons/Adwaita/cursors/dnd-none

This creates a link for the dnd-none icon to the dnd-move icon, which I had.

That’s it. I saw this issue reported for a variety of distros. I myself use Gentoo. Others had this in Ubuntu. No clue, how a file goes missing. Anyhow, mutter should not expect any mouse cursor to be provided and otherwise crash this hard. I know better ways how to waste time! :kissing_heart:

Cheers.

PS: It still scares the shit out of me, when I move the mouse and accidentally the overview screen zoomes out! I always expect to have lost my unsaved work! This is a real trauma! :scream:

I myself use Gentoo.

Any chance this is a downstream Gentoo issue? Also what version of GNOME was this on?

No. This is a mutter issue!

As I actually wrote at the point in my post you were quoting me from:
I saw this issue reported for a variety of distros. I myself use Gentoo. Others had this in Ubuntu.

Are you trolling me!?!

What is your cursor theme set to?

And please don’t be upset at someone for asking questions. That is part of how troubleshooting works! There were two questions asked and the other one is kind of important.

No. I am upset when people just don’t read!

My set theme is in my post:
I was using uncustomized, plain Adwaita icon theme

Are you trolling me now too?

Concerning the question for the Gnome version you both asked, it’s also in my post:
Many posts on the internet tried to connect this to […] any version […]. All unrelated.

You may think: this is not true for sure it’s related. I can say this: I really searched the internet a lot to find a solution. On problem was that when people reported or asked about the issue, others just cluttered the space with pity distraction about really anything, like which version, post more logs, did you turn it off and on again… and it’s a nuisance!

I just PROVIDED A SOLUTION here!

If you are academically interested or even want to fix mutter, then just try to reproduce it for youself:

How to reproduce:

sudo rm /usr/share/icons/Adwaita/cursors/dnd-none

… or respectively targeting your custom icon theme.

So, that’s all I have to say. Bye! :wave:

PPS: Tried to curse and cancel my account here. Both is not possible in this Discourse community.