Bug 357360

Summary: Kate makes huge leak in Xorg
Product: [Applications] kate Reporter: Anthony Fieroni <bvbfan>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: major CC: fkoch1980, philr
Priority: NOR    
Version: 5.0.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Anthony Fieroni 2015-12-31 08:22:36 UTC
I can't notice who is responsive for this, Kate, itself, KTextEditor or plugin. Closing Kate not cleaning resources from Xorg. Make simple script
#!/bin/bash
for i in {1..10}
do
    kate &
done
for test purpose :)

Reproducible: Always

Steps to Reproduce:
1. Start script above
2. Xorg ram usage increases a lot
3. Close all Kate instances
4. No resources are clean
5. Start script again, Xorg leaks extremly high

Actual Results:  
Huge leak in Xorg

Expected Results:  
Normal ram usage, cleaning resources at exit
Comment 1 Anthony Fieroni 2016-01-02 18:58:43 UTC
Same leak in 15.08.
Comment 2 FrankRep 2016-01-04 15:06:47 UTC
I'm using Fedora 22 and Kate Version 5.0.0.

When I close the Kate window, Kate process is still running in the background yet the window is gone. When I go to open another file associated with Kate, it opens in the background process and no window is displayed.

I have to use "killall kate" to remove the processes from the background and see Kate again.
Comment 3 Phillip Renner 2016-01-06 09:15:46 UTC
Same with my configuration. When I firstly open files from Dolphin associated with Kate everything seems good. After I close Kate the window disappears but the process is still running in the background. "Open with -> Kate" from Dolphin for the second time doesn't make a Kate-Window to appear - just a process in the background. After rebooting my system Kate opens many <untitled>-Windows for all the kate-processes that were still in the background I didn't kill by myself.

I'm using openSUSE Tumbleweed, Kate Version 15.0.8, KDE Frameworks 5.17.0, Qt 5.5.1
Comment 4 Anthony Fieroni 2016-01-06 09:43:44 UTC
About me, mostly https://bugs.kde.org/show_bug.cgi?id=344879 is caused by Kate/KTextEditor. I disable all plugins - same leak.
Comment 5 Anthony Fieroni 2016-01-10 09:12:53 UTC
Run the script like that sudo ./start_kate.sh -> not leaks at all 
[toni@toni-sony Downloads]$ sudo ./start_kate.sh 
[toni@toni-sony Downloads]$ QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
http://oi63.tinypic.com/t4zajt.jpg   - with sudo
http://oi64.tinypic.com/2h5mt4x.jpg - without sudo
Comment 6 Anthony Fieroni 2016-01-10 16:57:36 UTC
It' Breeze style, discard this bug request. My bad, Kate is best editor :)