Bug 433875

Summary: Xorg-session.log fills itself with errors and grows absurdly large (led to a system crash on my computer)
Product: [Applications] kgpg Reporter: bachirgiga <bachirgiga>
Component: generalAssignee: Rolf Eike Beer <kde>
Status: REPORTED ---    
Severity: major    
Priority: NOR    
Version First Reported In: 20.12.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description bachirgiga@gmail.com 2021-03-02 20:29:17 UTC
SUMMARY

When an invalid path to the GnuPG configuration file is specified and KGpg is set to start when the xorg session start, it will fill the xorg-session.log with errors until the system crashes because it has no more disk space left

STEPS TO REPRODUCE
1. Set KGpg to start with the session in KGpg settings
2. Provide an invalid path to the GnuPG configuration file in KGpg

OBSERVED RESULT

The xorg-session.log (located in ~/.local/share/sddm/xorg-session.log) if you are using SDDM) fills itself with errors stating that the provided path is invalid. The file ends up being very large and fills at several Mb per seconds on my computer (it reached 300Gb in a few hours :D )

EXPECTED RESULT

The error is logged once (or finite amount really)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.21.1
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Comment 1 Rolf Eike Beer 2021-03-03 06:11:01 UTC
When I start kgpg from a terminal I see that message about 5 times, and then it stops. More lines only show up when I try to do anything, like refresh the key list.
Comment 2 bachirgiga@gmail.com 2021-03-03 13:13:58 UTC
(In reply to Rolf Eike Beer from comment #1)
> When I start kgpg from a terminal I see that message about 5 times, and then
> it stops. More lines only show up when I try to do anything, like refresh
> the key list.

Have you tried to start it by setting it to autostart with the Xorg session ?