QSoundEffect memory usage increasing over time
-
Updated with some OS information. Added some comments.
-
Hi
Since you provided a runnable sample, i tried in on win 10, vs compiler2015, Qt5.9I could not detect any increase in memory.
Even tried a more fine grained reporter but the memory seems to stay
steady.Ill let it run for some hours more and see.
Ready to run project for other that might have time for a test
https://www.dropbox.com/s/4krk1rpv0virff9/QSoundEffectTest.zip?dl=0 -
Update: I ran the program for a 122.7 hours and produced the information below. I
included the first and last detailed snapshot. Notice the increases in memory
attributed to heap allocation.-------------------------------------------------------------------------------- Command: ./SoundEffectLeak Massif arguments: --threshold=0.001 --time-unit=ms ms_print arguments: massif.out.9878 -------------------------------------------------------------------------------- MB 15.00^ # | # | # | :@@# | :@@@:@@:@@@# | ::@:::::@:@@@:@@:@@@# | ::@::@::: @:::::@:@@@:@@:@@@# | @::@@::@::@: @::: @:::::@:@@@:@@:@@@# | @@@@::@ : @::@: @::: @:::::@:@@@:@@:@@@# | ::::::::@@ @::@ : @::@: @::: @:::::@:@@@:@@:@@@# | ::::@:::::: :::@@ @::@ : @::@: @::: @:::::@:@@@:@@:@@@# | :::@:::: :@: :::: :::@@ @::@ : @::@: @::: @:::::@:@@@:@@:@@@# | @@::::@:: @:::: :@: :::: :::@@ @::@ : @::@: @::: @:::::@:@@@:@@:@@@# |::::@@: : @:: @:::: :@: :::: :::@@ @::@ : @::@: @::: @:::::@:@@@:@@:@@@# |: ::@@: : @:: @:::: :@: :::: :::@@ @::@ : @::@: @::: @:::::@:@@@:@@:@@@# |: ::@@: : @:: @:::: :@: :::: :::@@ @::@ : @::@: @::: @:::::@:@@@:@@:@@@# |: ::@@: : @:: @:::: :@: :::: :::@@ @::@ : @::@: @::: @:::::@:@@@:@@:@@@# |: ::@@: : @:: @:::: :@: :::: :::@@ @::@ : @::@: @::: @:::::@:@@@:@@:@@@# |: ::@@: : @:: @:::: :@: :::: :::@@ @::@ : @::@: @::: @:::::@:@@@:@@:@@@# |: ::@@: : @:: @:::: :@: :::: :::@@ @::@ : @::@: @::: @:::::@:@@@:@@:@@@# 0 +----------------------------------------------------------------------->h 0 122.7 Number of snapshots: 68 Detailed snapshots: [4, 5, 8, 11, 17, 26, 27, 28, 31, 33, 36, 38, 42, 48, 51, 53, 55, 57, 59, 61, 63, 65, 66 (peak)] -------------------------------------------------------------------------------- n time(ms) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 0 0 0 0 0 0 1 5,772,784 5,923,360 5,650,397 272,963 0 2 13,843,784 6,095,744 5,780,349 315,395 0 3 19,521,784 6,182,664 5,837,049 345,615 0 4 29,482,784 6,399,592 6,002,185 397,407 0 93.79% (6,002,185B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. ->45.94% (2,940,039B) 0x65203EE: QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | ->02.08% (132,864B) 0x66EC6B0: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->02.06% (131,840B) 0x66EC8B3: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | ->02.06% (131,840B) 0x66E818C: QCoreApplication::postEvent(QObject*, QEvent*, int) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | ->02.06% (131,712B) 0x670DCD4: QMetaObject::activate(QObject*, int, int, void**) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | ->02.05% (131,072B) 0x61B180C: QNetworkConfigurationManagerPrivate::updateConfigurations() (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Network.so.5.7.1) | | | | | | ->02.05% (131,072B) 0x62245AB: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Network.so.5.7.1) | | | | | | ->02.05% (131,072B) 0x670ECA8: QObject::event(QEvent*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->02.05% (131,072B) 0x66E6099: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->02.05% (131,072B) 0x66E8AE9: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->02.05% (131,072B) 0x6733101: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->02.05% (131,072B) 0xA8E7998: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4000.0) | | | | | | ->02.05% (131,072B) 0xA8E7CE6: ??? (in /usr/lib64/libglib-2.0.so.0.4000.0) | | | | | | ->02.05% (131,072B) 0xA8E7D9A: g_main_context_iteration (in /usr/lib64/libglib-2.0.so.0.4000.0) | | | | | | ->02.05% (131,072B) 0x67334F5: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->02.05% (131,072B) 0x66E4398: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->02.05% (131,072B) 0x651AE4A: QThread::exec() (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->02.05% (131,072B) 0x651F537: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->02.05% (131,072B) 0x6E04DC3: start_thread (in /usr/lib64/libpthread-2.17.so) | | | | | | ->02.05% (131,072B) 0x792F21B: clone (in /usr/lib64/libc-2.17.so) | | | | | | | | | | | ->00.01% (640B) in 3+ places, all below ms_print's threshold (01.00%) | | | | | | | | | ->00.00% (128B) in 2+ places, all below ms_print's threshold (01.00%) | | | | | | | ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%) | | | | | ->00.02% (1,024B) in 1+ places, all below ms_print's threshold (01.00%) | | | ->02.52% (161,150B) in 33+ places, all below ms_print's threshold (01.00%) ->07.22% (461,962B) 0x19087650: ??? (in /usr/lib64/dri/i965_dri.so) | ->06.91% (441,892B) 0x190876AC: ??? (in /usr/lib64/dri/i965_dri.so) | | ->05.98% (382,476B) 0x18FF5910: ??? (in /usr/lib64/dri/i965_dri.so) | | | ->05.74% (367,312B) 0x19118A05: ??? (in /usr/lib64/dri/i965_dri.so) | | | | ->04.48% (286,836B) 0x19118E6C: ??? (in /usr/lib64/dri/i965_dri.so) | | | | | ->04.48% (286,836B) 0x190CA81E: ??? (in /usr/lib64/dri/i965_dri.so) | | | | | ->04.48% (286,836B) 0x19088EEE: ??? (in /usr/lib64/dri/i965_dri.so) | | | | | ->04.48% (286,836B) 0x6BDAD9F: ??? (in /usr/lib64/libGL.so.1.2.0) | | | | | ->04.48% (286,836B) 0x6BB02D7: ??? (in /usr/lib64/libGL.so.1.2.0) | | | | | ->04.48% (286,836B) 0x6BAC4C5: glXGetFBConfigs (in /usr/lib64/libGL.so.1.2.0) | | | | | ->04.48% (286,836B) 0x6BAD064: glXChooseFBConfig (in /usr/lib64/libGL.so.1.2.0) | | | | | ->04.48% (286,836B) 0x187B3525: ??? | | | | | ->04.48% (286,836B) 0x187B384B: ??? | | | | | ->04.48% (286,836B) 0x187B0157: ??? | | | | | ->04.48% (286,836B) 0x164D5CFF: ??? | | | | | ->04.48% (286,836B) 0x164C0F7E: ??? | | | | | ->04.48% (286,836B) 0x5A84469: QWindowPrivate::create(bool) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Gui.so.5.7.1) | | | | | ->04.48% (286,836B) 0x52C733B: QWidgetPrivate::create_sys(unsigned long long, bool, bool) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Widgets.so.5.7.1) | | | | | ->04.48% (286,836B) 0x52C6B07: QWidget::create(unsigned long long, bool, bool) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Widgets.so.5.7.1) | | | | | ->04.48% (286,836B) 0x52D3330: QWidget::setVisible(bool) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Widgets.so.5.7.1) | | | | | ->04.48% (286,836B) 0x403422: main (main.cpp:11) | | | | | | | | | ->01.26% (80,476B) 0x190CA81E: ??? (in /usr/lib64/dri/i965_dri.so) | | | | ->01.26% (80,476B) 0x19088EEE: ??? (in /usr/lib64/dri/i965_dri.so) | | | | ->01.26% (80,476B) 0x6BDAD9F: ??? (in /usr/lib64/libGL.so.1.2.0) | | | | ->01.26% (80,476B) 0x6BB02D7: ??? (in /usr/lib64/libGL.so.1.2.0) | | | | ->01.26% (80,476B) 0x6BAC4C5: glXGetFBConfigs (in /usr/lib64/libGL.so.1.2.0) | | | | ->01.26% (80,476B) 0x6BAD064: glXChooseFBConfig (in /usr/lib64/libGL.so.1.2.0) | | | | ->01.26% (80,476B) 0x187B3525: ??? | | | | ->01.26% (80,476B) 0x187B384B: ??? | | | | ->01.26% (80,476B) 0x187B0157: ??? | | | | ->01.26% (80,476B) 0x164D5CFF: ??? | | | | ->01.26% (80,476B) 0x164C0F7E: ??? | | | | ->01.26% (80,476B) 0x5A84469: QWindowPrivate::create(bool) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Gui.so.5.7.1) | | | | ->01.26% (80,476B) 0x52C733B: QWidgetPrivate::create_sys(unsigned long long, bool, bool) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Widgets.so.5.7.1) | | | | ->01.26% (80,476B) 0x52C6B07: QWidget::create(unsigned long long, bool, bool) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Widgets.so.5.7.1) | | | | ->01.26% (80,476B) 0x52D3330: QWidget::setVisible(bool) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Widgets.so.5.7.1) | | | | ->01.26% (80,476B) 0x403422: main (main.cpp:11) | | | | | | | ->00.24% (15,164B) in 1+ places, all below ms_print's threshold (01.00%) | | | | | ->00.93% (59,416B) in 5+ places, all below ms_print's threshold (01.00%) | | | ->00.31% (20,070B) in 8+ places, all below ms_print's threshold (01.00%) | ->04.05% (259,424B) 0x670DD13: QMetaObject::activate(QObject*, int, int, void**) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | ->04.05% (259,424B) 0x61B180C: QNetworkConfigurationManagerPrivate::updateConfigurations() (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Network.so.5.7.1) | | ->04.05% (259,424B) 0x62245AB: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Network.so.5.7.1) | | ->04.05% (259,424B) 0x670ECA8: QObject::event(QEvent*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->04.05% (259,424B) 0x66E6099: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->04.05% (259,424B) 0x66E8AE9: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->04.05% (259,424B) 0x6733101: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->04.05% (259,424B) 0xA8E7998: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4000.0) | | ->04.05% (259,424B) 0xA8E7CE6: ??? (in /usr/lib64/libglib-2.0.so.0.4000.0) | | ->04.05% (259,424B) 0xA8E7D9A: g_main_context_iteration (in /usr/lib64/libglib-2.0.so.0.4000.0) | | ->04.05% (259,424B) 0x67334F5: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->04.05% (259,424B) 0x66E4398: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->04.05% (259,424B) 0x651AE4A: QThread::exec() (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->04.05% (259,424B) 0x651F537: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->04.05% (259,424B) 0x6E04DC3: start_thread (in /usr/lib64/libpthread-2.17.so) | | ->04.05% (259,424B) 0x792F21B: clone (in /usr/lib64/libc-2.17.so) | | | ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%) | ->01.04% (66,687B) 0x16C26D3E: ??? | ->01.04% (66,687B) 0x16C26D96: ??? | ->01.04% (66,687B) in 16+ places, all below ms_print's threshold (01.00%) | ->12.18% (779,625B) in 321+ places, all below ms_print's threshold (01.00%) -------------------------------------------------------------------------------- n time(ms) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 66 436,872,810 15,726,648 13,091,029 2,635,619 0 83.24% (13,091,029B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. ->37.86% (5,954,647B) 0x65203EE: QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | ->20.01% (3,147,520B) 0x66EC6B0: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->20.01% (3,146,496B) 0x66EC8B3: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | ->20.01% (3,146,496B) 0x66E818C: QCoreApplication::postEvent(QObject*, QEvent*, int) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | ->20.01% (3,146,368B) 0x670DCD4: QMetaObject::activate(QObject*, int, int, void**) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | ->20.00% (3,145,728B) 0x61B180C: QNetworkConfigurationManagerPrivate::updateConfigurations() (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Network.so.5.7.1) | | | | | | ->20.00% (3,145,728B) 0x62245AB: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Network.so.5.7.1) | | | | | | ->20.00% (3,145,728B) 0x670ECA8: QObject::event(QEvent*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->20.00% (3,145,728B) 0x66E6099: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->20.00% (3,145,728B) 0x66E8AE9: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->20.00% (3,145,728B) 0x6733101: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->20.00% (3,145,728B) 0xA8E7998: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4000.0) | | | | | | ->20.00% (3,145,728B) 0xA8E7CE6: ??? (in /usr/lib64/libglib-2.0.so.0.4000.0) | | | | | | ->20.00% (3,145,728B) 0xA8E7D9A: g_main_context_iteration (in /usr/lib64/libglib-2.0.so.0.4000.0) | | | | | | ->20.00% (3,145,728B) 0x67334F5: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->20.00% (3,145,728B) 0x66E4398: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->20.00% (3,145,728B) 0x651AE4A: QThread::exec() (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->20.00% (3,145,728B) 0x651F537: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | | | | | ->20.00% (3,145,728B) 0x6E04DC3: start_thread (in /usr/lib64/libpthread-2.17.so) | | | | | | ->20.00% (3,145,728B) 0x792F21B: clone (in /usr/lib64/libc-2.17.so) | | | | | | | | | | | ->00.00% (640B) in 2+ places, all below ms_print's threshold (01.00%) | | | | | | | | | ->00.00% (128B) in 1+ places, all below ms_print's threshold (01.00%) | | | | | | | ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%) | | | | | ->00.01% (1,024B) in 1+ places, all below ms_print's threshold (01.00%) ->24.45% (3,844,632B) 0x670DD13: QMetaObject::activate(QObject*, int, int, void**) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | ->24.45% (3,844,544B) 0x61B180C: QNetworkConfigurationManagerPrivate::updateConfigurations() (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Network.so.5.7.1) | | ->24.45% (3,844,544B) 0x62245AB: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Network.so.5.7.1) | | ->24.45% (3,844,544B) 0x670ECA8: QObject::event(QEvent*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->24.45% (3,844,544B) 0x66E6099: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->24.45% (3,844,544B) 0x66E8AE9: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->24.45% (3,844,544B) 0x6733101: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->24.45% (3,844,544B) 0xA8E7998: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4000.0) | | ->24.45% (3,844,544B) 0xA8E7CE6: ??? (in /usr/lib64/libglib-2.0.so.0.4000.0) | | ->24.45% (3,844,544B) 0xA8E7D9A: g_main_context_iteration (in /usr/lib64/libglib-2.0.so.0.4000.0) | | ->24.45% (3,844,544B) 0x67334F5: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->24.45% (3,844,544B) 0x66E4398: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->24.45% (3,844,544B) 0x651AE4A: QThread::exec() (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->24.45% (3,844,544B) 0x651F537: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->24.45% (3,844,544B) 0x6E04DC3: start_thread (in /usr/lib64/libpthread-2.17.so) | | ->24.45% (3,844,544B) 0x792F21B: clone (in /usr/lib64/libc-2.17.so) | | | ->00.00% (88B) in 1+ places, all below ms_print's threshold (01.00%) ->02.94% (461,962B) 0x19087650: ??? (in /usr/lib64/dri/i965_dri.so) | ->02.81% (441,892B) 0x190876AC: ??? (in /usr/lib64/dri/i965_dri.so) | | ->02.43% (382,476B) 0x18FF5910: ??? (in /usr/lib64/dri/i965_dri.so) | | | ->02.34% (367,312B) 0x19118A05: ??? (in /usr/lib64/dri/i965_dri.so) | | | | ->01.82% (286,836B) 0x19118E6C: ??? (in /usr/lib64/dri/i965_dri.so) | | | | | ->01.82% (286,836B) 0x190CA81E: ??? (in /usr/lib64/dri/i965_dri.so) | | | | | ->01.82% (286,836B) 0x19088EEE: ??? (in /usr/lib64/dri/i965_dri.so) | | | | | ->01.82% (286,836B) 0x6BDAD9F: ??? (in /usr/lib64/libGL.so.1.2.0) | | | | | ->01.82% (286,836B) 0x6BB02D7: ??? (in /usr/lib64/libGL.so.1.2.0) | | | | | ->01.82% (286,836B) 0x6BAC4C5: glXGetFBConfigs (in /usr/lib64/libGL.so.1.2.0) | | | | | ->01.82% (286,836B) 0x6BAD064: glXChooseFBConfig (in /usr/lib64/libGL.so.1.2.0) | | | | | ->01.82% (286,836B) 0x187B3525: ??? | | | | | ->01.82% (286,836B) 0x187B384B: ??? | | | | | ->01.82% (286,836B) 0x187B0157: ??? | | | | | ->01.82% (286,836B) 0x164D5CFF: ??? | | | | | ->01.82% (286,836B) 0x164C0F7E: ??? | | | | | ->01.82% (286,836B) 0x5A84469: QWindowPrivate::create(bool) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Gui.so.5.7.1) | | | | | ->01.82% (286,836B) 0x52C733B: QWidgetPrivate::create_sys(unsigned long long, bool, bool) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Widgets.so.5.7.1) | | | | | ->01.82% (286,836B) 0x52C6B07: QWidget::create(unsigned long long, bool, bool) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Widgets.so.5.7.1) | | | | | ->01.82% (286,836B) 0x52D3330: QWidget::setVisible(bool) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Widgets.so.5.7.1) | | | | | ->01.82% (286,836B) 0x403422: main (main.cpp:11) | | | | | | | | | ->00.51% (80,476B) in 1+ places, all below ms_print's threshold (01.00%) | | | | | | | ->00.10% (15,164B) in 1+ places, all below ms_print's threshold (01.00%) | | | | | ->00.38% (59,416B) in 5+ places, all below ms_print's threshold (01.00%) | | | ->00.13% (20,070B) in 8+ places, all below ms_print's threshold (01.00%) | ->02.22% (349,512B) 0x670DABF: QMetaObject::activate(QObject*, int, int, void**) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | ->02.22% (349,504B) 0x61B180C: QNetworkConfigurationManagerPrivate::updateConfigurations() (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Network.so.5.7.1) | | ->02.22% (349,504B) 0x62245AB: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Network.so.5.7.1) | | ->02.22% (349,504B) 0x670ECA8: QObject::event(QEvent*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->02.22% (349,504B) 0x66E6099: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->02.22% (349,504B) 0x66E8AE9: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->02.22% (349,504B) 0x6733101: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->02.22% (349,504B) 0xA8E7998: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4000.0) | | ->02.22% (349,504B) 0xA8E7CE6: ??? (in /usr/lib64/libglib-2.0.so.0.4000.0) | | ->02.22% (349,504B) 0xA8E7D9A: g_main_context_iteration (in /usr/lib64/libglib-2.0.so.0.4000.0) | | ->02.22% (349,504B) 0x67334F5: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->02.22% (349,504B) 0x66E4398: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->02.22% (349,504B) 0x651AE4A: QThread::exec() (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->02.22% (349,504B) 0x651F537: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->02.22% (349,504B) 0x6E04DC3: start_thread (in /usr/lib64/libpthread-2.17.so) | | ->02.22% (349,504B) 0x792F21B: clone (in /usr/lib64/libc-2.17.so) | | | ->00.00% (8B) in 1+ places, all below ms_print's threshold (01.00%) | ->01.11% (174,756B) 0x670E050: QMetaObject::activate(QObject*, int, int, void**) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | ->01.11% (174,752B) 0x61B180C: QNetworkConfigurationManagerPrivate::updateConfigurations() (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Network.so.5.7.1) | | ->01.11% (174,752B) 0x62245AB: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Network.so.5.7.1) | | ->01.11% (174,752B) 0x670ECA8: QObject::event(QEvent*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->01.11% (174,752B) 0x66E6099: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->01.11% (174,752B) 0x66E8AE9: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->01.11% (174,752B) 0x6733101: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->01.11% (174,752B) 0xA8E7998: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4000.0) | | ->01.11% (174,752B) 0xA8E7CE6: ??? (in /usr/lib64/libglib-2.0.so.0.4000.0) | | ->01.11% (174,752B) 0xA8E7D9A: g_main_context_iteration (in /usr/lib64/libglib-2.0.so.0.4000.0) | | ->01.11% (174,752B) 0x67334F5: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->01.11% (174,752B) 0x66E4398: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->01.11% (174,752B) 0x651AE4A: QThread::exec() (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->01.11% (174,752B) 0x651F537: ??? (in /opt/Qt/5.7.1/5.7/gcc_64/lib/libQt5Core.so.5.7.1) | | ->01.11% (174,752B) 0x6E04DC3: start_thread (in /usr/lib64/libpthread-2.17.so) | | ->01.11% (174,752B) 0x792F21B: clone (in /usr/lib64/libc-2.17.so) | | | ->00.00% (4B) in 1+ places, all below ms_print's threshold (01.00%) | ->05.16% (811,072B) in 233+ places, all below ms_print's threshold (01.00%) -------------------------------------------------------------------------------- n time(ms) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 67 441,818,784 14,753,056 12,091,797 2,661,259 0
-
Hi
Are you sure it comes from QSoundEffect ?
And not from any of the loaded Qt SO files or linux So files?Does a default Qt project produce such build op?
-
@mrjj I believe the private counter is the amount of memory that the operating system has allocated to the program, which may differ from the amount that the program has requested (the OS may be allocating extra memory to improve the performance of future requests). If the allocated memory is great enough, it may take a long time to show cumulative requests sufficient to increase that value.
-
@robcreamer
Ok. i will try to leaving it running in a linux box for days and see if i can reproduce it. -
@mrjj I am not sure. When I removed the QSoundEffect allocations from my real project, the memory allocation quickly reached a steady state. So I isolated the code to a sample project and I was able to reproduce it. In the report, the use of QNetworkConfigurationManager may be of interest. Without QSoundEffect, my main program does not use QtNetwork.
-
@robcreamer
Yes to some degree. it would raise during 2 days ( very little though) , but on day 3 it did not change for 13 hours at all. and i had to reboot to do other stuff.
On linux mint. Qt 5.9 -
Hi @robcreamer, this is outside my expertise, but I suggest you subscribe to the Interest mailing list (http://lists.qt-project.org/mailman/listinfo/interest ) and post your sample code + 122.7-hour log there. I'm sure one of the Qt engineers on the list can tell you what's happening.