<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>110873</bug_id>
          
          <creation_ts>2005-08-16 11:28:46 +0000</creation_ts>
          <short_desc>Memory Leak in kdesktop with &quot;Multiple Backgrounds&quot; enabled</short_desc>
          <delta_ts>2009-01-02 20:31:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kdesktop</product>
          <component>wallpaper</component>
          <version>3.4.1</version>
          <rep_platform>Gentoo Packages</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Philip Blatter">p0</reporter>
          <assigned_to name="David Faure">faure</assigned_to>
          <cc>finex</cc>
    
    <cc>gcirne.trash</cc>
    
    <cc>info</cc>
    
    <cc>martines</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>41</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>365880</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Blatter">p0</who>
    <bug_when>2005-08-16 11:28:46 +0000</bug_when>
    <thetext>Version:           3.4.1 (using KDE KDE 3.4.1)
Installed from:    Gentoo Packages
Compiler:          gcc 3.3.5-20050130 (Gentoo) CFLAGS=&quot;-O2 -mcpu=i686 -fomit-frame-pointer&quot;
OS:                Linux

I use the multiple backgrounds feature with an interval of 1 minute. Each time the background changes the memory usage of kdesktop grows up. This is reproduceable on my system.

Ive top&apos;ed my system to visualize the process:

When kdesktop has initially started:
17376 xxx  15   0 31539  17m  14m S  1.4  2.2   0:01.07 kdesktop

After 20 min:
17376 xxx  15   0 66312  52m  14m S  0.8  6.7   0:23.21 kdesktop

After 1 hour:  (kdesktop eates more than 12% of my total system memory - 768M)
17376 xxx  15   0  113m  94m  14m S  0.0 12.5   1:17.26 kdesktop


The Memory usage is greater than 1 GB after one day running kdesktop.

Versions of Libs an Applications:
glibc: 2.3.5
Qt: 3.3.4
KDE: 3.4.1
KDesktop: 3.4.1
XOrg: 6.8.2 using stock &quot;ati&quot; driver


Best regards and thanks for the all the great work

Philip</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399517</commentid>
    <comment_count>1</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2005-12-18 06:37:35 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 98597 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399721</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Blatter">p0</who>
    <bug_when>2005-12-18 23:17:28 +0000</bug_when>
    <thetext>I dont think, its a duplicate. In 98597 Xs Memory Usage is growing. In this Bug, kdesktop is growing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399722</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Blatter">p0</who>
    <bug_when>2005-12-18 23:18:02 +0000</bug_when>
    <thetext>reopened</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405495</commentid>
    <comment_count>4</comment_count>
    <who name="Frank Lin">fpylin</who>
    <bug_when>2006-01-12 14:41:19 +0000</bug_when>
    <thetext>Confirmed with KDE 3.5 on Slackware 10.2. 

kdesktop consumes about 400M memory, using 1 minute multiple background, in around 6 hours. 

&quot;killall kdesktop&quot; reclaims the lost memory immediately. 

I will post memory data when I collect some.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>406208</commentid>
    <comment_count>5</comment_count>
    <who name="Frank Lin">fpylin</who>
    <bug_when>2006-01-15 01:00:15 +0000</bug_when>
    <thetext>After four hours:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
28223 frank     16   0  313m 286m  10m S  0.0 28.4   3:42.05 kdesktop


Restarted:
32250 frank     15   0 43708  25m  10m S  0.0  2.6   0:04.56 kdesktop
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437263</commentid>
    <comment_count>6</comment_count>
    <who name="Alexander Runge">runge</who>
    <bug_when>2006-05-08 13:20:33 +0000</bug_when>
    <thetext>Same here with two Gentoo installations. One is KDE 3.4.1 and proprietary ATI driver, the other is 3.5.2 with proprietary nvidia driver.
No problems when I set the background to plain color. Havn&apos;t tried a single wallpaper yet. As soon as I use multiple wallpapers on any system kdesktop starts eating memory. Normally around 100MB per day.
I reported this on bugs.gentoo.org, but they told me this had to be an upstream issue.

Regards, Alex!!!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>462691</commentid>
    <comment_count>7</comment_count>
    <who name="Ernst Bachmann">ebachmann</who>
    <bug_when>2006-08-23 16:56:06 +0000</bug_when>
    <thetext>I have the same issue, but am not using the multiple (slideshow) backgrounds.

Instead I have a lots of different (svg &amp; png) backgrounds on all screens (xinerama dual-head setup), all scaled to fit the screen size.

I suspect in my case the memory leaks whenever the resoltion is changed using the xrandr extension, e.g. when a game switches the second monitor off to run fullscreen.

KDE version is 3.5.4, QT 3.3.6, xorg-x11 7.0.0, nvidia drivers.

/Ernst</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>470417</commentid>
    <comment_count>8</comment_count>
    <who name="Andreas Kling">info</who>
    <bug_when>2006-09-16 21:28:36 +0000</bug_when>
    <thetext>Is everyone with this problem using SVG wallpapers? If so, it may have been fixed by revision 584936. See also bug 108326.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>470987</commentid>
    <comment_count>9</comment_count>
    <who name="Andreas Kling">info</who>
    <bug_when>2006-09-18 23:55:12 +0000</bug_when>
    <thetext>SVN commit 586166 by kling:

Fixed gargantuan memory leak with SVG wallpapers.
Turns out KSVGIconEngine::image() returns a `new QImage&apos;.

BUG: 110873


 M  +3 -1      bgrender.cpp  


--- branches/KDE/3.5/kdebase/kcontrol/background/bgrender.cpp #586165:586166
@@ -361,7 +361,9 @@
 	    }
 
 	    if (svgEngine-&gt;load(svgWidth, svgHeight, file )) {
-		m_Wallpaper = ( *svgEngine-&gt;image() );
+		QImage *image = svgEngine-&gt;image();
+		m_Wallpaper = *image;
+		delete image;
 	    } else {
 		kdWarning() &lt;&lt; &quot;failed to load SVG file &quot; &lt;&lt; file &lt;&lt; endl;
 	    }
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>692387</commentid>
    <comment_count>10</comment_count>
    <who name="FiNeX">finex</who>
    <bug_when>2009-01-02 20:31:18 +0000</bug_when>
    <thetext>Bug closed. Kdesktop is no more mantained.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>