flameshot icon indicating copy to clipboard operation
flameshot copied to clipboard

Process takes too much time to exit

Open krvz61 opened this issue 6 months ago • 4 comments

Flameshot Version

Flameshot v12.1.0 Release (pacman) & v12.1.0 master commit 075a69f with cmake flag -DFLAMESHOT_DEBUG_CAPTURE=ON (compiled from source)

Installation Type

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

Operating System type and version

Arch Linux x86_64

Description

Quite uncertain to say it's flameshot's issue because I cannot find this issue with my laptop, with AMD Integrated Graphics(mesa). But it does not give me any hint so I'm finding help here. Can provide additional system information if needed.

The program was working fine but the issue started to happen after some point, but I do not recall when it was, and what were the packages updated at that moment. At least I'm sure I didn't manually configure system settings or such.

The issue: It works... a bit weird. After confirming, or aborting the screenshot, the session remains for about 20 seconds. Pin image on desktop however does not create the issue, yet the image pinned is freezed when the halt is ongoing. It does not let me open another screenshot session during this halt without forcibly killing the remaining sessions like $ killall flameshot, or toggling Allow multiple flameshot GUI instances simultaneously on Saving image to file, either manually saving, or through Save image after copy, is instant, and the file has no problem. When copying to clipboard, it is registered after the halt, which pretty much is at the same time when flameshot: info: Capture saved to clipboard message shows up in the journal.

The program not give any trace to investigate with. Process exits with code 0.

$ flameshot gui
QFont::fromString: Invalid description 'Bahnschrift,9,-1,5,316,0,0,0,0,0,0,0,0,0,0,1,SemiLight Condensed'
QFont::fromString: Invalid description 'JetBrains Mono,7,-1,5,400,0,0,0,0,0,0,0,0,0,0,1'
QFont::fromString: Invalid description 'Bahnschrift,9,-1,5,316,0,0,0,0,0,0,0,0,0,0,1,SemiLight Condensed'
QFont::fromString: Invalid description 'Bahnschrift,9,-1,5,316,0,0,0,0,0,0,0,0,0,0,1,SemiLight Condensed'
$ # above QFont::fromString: is irrelevant since it also shows in the machine works fine

and this is the journal record:

Jun 11 22:41:36 vzlnx0 systemd[831]: Started Flameshot - Screenshot tool.
Jun 11 22:41:36 vzlnx0 flameshot[147028]: QFont::fromString: Invalid description 'Bahnschrift,9,-1,5,316,0,0,0,0,0,0,0,0,0,0,1,SemiLight Condensed'
Jun 11 22:41:36 vzlnx0 flameshot[147028]: QFont::fromString: Invalid description 'JetBrains Mono,7,-1,5,400,0,0,0,0,0,0,0,0,0,0,1'
Jun 11 22:41:36 vzlnx0 flameshot[147028]: QFont::fromString: Invalid description 'Bahnschrift,9,-1,5,316,0,0,0,0,0,0,0,0,0,0,1,SemiLight Condensed'
Jun 11 22:41:36 vzlnx0 flameshot[147028]: QFont::fromString: Invalid description 'Bahnschrift,9,-1,5,316,0,0,0,0,0,0,0,0,0,0,1,SemiLight Condensed'
Jun 11 22:41:36 vzlnx0 systemd[831]: app-org.flameshot.Flameshot@a77b1cfd8a4f4b9383499f4830ac1e74.service: Main process exited, code=exited, status=1/FAILURE
Jun 11 22:41:36 vzlnx0 systemd[831]: app-org.flameshot.Flameshot@a77b1cfd8a4f4b9383499f4830ac1e74.service: Failed with result 'exit-code'.
Jun 11 22:41:44 vzlnx0 systemd[831]: app-org.flameshot.Flameshot@a344f808cc5b4028ac9b9d7af54bbcc0.service: Consumed 270ms CPU time, 77.7M memory peak.

note: message from app-org.flameshot.Flameshot@a77b1cfd8a4f4b9383499f4830ac1e74.service seems to be only appearing when there was no flameshot process was in the background before. Also appears when you try to open another flameshot session when condition is not met(see above).

Abnormality found when FIRST running compiled-from-source flameshot gui; Doesn't seem to be related but just in case might help

