Summary: | Memory leak in Choqok | ||
---|---|---|---|
Product: | [Applications] choqok | Reporter: | Eugene Shalygin <eugene.shalygin+bugzilla.kde> |
Component: | general | Assignee: | Mehrdad Momeny <mehrdad.momeny> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | scarpino |
Priority: | NOR | ||
Version: | Git | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/choqok/5096b5e9b7b223172d81b4d01ed04f3035c4a45f | Version Fixed In: | 1.5 |
Sentry Crash Report: |
Description
Eugene Shalygin
2014-12-15 18:42:30 UTC
Probably a duplicate of #271858 Did you leave choqok running and updating over night? or you were using it, I mean, marking tweets as read and they removed from the timeline? Because as number of PostWidgets in the gui increase, the memory usage increase too. And this was the case in bug 271858. But if after remove/hiding PostWidgets from GUI, the memory doesn't change and still increases, that's a new bug. It is a normal use: timeline is read. After I found TimelineWidget::removeOldPosts() that must be called at minimise, I tried minimising Choqok window, but this does not change the memory footprint. Just to be specific here are the numbers: timeline contains 871 unread tweets, memory footrpint 3122448 kB, "Mark all as read", "File/Minimize". Choqok shows some CPU activity, but the footprint does not change. After wait for some new tweets (7), and restoring the Choqok window with a second timeline, without new tweets active, footprint is the same. Now I switch to the timeline with the new tweets and the footprint grows to 3136320 kB I've traced one(?) of the sources. This is MediaManager::fetchImage(). It leaks QPixmap inside of the function, and its returned values are not freed anywhere also. Now testing a patch. Git commit 5096b5e9b7b223172d81b4d01ed04f3035c4a45f by Andrea Scarpino, on behalf of Eugene Shalygin. Committed on 17/12/2014 at 13:47. Pushed by scarpino into branch 'master'. Fix memleaks in images fetching REVIEW: 121576 Related: bug 271858 FIXED-IN: 1.5 M +3 -3 helperlibs/twitterapihelper/twitterapiwhoiswidget.cpp M +7 -9 libchoqok/mediamanager.cpp M +6 -6 libchoqok/mediamanager.h M +12 -13 libchoqok/ui/postwidget.cpp M +3 -3 plugins/betternotify/notification.cpp http://commits.kde.org/choqok/5096b5e9b7b223172d81b4d01ed04f3035c4a45f Memory footprint increases but it does it slower than before Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved. |