Flameshot aborts on Wayland/GNOME

Thank you for your response. I really appreciate it. However I didn’t understand many parts of your response.

But I think it somehow fixed my problem too. But, when I launch it from tray it works well. I used to set up a shortcut for “flameshot gui“ command. But it is not working right now anyways.

Logs:

✦ ❯ flameshot gui
QLayout: Attempting to add QLayout “” to SidePanelWidget “”, which already has a layout
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setCompositionMode: Painter not active
QPainter::translate: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawEllipse: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawEllipse: Painter not active
qt.qpa.wayland.textinput: virtual void QtWaylandClient::QWaylandTextInputv3::zwp_text_input_v3_leave(wl_surface\*) Got leave event for surface 0x0 with focusing surface 0x644df4cb5330