Jun 11 22:01:11 vzlnx0 systemd[831]: Started dbus-:[email protected].
...
Jun 11 22:01:36 vzlnx0 flameshot[47493]: flameshot: info: Capture saved to clipboard.
Jun 11 22:01:36 vzlnx0 systemd-coredump[71673]: Process 70856 (flameshot) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Jun 11 22:01:36 vzlnx0 systemd[1]: Created slice Slice /system/drkonqi-coredump-processor.
Jun 11 22:01:36 vzlnx0 systemd[1]: Created slice Slice /system/systemd-coredump.
Jun 11 22:01:36 vzlnx0 systemd[1]: Started Process Core Dump (PID 71673/UID 0).
Jun 11 22:01:36 vzlnx0 systemd[1]: Started Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
Jun 11 22:01:36 vzlnx0 systemd-coredump[71674]: [🡕] Process 70856 (flameshot) of user 1000 dumped core.
                                                
                                                Stack trace of thread 70856:
                                                #0  0x00007f1a872a774c n/a (libc.so.6 + 0x9774c)
                                                #1  0x00007f1a8724ddc0 raise (libc.so.6 + 0x3ddc0)
                                                #2  0x00007f1a8723557a abort (libc.so.6 + 0x2557a)
                                                #3  0x00007f1a872365c9 n/a (libc.so.6 + 0x265c9)
                                                #4  0x00007f1a872b1a35 n/a (libc.so.6 + 0xa1a35)
                                                #5  0x00007f1a872b28ac n/a (libc.so.6 + 0xa28ac)
                                                #6  0x00007f1a872b3a90 n/a (libc.so.6 + 0xa3a90)
                                                #7  0x00007f1a872b3fb4 n/a (libc.so.6 + 0xa3fb4)
                                                #8  0x00007f1a872b6e52 __libc_free (libc.so.6 + 0xa6e52)
                                                #9  0x00007f1a7261af91 n/a (libnvidia-glcore.so.575.57.08 + 0xa1af91)
                                                #10 0x00007f1a7268f299 n/a (libnvidia-glcore.so.575.57.08 + 0xa8f299)
                                                #11 0x00007f1a72692451 n/a (libnvidia-glcore.so.575.57.08 + 0xa92451)
                                                #12 0x00007f1a72683b6e n/a (libnvidia-glcore.so.575.57.08 + 0xa83b6e)
                                                #13 0x00007f1a7265d33b n/a (libnvidia-glcore.so.575.57.08 + 0xa5d33b)
                                                #14 0x00007f1a72671685 n/a (libnvidia-glcore.so.575.57.08 + 0xa71685)
                                                #15 0x00007f1a800827c7 n/a (libGLX_nvidia.so.0 + 0x517c7)
                                                #16 0x00007f1a80082eef n/a (libGLX_nvidia.so.0 + 0x51eef)
                                                #17 0x00007f1a80114009 n/a (libGLX_nvidia.so.0 + 0xe3009)
                                                #18 0x00007f1a872505e1 n/a (libc.so.6 + 0x405e1)
                                                #19 0x00007f1a872506be exit (libc.so.6 + 0x406be)
                                                #20 0x00007f1a872376bc n/a (libc.so.6 + 0x276bc)
                                                #21 0x00007f1a87237769 __libc_start_main (libc.so.6 + 0x27769)
                                                #22 0x00005596410ffac5 _start (/home/Vz61/tmp/flameshot/build/src/flameshot + 0x7cac5)
                                                
                                                Stack trace of thread 70859:
                                                #0  0x00007f1a872ade22 n/a (libc.so.6 + 0x9de22)
                                                #1  0x00007f1a872a1fda n/a (libc.so.6 + 0x91fda)
                                                #2  0x00007f1a872a2024 n/a (libc.so.6 + 0x92024)
                                                #3  0x00007f1a8731c05e __poll (libc.so.6 + 0x10c05e)
                                                #4  0x00007f1a85de220b n/a (libxcb.so.1 + 0xd20b)
                                                #5  0x00007f1a85de3f3d xcb_wait_for_event (libxcb.so.1 + 0xef3d)
                                                #6  0x00007f1a8365d6e9 n/a (libQt6XcbQpa.so.6 + 0x566e9)
                                                #7  0x00007f1a87b1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                #8  0x00007f1a872a57eb n/a (libc.so.6 + 0x957eb)
                                                #9  0x00007f1a8732918c n/a (libc.so.6 + 0x11918c)
                                                
                                                Stack trace of thread 70868:
                                                #0  0x00007f1a872ade22 n/a (libc.so.6 + 0x9de22)
                                                #1  0x00007f1a872a1fda n/a (libc.so.6 + 0x91fda)
                                                #2  0x00007f1a872a264c n/a (libc.so.6 + 0x9264c)
                                                #3  0x00007f1a872a4f28 pthread_cond_timedwait (libc.so.6 + 0x94f28)
                                                #4  0x00007f1a87b2dd25 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x32d>
                                                #5  0x00007f1a87b27c40 n/a (libQt6Core.so.6 + 0x327c40)
                                                #6  0x00007f1a87b1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                #7  0x00007f1a872a57eb n/a (libc.so.6 + 0x957eb)
                                                #8  0x00007f1a8732918c n/a (libc.so.6 + 0x11918c)
                                                
                                                Stack trace of thread 70867:
                                                #0  0x00007f1a872ade22 n/a (libc.so.6 + 0x9de22)
                                                #1  0x00007f1a872a1fda n/a (libc.so.6 + 0x91fda)
                                                #2  0x00007f1a872a264c n/a (libc.so.6 + 0x9264c)
                                                #3  0x00007f1a872a4f28 pthread_cond_timedwait (libc.so.6 + 0x94f28)
                                                #4  0x00007f1a87b2dd25 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x32d>
                                                #5  0x00007f1a87b27c40 n/a (libQt6Core.so.6 + 0x327c40)
                                                #6  0x00007f1a87b1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                #7  0x00007f1a872a57eb n/a (libc.so.6 + 0x957eb)
                                                #8  0x00007f1a8732918c n/a (libc.so.6 + 0x11918c)
                                                
                                                Stack trace of thread 70869:
                                                #0  0x00007f1a872ade22 n/a (libc.so.6 + 0x9de22)
                                                #1  0x00007f1a872a1fda n/a (libc.so.6 + 0x91fda)
                                                #2  0x00007f1a872a264c n/a (libc.so.6 + 0x9264c)
                                                #3  0x00007f1a872a4f28 pthread_cond_timedwait (libc.so.6 + 0x94f28)
                                                #4  0x00007f1a87b2dd25 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x32d>
                                                #5  0x00007f1a87b27c40 n/a (libQt6Core.so.6 + 0x327c40)
                                                #6  0x00007f1a87b1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                #7  0x00007f1a872a57eb n/a (libc.so.6 + 0x957eb)
                                                #8  0x00007f1a8732918c n/a (libc.so.6 + 0x11918c)
                                                
                                                Stack trace of thread 70871:
                                                #0  0x00007f1a872ade22 n/a (libc.so.6 + 0x9de22)
                                                #1  0x00007f1a872a1fda n/a (libc.so.6 + 0x91fda)
                                                #2  0x00007f1a872a264c n/a (libc.so.6 + 0x9264c)
                                                #3  0x00007f1a872a4f28 pthread_cond_timedwait (libc.so.6 + 0x94f28)
                                                #5  0x00007f1a85de3f3d xcb_wait_for_event (libxcb.so.1 + 0xef3d)
                                                #6  0x00007f1a8365d6e9 n/a (libQt6XcbQpa.so.6 + 0x566e9)
                                                #7  0x00007f1a87b1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                #8  0x00007f1a872a57eb n/a (libc.so.6 + 0x957eb)
                                                #9  0x00007f1a8732918c n/a (libc.so.6 + 0x11918c)
                                                
                                                Stack trace of thread 70868:
                                                #0  0x00007f1a872ade22 n/a (libc.so.6 + 0x9de22)
                                                #1  0x00007f1a872a1fda n/a (libc.so.6 + 0x91fda)
                                                #2  0x00007f1a872a264c n/a (libc.so.6 + 0x9264c)
                                                #3  0x00007f1a872a4f28 pthread_cond_timedwait (libc.so.6 + 0x94f28)
                                                #4  0x00007f1a87b2dd25 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x32d>
                                                #5  0x00007f1a87b27c40 n/a (libQt6Core.so.6 + 0x327c40)
                                                #6  0x00007f1a87b1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                #7  0x00007f1a872a57eb n/a (libc.so.6 + 0x957eb)
                                                #8  0x00007f1a8732918c n/a (libc.so.6 + 0x11918c)
                                                
                                                Stack trace of thread 70867:
                                                #0  0x00007f1a872ade22 n/a (libc.so.6 + 0x9de22)
                                                #1  0x00007f1a872a1fda n/a (libc.so.6 + 0x91fda)
                                                #2  0x00007f1a872a264c n/a (libc.so.6 + 0x9264c)
                                                #3  0x00007f1a872a4f28 pthread_cond_timedwait (libc.so.6 + 0x94f28)
                                                #4  0x00007f1a87b2dd25 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x32d>
                                                #5  0x00007f1a87b27c40 n/a (libQt6Core.so.6 + 0x327c40)
                                                #6  0x00007f1a87b1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                #7  0x00007f1a872a57eb n/a (libc.so.6 + 0x957eb)
                                                #8  0x00007f1a8732918c n/a (libc.so.6 + 0x11918c)
                                                
                                                Stack trace of thread 70869:
                                                #0  0x00007f1a872ade22 n/a (libc.so.6 + 0x9de22)
                                                #1  0x00007f1a872a1fda n/a (libc.so.6 + 0x91fda)
                                                #2  0x00007f1a872a264c n/a (libc.so.6 + 0x9264c)
                                                #3  0x00007f1a872a4f28 pthread_cond_timedwait (libc.so.6 + 0x94f28)
                                                #4  0x00007f1a87b2dd25 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x32d>
                                                #5  0x00007f1a87b27c40 n/a (libQt6Core.so.6 + 0x327c40)
                                                #6  0x00007f1a87b1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                #7  0x00007f1a872a57eb n/a (libc.so.6 + 0x957eb)
                                                #8  0x00007f1a8732918c n/a (libc.so.6 + 0x11918c)
                                                
                                                Stack trace of thread 70871:
                                                #0  0x00007f1a872ade22 n/a (libc.so.6 + 0x9de22)
                                                #1  0x00007f1a872a1fda n/a (libc.so.6 + 0x91fda)
                                                #2  0x00007f1a872a264c n/a (libc.so.6 + 0x9264c)
                                                #3  0x00007f1a872a4f28 pthread_cond_timedwait (libc.so.6 + 0x94f28)
                                                #4  0x00007f1a87b2dd25 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x32d>
                                                #5  0x00007f1a87b27c40 n/a (libQt6Core.so.6 + 0x327c40)
                                                #6  0x00007f1a87b1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                #7  0x00007f1a872a57eb n/a (libc.so.6 + 0x957eb)
                                                #8  0x00007f1a8732918c n/a (libc.so.6 + 0x11918c)
                                                
                                                Stack trace of thread 70870:
                                                #0  0x00007f1a872ade22 n/a (libc.so.6 + 0x9de22)
                                                #1  0x00007f1a872a1fda n/a (libc.so.6 + 0x91fda)
                                                #2  0x00007f1a872a264c n/a (libc.so.6 + 0x9264c)
                                                #3  0x00007f1a872a4f28 pthread_cond_timedwait (libc.so.6 + 0x94f28)
                                                #4  0x00007f1a87b2dd25 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x32d>
                                                #5  0x00007f1a87b27c40 n/a (libQt6Core.so.6 + 0x327c40)
                                                #6  0x00007f1a87b1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                #7  0x00007f1a872a57eb n/a (libc.so.6 + 0x957eb)
                                                #8  0x00007f1a8732918c n/a (libc.so.6 + 0x11918c)
                                                
                                                Stack trace of thread 70872:
                                                #0  0x00007f1a872ade22 n/a (libc.so.6 + 0x9de22)
                                                #1  0x00007f1a872a1fda n/a (libc.so.6 + 0x91fda)
                                                #2  0x00007f1a872a264c n/a (libc.so.6 + 0x9264c)
                                                #3  0x00007f1a872a4f28 pthread_cond_timedwait (libc.so.6 + 0x94f28)
                                                #4  0x00007f1a87b2dd25 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x32d>
                                                #5  0x00007f1a87b27c40 n/a (libQt6Core.so.6 + 0x327c40)
                                                #6  0x00007f1a87b1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                #7  0x00007f1a872a57eb n/a (libc.so.6 + 0x957eb)
                                                #8  0x00007f1a8732918c n/a (libc.so.6 + 0x11918c)
                                                ELF object binary architecture: AMD x86-64

