flameshot icon indicating copy to clipboard operation
flameshot copied to clipboard

Freezes whole desktop

Open hissssst opened this issue 2 years ago • 17 comments

Flameshot Version

Flameshot v11.0.0 (-) Compiled with Qt 5.15.3

Installation Type

Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)

Operating System type and version

Nixos

Description

Whole desktop gets frozen. It's not a memory leak, because earlyoom doesn't kill the flameshot

Steps to reproduce

  1. just run it. Any configuration or options will do
  2. During filechooser dialog it gets frozen

Screenshots or screen recordings

No response

System Information

Sway

hissssst avatar May 26 '22 19:05 hissssst

Have you followed the guide for setting up flameshot on sway? Do you have a notification manager like dunst installed and configured?

borgmanJeremy avatar May 26 '22 19:05 borgmanJeremy

Yeah, I have notification manager installed and configured

hissssst avatar May 26 '22 20:05 hissssst

When you say "just run it" what specifically are you doing? @nullobsi merged sway support and I believe it works for them.

borgmanJeremy avatar May 26 '22 20:05 borgmanJeremy

I run flameshot gui. It freezes when I run it from shell in VT in sway or when I run it from bind in sway

hissssst avatar May 26 '22 20:05 hissssst

By the way, it happens every time I run it

hissssst avatar May 26 '22 20:05 hissssst

I've just tested and this issue occurs even when flameshot started as a service and not

hissssst avatar May 26 '22 22:05 hissssst

Do you have a any big rise in IO?

mmahmoudian avatar May 27 '22 07:05 mmahmoudian

How do I check it?

hissssst avatar May 27 '22 15:05 hissssst

To check IO you can use iotop for example.

mmahmoudian avatar May 27 '22 21:05 mmahmoudian

Yeah, but my system gets completely frozen, how do I record this

hissssst avatar May 29 '22 23:05 hissssst

If you have IO problem, recording it is not a good idea as almost all screen recording software write to disk while recording, but if you want to give this a try, I can recommend installing peek.

mmahmoudian avatar May 31 '22 05:05 mmahmoudian

Yeah, I know that screen recording is not a good idea, perhaps you know some IO usage top which can just append to the tail of file and don't corrupt it when the system is restarted. Any suggestions?

hissssst avatar Jun 02 '22 01:06 hissssst

Actually a better route would be to run flameshot in a debugger and see where it gets stuck. I strongly suspect this is an issue with your notification daemon or d-bus on your pc.

borgmanJeremy avatar Jun 02 '22 01:06 borgmanJeremy

What debugger would you suggest? gdb?

hissssst avatar Jun 02 '22 01:06 hissssst

For a non c++ dev the easiest way to do it would be to build the project from source using QtCreator. Then you can use the graphical version of GDB. Make sure you set the Cmake option "FLAMESHOT_DEBUG_CAPTURE" which will let you alt tab rather than freezing the screen.

If you are an experienced GDB user, yeah you can use it from the CLI.

borgmanJeremy avatar Jun 02 '22 01:06 borgmanJeremy

I've just reproduced this bug in export/import dialog in flameshot config

hissssst avatar Sep 14 '22 11:09 hissssst

By the way, I don't think I have time to debug this using gdb. But I can share the VM image of my setup upon which you can perform tests

hissssst avatar Sep 14 '22 11:09 hissssst

I'd like to help on resolving the same problem by providing the necessary info: I have the same issue.

I'm using arch, with i3wm as WM.

MarkGotLasagna avatar Jan 19 '23 16:01 MarkGotLasagna

@MarkGotLasagna what is your Flameshot version, how many monitors do you have, with what configuration, how have you installed Flameshot (pacman, AUR, Flatpak, Snap, AppImage,...) how are you running Flameshot (one-off mode or daemon mode, gui or screen or full), when does it freeze (during starting, when you copy, when you are writing to disk,...)

mmahmoudian avatar Jan 22 '23 09:01 mmahmoudian

  • Version: Flameshot v12.1.0 (-) Compiled with Qt 5.15.5
  • Monitors: 2 (eDP-i, HDMI-1)
  • Configuration: default configuration (unchanged)
  • Installed with: pacman
  • Command: flameshot gui

The whole desktop freezes as I click on any interactive icon within the flameshot gui (can still tty). Using key combinations DOES NOT crash the app (key press combination Ctrl + C: to copy to clipboard, Ctrl + S: save, ecc.).

MarkGotLasagna avatar Jan 24 '23 12:01 MarkGotLasagna

@MarkGotLasagna do you mean that even for drawing an arrow it crashes? or is it only for when you copy or save the screenshot?

mmahmoudian avatar Jan 24 '23 12:01 mmahmoudian

@MarkGotLasagna do you mean that even for drawing an arrow it crashes? or is it only for when you copy or save the screenshot?

I failed to reproduce the issue. The app works as intended. Last time it freezed, I made sure to restart my device to rule out any possible interference.

Last time I checked, the app freezed only when interacting with circled elements of the UI (the buttons to copy/paste, save, open app to share, ecc.).

MarkGotLasagna avatar Jan 24 '23 12:01 MarkGotLasagna

@MarkGotLasagna this issue is not about app crash

hissssst avatar Jan 30 '23 15:01 hissssst

@MarkGotLasagna this issue is not about app crash

That's right, the issue is about the app freezing the whole desktop.

I fixed the response.

MarkGotLasagna avatar Jan 30 '23 16:01 MarkGotLasagna