sorry I did not understood how it happen. When I studied with krita (4.1.8)and it was still run, and I removed my wacom device. I would zoom work, and my gnome session down. I saw black screen, I type something an nothing happen, but gdm still run. I had to log in again.
I used to have problems with krita in gnome + wayland, I always switched to gnome + xorg.
so sorry My mistake. I use xorg. wayland had some problematic my monitor and wacom.