https://bugs.kde.org/show_bug.cgi?id=523627

            Bug ID: 523627
           Summary: 8gb memory leak after couple of days
    Classification: Applications
           Product: KeepSecret
      Version First 1.1.0
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

DESCRIPTION
I have encountered a severe memory leak in `keepsecret`. After leaving the
application running in the background for a few days, its memory consumption
grew to around 8GB.            

    I captured the process memory layout using `pmap -XX` and aggregated the
Resident Set Size (RSS). The data points directly to a massive leak in the
native C++ heap.                 

    Here is the memory consumption breakdown:
    - **Native C/C++ `[heap]`**: ~7.1 GB (7,274,000 KB RSS)
    - **QML/JS GC Heap (`memfd:JSGCHeap:QtQml` / `unknown-usage:QtQml`)**: ~544
MB RSS
    - **Shared libraries and other mappings**: Negligible

    Snippet of the top memory consumer from `pmap`:
    `5558aa2e1000 rw-p 00000000 00:00 0 7282204 4 4 7274000 7274000 7274000 0 0
0 7274000 6708324 7274000 0 0 268288 0 0 0 0 2612 2612 0 1 0 rd wr mr mw me ac
sd [heap]`


STEPS TO REPRODUCE
1. I've used keepsecret for couple of minutes, like clicking and testing
2. Left it running in the background
3. Looking at memory usage and I see:

OBSERVED RESULT
❯ ps -o pid,user,vsz,rss,pmem,command -p $(pgrep keepsecret)
    PID USER        VSZ   RSS %MEM COMMAND
 320815 xxx     11029680 7934800 25.0 /usr/bin/keepsecret



EXPECTED RESULT
100mb tops?

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window):
❯ kinfo 
Operating System: Arch Linux 
KDE Plasma Version: 6.7.2
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1
Kernel Version: 7.1.3-arch1-3 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 PRO 5650U with Radeon Graphics
Memory: 32 GiB of RAM (30.2 GiB usable)
Graphics Processor: AMD Radeon Graphics


ADDITIONAL INFORMATION
I will try to keep it still in the background so if you reply quickly I can do
additional tests.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to