Bug 100700 - [patch] multimedia/kdemultimedia3 arts memory leak when playing ogg and mp3 files
Summary: [patch] multimedia/kdemultimedia3 arts memory leak when playing ogg and mp3 f...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-22 04:40 UTC by Axel Gonzalez
Modified: 2006-07-23 21:25 UTC (History)
0 users

See Also:


Attachments
file.diff (804 bytes, patch)
2006-07-22 04:40 UTC, Axel Gonzalez
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Gonzalez 2006-07-22 04:40:16 UTC
Copied from:
http://bugs.kde.org/show_bug.cgi?id=119504

The primary artsd process is leaking memory when it plays ogg and mp3 files.  Since KDE uses ogg files for sound events, after about a week artsd is using a lot of memory which slows the system down. 
 The VmSize, VmRSS, and VmData all increase at the beginning of ogg playback then when it finishes playing not all of that used memory is freed.  I also noticed that when playing a long ogg file the VmRSS will constantly grow by a few kB during every second of playback.  The same thing happens with mp3 files but not as bad as with ogg files.  Playing wav files however allocates very little memory in artsd and the usage doesn't increase during playback.

Fix: This patch is from the patches at:
http://bugs.kde.org/show_bug.cgi?id=11950

I merged the patches to make it ready to commit:


files/patch-akode_artsplugin_akodePlayObject_impl.cpp
************************************
How-To-Repeat: Copied from:
http://bugs.kde.org/show_bug.cgi?id=119504

How to Reproduce: 
 1. Play an ogg or mp3 file with artsplay, noatun, or a KDE event 
 2. Watch the artsd memory usage increase while it plays 
 3. Wait until it finishes playing or manually stop the playback 
 4. Notice the slightly increased memory usage of the main artsd process since before playing the file
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-07-22 04:40:23 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kde

Over to maintainer
Comment 2 Michael Nottebrock freebsd_committer freebsd_triage 2006-07-23 21:24:50 UTC
State Changed
From-To: open->closed

Committed, thanks!