After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 98751 - memory leak in Weather Report 2.0.1 Applet
memory leak in Weather Report 2.0.1 Applet
Status: RESOLVED DUPLICATE of bug 96443
Product: gnome-applets
Classification: Other
Component: gweather
2.0.x
Other Linux
: Normal critical
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
: 95948 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-11-17 02:05 UTC by travis pettijohn
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description travis pettijohn 2002-11-17 02:05:44 UTC
Description of Problem:
Set up the gweather applet to use a radar image
(preferences -> general tab -> enable radar map)
Then open up gnome-system-monitor. Note the memory
usage of the weather applet. Then update the
weather. Watch it grow. Repeat. The memory usage
keeps growing. 

This is not a problem with just text-only
forecasts. Or it leaks so slowly that it's not
noticable (I can't imagine a text-only forecast
uses much mem). But either the default radar image
or using a custom radar image causes the same leak. 


Steps to reproduce the problem:
1. Enable a radar map.
2. Every time you update the forecast, new memory
is allocated for the new radar map.

Actual Results:
New memory is allocated for each updated radar map
instead of freeing the old radar image or
overwriting the old image.

Expected Results:
Should reuse memory, or free old memory when
updating the radar image.

How often does this happen? 
Every time...

Additional Information:
I noticed this by sorting processes in
gnome-system-monitor by memory usage, and saw it
was using over 50 MB! I updated the forecast and
it went even higher so I submitted this.
Comment 1 Elijah Newren 2002-11-17 04:07:22 UTC
*** Bug 95948 has been marked as a duplicate of this bug. ***
Comment 2 Elijah Newren 2002-11-17 04:09:29 UTC
Easily and fairly quickly reproducable.  Each update adds around
300K-400K to the memory taken by the applet.  It starts at about 9.9M
and I raised it to 25M just by updating many times.  I'm on a RH 8.0
system.

Setting version to 2.0.x.  I don't know if the severity needs to be
critical, as this isn't a library or any application used everywhere,
but I'll leave it as is.

I think this may be the same bug that is talked about in bug #96443. 
That bug report contains a proposed PATCH that may fix this problem.
Comment 3 David Kennedy 2002-11-28 00:48:04 UTC
I'm almost certain that this leak is patched by bug 96443 - travis: if
you still see the leak with later versions of gweather, please file a
new bug - thanks.

*** This bug has been marked as a duplicate of 96443 ***