Bug 471903

Summary: plasma-org.kde.plasma.desktop-appletsrc generates crash in plasma applications, because "screenMapping" variable has excessive length
Product: [Plasma] plasmashell Reporter: antonio <antdev66>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: nate
Priority: NOR    
Version: 5.27.5   
Target Milestone: 1.0   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description antonio 2023-07-03 13:52:27 UTC
Hi,
after making routine updates on Debian, the malfunction indicated above is occurred:
	__vm_enough_memory: pid: nnnn, comm: plasmashell, not enough memory for the allocation

I thought it was a problem related to the new library installed, so I reported the bug:
	https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040140

However, after some tests, I checked that the problem seems to depend on the processes that manage the file:
	~/.config/plasma-org.kde.plasma.desktop-appletsrc
	
since they do not control the maximum length of the "screenmapping" variable, which over time can increase drastically (as in my case) and generate the problem.

I noticed that if this variable is removed, everything works well.

I wanted to ask if a check on the max length of this variable can be inserted, to avoid future problems (or if you can tell me how to disable this behavior).

Thanks,
Antonio


SOFTWARE/OS VERSIONS

Operating System: Debian GNU/Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.8
Kernel Version: 6.4.1-1-liquorix-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Xeon® CPU E31245 @ 3.30GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVD9
Manufacturer: Dell Inc.
Product Name: Precision T1600
System Version: 01
Comment 1 Nate Graham 2023-09-13 18:46:08 UTC

*** This bug has been marked as a duplicate of bug 469445 ***