Bug 418219

Summary: Parsing entire project eats tons of memory
Product: [Applications] kdevelop Reporter: Maciej Cencora <m.cencora>
Component: Language Support: CPP (Clang-based)Assignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Maciej Cencora 2020-02-26 13:20:49 UTC
SUMMARY
During parsing of entire medium-sized projects (~8K source and header files) KDevelop process increases its RSS memory usage from ~300MBs to ~10GBs.

STEPS TO REPRODUCE
1. Open not yet parsed project
3. Watch memory usage in "System Monitor"

OBSERVED RESULT
Memory usage constantly increases during background parsing of every TU. Memory is freed only after ~1 minute after the background parsing of whole project is finished.

EXPECTED RESULT
Memory used during background parsing of given TU should be released almost immediately after parsing of given TU is done, not after parsing of whole project is finished.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 18.04
(available in About System)
KDE Plasma Version: 5.12.9
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5

ADDITIONAL INFORMATION