[akregator] [Bug 440574] Memory Leak / Memory Usage For Large Feeds

2021-08-09 Thread barray
https://bugs.kde.org/show_bug.cgi?id=440574

--- Comment #10 from barray  ---
Created attachment 140612
  --> https://bugs.kde.org/attachment.cgi?id=140612=edit
Valgrind log after running for quite a few hours on built source

It was horrifically slow, but I tried to use it as normal over a decent time
window. Hopefully this valgrind log is more useful for debugging memory use.

My experience of reading valgrind output is quite limited, but I will take a
look in a few days.

In the meantime, if you would like me to check anything else, please let me
know.

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

[akregator] [Bug 440574] Memory Leak / Memory Usage For Large Feeds

2021-08-08 Thread barray
https://bugs.kde.org/show_bug.cgi?id=440574

--- Comment #9 from barray  ---
Created attachment 140591
  --> https://bugs.kde.org/attachment.cgi?id=140591=edit
Replicated RAM usage issue in a debug build

As you can see, I am now able to replicate the RAM usage issue in a debug
build. The next step for me is to run this under valgrind and try to generate
more useful output.

After that I want to run on the latest release tag and try to replicate the
issue there.

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

[akregator] [Bug 440574] Memory Leak / Memory Usage For Large Feeds

2021-08-08 Thread barray
https://bugs.kde.org/show_bug.cgi?id=440574

--- Comment #8 from barray  ---
(In reply to Laurent Montel from comment #7)
> You rebuild akregator but it seems that it uses
> akregator_config_userfeedback.so from your system not you install directory.
> If you rebuild remove your akregator from your system first.

I have done this and will try to replicate the issue again. I can now access
the menus and metakit appears to be working.

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

[akregator] [Bug 440574] Memory Leak / Memory Usage For Large Feeds

2021-08-06 Thread barray
https://bugs.kde.org/show_bug.cgi?id=440574

--- Comment #6 from barray  ---
Created attachment 140567
  --> https://bugs.kde.org/attachment.cgi?id=140567=edit
RAM usage over time for built-from-source version

This is the built-from-source version - the issue doesn't appear to replicate
(at least not to the same level).

It also crashes when selecting the menu item: `Settings > Configure Akregator`,
giving:

./bin/akregator: symbol lookup error:
/usr/lib/x86_64-linux-gnu/qt5/plugins/akregator_config_userfeedback.so:
undefined symbol: _ZN9Akregator19UserFeedBackManager4selfEv

I suspect it could be some issue with the archiving [1].

I spoke with @pinaraf in #akregator on Libera IRC and they seemed to believe
there are some large flaws in the archiving process in any case.

[1] https://bbs.archlinux.org/viewtopic.php?id=226889

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

[akregator] [Bug 440574] Memory Leak / Memory Usage For Large Feeds

2021-08-06 Thread barray
https://bugs.kde.org/show_bug.cgi?id=440574

--- Comment #5 from barray  ---
I have built from source (v20.12.3) and am now making sure it still replicates.
If so, I plan to get a better valgrind output - as well as confirm the issue in
later versions.

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

[akregator] [Bug 440574] Memory Leak / Memory Usage For Large Feeds

2021-08-04 Thread barray
https://bugs.kde.org/show_bug.cgi?id=440574

--- Comment #3 from barray  ---
Created attachment 140528
  --> https://bugs.kde.org/attachment.cgi?id=140528=edit
Valgrind log after running akgregator for a few hours

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

[akregator] [Bug 440574] Memory Leak / Memory Usage For Large Feeds

2021-08-04 Thread barray
https://bugs.kde.org/show_bug.cgi?id=440574

--- Comment #2 from barray  ---
Created attachment 140527
  --> https://bugs.kde.org/attachment.cgi?id=140527=edit
RAM usage over 24 hours

The attached image shows increased RAM usage of Akregator over a 24+ hour
window - something weird is definitely going on here. I'll try to attach
valgrind later and see what is specifically growing.

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

[akregator] [Bug 440574] Memory Leak / Memory Usage For Large Feeds

2021-08-03 Thread barray
https://bugs.kde.org/show_bug.cgi?id=440574

--- Comment #1 from barray  ---
I'm logging the RAM usage every 300 seconds using the SO answer here:
https://unix.stackexchange.com/a/508799

The code is:

```
delay=300
pid="$1"
top -b -d $delay -p $pid | awk -v OFS="," '$1=="top"{ time=$3 } $1+0>0 { print
time,$1,$NF,$9,$10; fflush() }'
```

This gives RAM as a percentage of total memory, but should allow the
observation of memory increase to be obvious.

The purpose of doing this is to see whether it is linear (memory leak in small
loop), periodic (when feeds are pulled) or sporadic (specific feed content is
leaking memory). It also will show the extent of this problem.

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

[akregator] [Bug 440574] Memory Leak / Memory Usage For Large Feeds

2021-08-03 Thread barray
https://bugs.kde.org/show_bug.cgi?id=440574

barray  changed:

   What|Removed |Added

 CC||bar...@protonmail.com

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

[akregator] [Bug 440574] New: Memory Leak / Memory Usage For Large Feeds

2021-08-03 Thread barray
https://bugs.kde.org/show_bug.cgi?id=440574

Bug ID: 440574
   Summary: Memory Leak / Memory Usage For Large Feeds
   Product: akregator
   Version: 5.16.3
  Platform: Ubuntu Packages
OS: Linux
Status: REPORTED
  Severity: crash
  Priority: NOR
 Component: general
  Assignee: kdepim-b...@kde.org
  Reporter: bar...@protonmail.com
  Target Milestone: ---

SUMMARY

I am currently observing ~250MB of RAM usage increase per day. This lead to a
system crash.

Currently Akregator is consuming 1.7GB of RAM, 4.9GB of virtual memory. Compare
this to Firefox with hundreds of active tabs, consuming 1.4GB of RAM and 8.9GB
of virtual memory.

STEPS TO REPRODUCE
1. Large number of RSS feeds (OPML export is ~300kB and ~700 lines)
2. Set checking time to 30 minute intervals
3. Wait for 24 hours

OBSERVED RESULT

A ~250MB RAM increase over 24 hours. Over several weeks this will lead to a
system lock-up/crash (in this case).

EXPECTED RESULT

A little to no RAM increase over 24 hours.

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma: Ubuntu 21.04
(available in About System)
KDE Plasma Version: -
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

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