Bug 1390975

Summary: mediawriter leaks memory during image download
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: mediawriterAssignee: Martin Bříza <mbriza>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: mbriza
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mediawriter-4.0.4-0.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-15 13:33:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Kamil Páral 2016-11-02 10:44:59 UTC
Description of problem:
If I download an image using mediawriter, its memory consumption sky rockets. After downloading Workstation Live image (1.4 GB), I see mediawriter consuming 600-800 MB RAM (while on start it consumed about 100 MB). It seems that memory is not freed correctly during download.

I've found this when trying to download and write an image in a VM with 2 GB RAM, where mediawriter was killed with OOM.

Version-Release number of selected component (if applicable):
mediawriter-4.0.0-2.fc25.x86_64

How reproducible:
always

Steps to Reproduce:
1. run htop or similar to see memory usage of mediawriter
2. start downloading some image, see memory consumption hit the roof
3. see that the memory is not freed at any point, not even after successfully writing the image

Actual results:
downloaded image occupies RAM

Expected results:
image is downloaded to the disk, and not kept in RAM (there's no need)

Comment 1 Fedora Update System 2016-11-11 08:09:03 UTC
mediawriter-4.0.4-0.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-239cdfbfd6

Comment 2 Fedora Update System 2016-11-11 16:57:52 UTC
mediawriter-4.0.4-0.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-239cdfbfd6

Comment 3 Fedora Update System 2016-11-15 13:33:50 UTC
mediawriter-4.0.4-0.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.