Steps to reproduce

  1. run flameshot gui
  2. Do anything to exit screenshot. save, copy to clipboard, abort, whatever.
  3. it will take around 20-25 seconds for the process to finish

Screenshots or screen recordings

https://github.com/user-attachments/assets/38443106-4c50-4307-a20b-8db066673eeb

System Information

System 1 Arch Linux x86_64 Linux 6.15.1-arch1-2 (pacman) KDE Plasma 6.3.5 Kwin (X11) -- Running on Wayland does not help Intel(R) Core(TM) i5-10400F (12) @ 4.30 GHz NVIDIA Geforce RTX 2060 [discrete]

System 2 (No issue found in this machine) (Same software environment) AMD Ryzen 7 7730U (16) @ 4.55GHz AMD Barcelo [Integrated]

krvz61 avatar Jun 11 '25 14:06 krvz61

Only with this flag?

DFLAMESHOT_DEBUG_CAPTURE=ON

borgmanJeremy avatar Jun 11 '25 21:06 borgmanJeremy

Yes, tested with both arch linux package and built-from-source executable with $ cmake -DFLAMESHOT_DEBUG_CAPTURE; make (I did not "install" this one, let me know if this does matter) and same issue occurs

krvz61 avatar Jun 12 '25 02:06 krvz61

Could you remove that flag and issue a clean build? It should not be used for production environments, it's only intended to allow you to attach a debugger without flameshot hogging the screen.

borgmanJeremy avatar Jun 12 '25 10:06 borgmanJeremy

Could you remove that flag and issue a clean build? It should not be used for production environments, it's only intended to allow you to attach a debugger without flameshot hogging the screen.

Just did that, issue still persists.

krvz61 avatar Jun 12 '25 11:06 krvz61

Closing, as reinstalling my system fixed the issue although I do still wonder what could possibly go wrong for this to happen. Sorry for bothering

krvz61 avatar Jul 04 '25 12:07 krvz61