QSerial memory leak

Bug #1377234 reported by Daniel Gutson
86
This bug affects 21 people
Affects Status Importance Assigned to Milestone
qtserialport-opensource-src (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Confirmed
Undecided
Unassigned

Bug Description

Qt 5.2.1 has a serious memory leak: https://bugreports.qt-project.org/browse/QTBUG-37578
It is fixed in 5.2.2 as shown in the bug report.
Please update Qt for Ubuntu 14.04.
The bug turns custom applications unusable.
Thanks!

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: qt5-default 5.2.1+dfsg-1ubuntu14.2
ProcVersionSignature: Ubuntu 3.13.0-36.63-generic 3.13.11.6
Uname: Linux 3.13.0-36-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.4
Architecture: amd64
CurrentDesktop: GNOME
Date: Fri Oct 3 13:47:20 2014
InstallationDate: Installed on 2014-02-03 (242 days ago)
InstallationMedia: Ubuntu-GNOME 13.10 "Saucy Salamander" - Release amd64 (20131017)
SourcePackage: qtbase-opensource-src
UpgradeStatus: Upgraded to trusty on 2014-04-18 (167 days ago)

[Test Case]
We found the memory leak while running the QGroundControl (QGC) application, so the steps to reproduce are the following:

1- Install QGroundControl dependencies.
    sudo apt-get install git
    sudo apt-get install qtcreator
    sudo apt-get install qttools5-dev
    sudo apt-get install qtbase5-dev
    sudo apt-get install qt5-default
    sudo apt-get install qtdeclarative5-dev
    sudo apt-get install libqt5serialport5-dev
    sudo apt-get install libqt5svg5-dev
    sudo apt-get install libqt5webkit5-dev
    sudo apt-get install libsdl1.2-dev
    sudo apt-get install build-essential
    sudo apt-get install libudev-dev
    sudo apt-get install libsdl-dev
    sudo apt-get install phonon-backend-gstreamer
    sudo apt-get install libphonon4qt5-dev
    sudo apt-get install flite-dev
2- Checkout of QGroundControl.
    git clone https://github.com/mavlink/qgroundcontrol
3- Update QGroundControl Modules.
    cd qgroundcontrol
    git submodule init && git submodule update
4- Compile QGroundControl.
    qmake ./qgroundcontrol.pro
    make -j4
5- Run Application
    cd release
    ./qgroundcontrol
6- Select "Radio / Serial Link" option on the window of connection selection.
7- While the application is run, execute htop to see the rising on the allocated memory of QGC, about 1MB / sec.

Revision history for this message
Daniel Gutson (daniel-gutson-9) wrote :
affects: qtbase-opensource-src (Ubuntu) → qtserialport-opensource-src (Ubuntu)
Changed in qtserialport-opensource-src (Ubuntu):
status: New → Fix Released
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Thanks for your report. Can you please include a test case in the bug description? We need it in order to upload the update (see https://wiki.ubuntu.com/StableReleaseUpdates#Procedure).

Revision history for this message
Daniel Gutson (daniel-gutson-9) wrote :

Hi Dmitry, the (real life) test case we have is somewhat complex since it is an application running and seeing it eating RAM in top. The application itself requires a lot of dependencies plus getting source code and building it. Is this useful? Otherwise, if the upgrade can be guaranteed to be this week, we could invest some time creating a solo application specifically for this bug. Please take into account that we're on fire regarding some deadlines, so time is precious :) (I guess you are in the same situation ;) ).

description: updated
Revision history for this message
Gabriel Ibarra (gabriel-ibarra) wrote :

Hi Dmitry, I added the steps to reproduce with the QGroundControl application, as Daniel said the real life test case, that's how we found the leak. I am at your disposal in case you need something else.

Revision history for this message
Daniel Gutson (daniel-gutson-9) wrote :

Hi,

  any update on this?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtserialport-opensource-src (Ubuntu Trusty):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.