Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Possible memleak #337

Closed
tonymorony opened this issue Jul 6, 2020 · 9 comments
Closed

[BUG]: Possible memleak #337

tonymorony opened this issue Jul 6, 2020 · 9 comments
Assignees
Labels
bug Something isn't working P0 Blocker / critical defect under research

Comments

@tonymorony
Copy link

Describe the bug

User reported that after 2-3 days of application running RAM consumption grown to 6Gb
image

I'm testing on my PC at the moment - after few hours RAM consumption grown from 200 Mb to 600 already so it looks like the case (at least on Windows in release mode), need to check on OSX, Linux and Win debug mode to isolate

@tonymorony tonymorony added bug Something isn't working P1 Major issue needs to be fixed 0.2.0 labels Jul 6, 2020
@tonymorony
Copy link
Author

reproduced on my win machine (just left it at night):
image

@Milerius
Copy link

Milerius commented Jul 7, 2020

https://doc.qt.io/qtcreator/creator-heob.html an interesting page !

@tonymorony tonymorony added P0 Blocker / critical defect and removed P1 Major issue needs to be fixed labels Jul 7, 2020
@Milerius
Copy link

Milerius commented Jul 7, 2020

Running leak sanitizer on OSX

==15745==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 1024 byte(s) in 1 object(s) allocated from:
    #0 0x1097a73ed in wrap_malloc (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x453ed)
    #1 0x7fff4a63e074 in SetUpProgramPtrs(fsg_SplineKey*) (libTrueTypeScaler.dylib:x86_64+0x4074)
    #2 0x7fff4a63fd46 in TTGetStrikeSpecs (libTrueTypeScaler.dylib:x86_64+0x5d46)
    #3 0x7fff4a528111 in TConcreteFontScaler::GetFontInfo(FPFontInfo*) const (libFontParser.dylib:x86_64+0x27111)
    #4 0x7fff4a55fbc2 in TFPFont::FillFontInfo(FPFontInfo&) const (libFontParser.dylib:x86_64+0x5ebc2)
    #5 0x7fff4a50752f in TFPFont::GetFontInfo() const (libFontParser.dylib:x86_64+0x652f)
    #6 0x7fff4a5088d6 in FPFontGetBoundingBox (libFontParser.dylib:x86_64+0x78d6)
    #7 0x7fff2e26f102 in get_font_bbox (CoreGraphics:x86_64h+0xb102)
    #8 0x7fff2e26f0b1 in CGFontGetFontBBox (CoreGraphics:x86_64h+0xb0b1)
    #9 0x7fff2fc4a80d in TBaseFont::CalculateFontMetrics(bool, CGFont**) const (CoreText:x86_64+0xd80d)
    #10 0x7fff2fc57212 in TComponentFont::CalculateFontMetrics(bool, CGFont**) const (CoreText:x86_64+0x1a212)
    #11 0x7fff2fc4a4dc in TBaseFont::InitFontMetrics() const (CoreText:x86_64+0xd4dc)
    #12 0x7fff2fc4a232 in TBaseFont::GetStrikeMetrics(double, CGAffineTransform const*, bool) const (CoreText:x86_64+0xd232)
    #13 0x7fff2fc49eeb in TFont::InitStrikeMetrics() const (CoreText:x86_64+0xceeb)
    #14 0x7fff2fcab75d in CTFontGetUnitsPerEm (CoreText:x86_64+0x6e75d)
    #15 0x111b778fd in QCoreTextFontEngine::init() qfontengine_coretext.mm:271
    #16 0x111b77d63 in QCoreTextFontEngine::QCoreTextFontEngine(__CTFont const*, QFontDef const&) qfontengine_coretext.mm:197
    #17 0x111b7d91b in QCoreTextFontDatabaseEngineFactory<QCoreTextFontEngine>::fontEngine(QFontDef const&, void*) qcoretextfontdatabase.mm:387
    #18 0x1089519c2 in loadEngine(int, QFontDef const&, QtFontFamily*, QtFontFoundry*, QtFontStyle*, QtFontSize*) qfontdatabase.cpp:1001
    #19 0x10895059e in QFontDatabase::findFont(QFontDef const&, int) qfontdatabase.cpp:2700
    #20 0x108952bb9 in QFontDatabase::load(QFontPrivate const*, int) qfontdatabase.cpp:2823
    #21 0x1089257f2 in QFontPrivate::engineForScript(int) const qfont.cpp:227
    #22 0x10896250c in QScriptLine::setDefaultHeight(QTextEngine*) qtextengine.cpp
    #23 0x1089bbc84 in QTextDocumentLayoutPrivate::layoutBlock(QTextBlock const&, int, QTextBlockFormat const&, QTextLayoutStruct*, int, int, QTextBlockFormat const*) qtextdocumentlayout.cpp:3524
    #24 0x1089b1a34 in QTextDocumentLayoutPrivate::layoutFlow(QTextFrame::iterator, QTextLayoutStruct*, int, int, QFixed) qtextdocumentlayout.cpp:3304
    #25 0x1089bab2e in QTextDocumentLayoutPrivate::layoutFrame(QTextFrame*, int, int, QFixed, QFixed, QFixed) qtextdocumentlayout.cpp:3045
    #26 0x1089b9d1e in QTextDocumentLayoutPrivate::layoutFrame(QTextFrame*, int, int, QFixed) qtextdocumentlayout.cpp:2935
    #27 0x1089bde5f in QTextDocumentLayout::doLayout(int, int, int) qtextdocumentlayout.cpp:3851
    #28 0x1089bd936 in QTextDocumentLayout::documentChanged(int, int, int) qtextdocumentlayout.cpp:3811
    #29 0x10809d7e1 in QtCharts::ChartAxisElement::handleTitleFontChanged(QFont const&) chartaxiselement.cpp:272
Direct leak of 1024 byte(s) in 1 object(s) allocated from:
    #0 0x1097a73ed in wrap_malloc (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x453ed)
    #1 0x7fff4a63e074 in SetUpProgramPtrs(fsg_SplineKey*) (libTrueTypeScaler.dylib:x86_64+0x4074)
    #2 0x7fff4a63fd46 in TTGetStrikeSpecs (libTrueTypeScaler.dylib:x86_64+0x5d46)
    #3 0x7fff4a528111 in TConcreteFontScaler::GetFontInfo(FPFontInfo*) const (libFontParser.dylib:x86_64+0x27111)
    #4 0x7fff4a55fbc2 in TFPFont::FillFontInfo(FPFontInfo&) const (libFontParser.dylib:x86_64+0x5ebc2)
    #5 0x7fff4a50752f in TFPFont::GetFontInfo() const (libFontParser.dylib:x86_64+0x652f)
    #6 0x7fff4a5088d6 in FPFontGetBoundingBox (libFontParser.dylib:x86_64+0x78d6)
    #7 0x7fff2e26f102 in get_font_bbox (CoreGraphics:x86_64h+0xb102)
    #8 0x7fff2e26f0b1 in CGFontGetFontBBox (CoreGraphics:x86_64h+0xb0b1)
    #9 0x7fff2fc4a80d in TBaseFont::CalculateFontMetrics(bool, CGFont**) const (CoreText:x86_64+0xd80d)
    #10 0x7fff2fc57212 in TComponentFont::CalculateFontMetrics(bool, CGFont**) const (CoreText:x86_64+0x1a212)
    #11 0x7fff2fc4a4dc in TBaseFont::InitFontMetrics() const (CoreText:x86_64+0xd4dc)
    #12 0x7fff2fc4a232 in TBaseFont::GetStrikeMetrics(double, CGAffineTransform const*, bool) const (CoreText:x86_64+0xd232)
    #13 0x7fff2fc49eeb in TFont::InitStrikeMetrics() const (CoreText:x86_64+0xceeb)
    #14 0x7fff2fc4d31a in TFont::GetScaleFactor() const (CoreText:x86_64+0x1031a)
    #15 0x7fff2fc4d237 in TFont::GetScaledMatrix() const (CoreText:x86_64+0x10237)
    #16 0x7fff2fc738c9 in TAttributes::ApplyTextTransform(__CTFont const*) (CoreText:x86_64+0x368c9)
    #17 0x7fff2fc73152 in TAttributes::ApplyFont(__CFDictionary const*, __CTFont const*, void const**) (CoreText:x86_64+0x36152)
    #18 0x7fff2fc72f75 in TAttributes::TAttributes(__CFDictionary const*) (CoreText:x86_64+0x35f75)
    #19 0x7fff2fc7c3c6 in TTypesetterAttrString::Initialize(__CFAttributedString const*) (CoreText:x86_64+0x3f3c6)
    #20 0x7fff2fc7c0fc in TTypesetterAttrString::TTypesetterAttrString(__CFAttributedString const*, __CFDictionary const*) (CoreText:x86_64+0x3f0fc)
    #21 0x7fff2fc7bf82 in CTLineCreateWithAttributedString (CoreText:x86_64+0x3ef82)
    #22 0x7fff2ca8ba68 in TCoreTextEngine::LayoutSingleLine(THIThemeTextInfo*, float) (HIToolbox:x86_64+0x27a68)
    #23 0x7fff2ca8b9ec in TCoreTextEngine::Layout(THIThemeTextInfo*, float, float, TextLayoutType) (HIToolbox:x86_64+0x279ec)
    #24 0x7fff2ca8b75a in TCoreTextEngine::GetThemeTextDimensions(double, THIThemeTextInfo*, double*, double*, double*) (HIToolbox:x86_64+0x2775a)
    #25 0x7fff2ca8a246 in DataEngine::GetTextDimensions(void const*, double, HIThemeTextInfo*, double*, double*, double*) (HIToolbox:x86_64+0x26246)
    #26 0x7fff2ca8a105 in HIThemeGetTextDimensions (HIToolbox:x86_64+0x26105)
    #27 0x7fff2ca89a50 in HIMenuBarView::MeasureMenuTitle(MenuData*, unsigned char, float*, int) (HIToolbox:x86_64+0x25a50)
    #28 0x7fff2ca897dd in HIMenuBarView::MeasureAppMenus() (HIToolbox:x86_64+0x257dd)
    #29 0x7fff2ca89366 in HIMenuBarView::EnsureBarLayout() (HIToolbox:x86_64+0x25366
Direct leak of 1024 byte(s) in 1 object(s) allocated from:
    #0 0x1097a73ed in wrap_malloc (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x453ed)
    #1 0x7fff4a63e074 in SetUpProgramPtrs(fsg_SplineKey*) (libTrueTypeScaler.dylib:x86_64+0x4074)
    #2 0x7fff4a63fd46 in TTGetStrikeSpecs (libTrueTypeScaler.dylib:x86_64+0x5d46)
    #3 0x7fff4a528111 in TConcreteFontScaler::GetFontInfo(FPFontInfo*) const (libFontParser.dylib:x86_64+0x27111)
    #4 0x7fff4a55fbc2 in TFPFont::FillFontInfo(FPFontInfo&) const (libFontParser.dylib:x86_64+0x5ebc2)
    #5 0x7fff4a50752f in TFPFont::GetFontInfo() const (libFontParser.dylib:x86_64+0x652f)
    #6 0x7fff4a560b0e in FPFontGetFontInfo (libFontParser.dylib:x86_64+0x5fb0e)
    #7 0x7fff2e26f027 in get_font_info (CoreGraphics:x86_64h+0xb027)
    #8 0x7fff2e604492 in get_font_info (CoreGraphics:x86_64h+0x3a0492)
    #9 0x7fff2e26efad in CGFontGetNumberOfGlyphs (CoreGraphics:x86_64h+0xafad)
    #10 0x7fff2fc4abde in TBaseFont::CopyGraphicsFont() const (CoreText:x86_64+0xdbde)
    #11 0x7fff2fc572ba in TTenuousComponentFont::CopyGraphicsFont() const (CoreText:x86_64+0x1a2ba)
    #12 0x7fff2fc4b44d in TBaseFont::CopyTable(unsigned int) const (CoreText:x86_64+0xe44d)
    #13 0x7fff2fc57a03 in TTenuousComponentFont::CopyTable(unsigned int) const (CoreText:x86_64+0x1aa03)
    #14 0x7fff2fc4b863 in CTFontCopyTable (CoreText:x86_64+0xe863)
    #15 0x111b76d9f in QCoreTextFontEngine::ct_getSfntTable(void*, unsigned int, unsigned char*, unsigned int*) qfontengine_coretext.mm:97
    #16 0x111b7d2f9 in getFontDescription(__CTFontDescriptor const*, FontDescription*) qcoretextfontdatabase.mm:264
    #17 0x111b7f908 in QCoreTextFontDatabase::themeFont(QPlatformTheme::Font) const qcoretextfontdatabase.mm:759
    #18 0x111b7c54c in QCoreTextFontDatabase::themeFonts() const qcoretextfontdatabase.mm:748
    #19 0x111b0dd90 in QCocoaTheme::font(QPlatformTheme::Font) const qcocoatheme.mm:389
    #20 0x1082183d4 in QApplicationPrivate::initializeWidgetFontHash() qapplication.cpp:609
    #21 0x10821811d in QApplicationPrivate::init() qapplication.cpp:524
    #22 0x104c6bb90 in main main.cpp:111
    #23 0x7fff67e61cc8 in start (libdyld.dylib:x86_64+0x1acc8)
Direct leak of 1024 byte(s) in 1 object(s) allocated from:
    #0 0x1097a73ed in wrap_malloc (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x453ed)
    #1 0x7fff4a63e074 in SetUpProgramPtrs(fsg_SplineKey*) (libTrueTypeScaler.dylib:x86_64+0x4074)
    #2 0x7fff4a63fd46 in TTGetStrikeSpecs (libTrueTypeScaler.dylib:x86_64+0x5d46)
    #3 0x7fff4a528111 in TConcreteFontScaler::GetFontInfo(FPFontInfo*) const (libFontParser.dylib:x86_64+0x27111)
    #4 0x7fff4a55fbc2 in TFPFont::FillFontInfo(FPFontInfo&) const (libFontParser.dylib:x86_64+0x5ebc2)
    #5 0x7fff4a50752f in TFPFont::GetFontInfo() const (libFontParser.dylib:x86_64+0x652f)
    #6 0x7fff4a5088d6 in FPFontGetBoundingBox (libFontParser.dylib:x86_64+0x78d6)
    #7 0x7fff2e26f102 in get_font_bbox (CoreGraphics:x86_64h+0xb102)
    #8 0x7fff2e26f0b1 in CGFontGetFontBBox (CoreGraphics:x86_64h+0xb0b1)
    #9 0x7fff2fc4a80d in TBaseFont::CalculateFontMetrics(bool, CGFont**) const (CoreText:x86_64+0xd80d)
    #10 0x7fff2fc57212 in TComponentFont::CalculateFontMetrics(bool, CGFont**) const (CoreText:x86_64+0x1a212)
    #11 0x7fff2fc4a4dc in TBaseFont::InitFontMetrics() const (CoreText:x86_64+0xd4dc)
    #12 0x7fff2fc4a232 in TBaseFont::GetStrikeMetrics(double, CGAffineTransform const*, bool) const (CoreText:x86_64+0xd232)
    #13 0x7fff2fc49eeb in TFont::InitStrikeMetrics() const (CoreText:x86_64+0xceeb)
    #14 0x7fff2fcab75d in CTFontGetUnitsPerEm (CoreText:x86_64+0x6e75d)
    #15 0x111b778fd in QCoreTextFontEngine::init() qfontengine_coretext.mm:271
    #16 0x111b77d63 in QCoreTextFontEngine::QCoreTextFontEngine(__CTFont const*, QFontDef const&) qfontengine_coretext.mm:197
    #17 0x111b7d91b in QCoreTextFontDatabaseEngineFactory<QCoreTextFontEngine>::fontEngine(QFontDef const&, void*) qcoretextfontdatabase.mm:387
    #18 0x1089519c2 in loadEngine(int, QFontDef const&, QtFontFamily*, QtFontFoundry*, QtFontStyle*, QtFontSize*) qfontdatabase.cpp:1001
    #19 0x1089508ef in QFontDatabase::findFont(QFontDef const&, int) qfontdatabase.cpp:2737
    #20 0x108952bb9 in QFontDatabase::load(QFontPrivate const*, int) qfontdatabase.cpp:2823
    #21 0x1089257f2 in QFontPrivate::engineForScript(int) const qfont.cpp:227
    #22 0x10892b4a5 in QFontInfo::family() const qfont.cpp:2560
    #23 0x11474e311  (<unknown module>)
    #24 0x114644b0c  (<unknown module>)
    #25 0x107bc3402 in QQmlMetaType::registerPluginTypes(QObject*, QString const&, QString const&, QString const&, int, QList<QQmlError>*) qqmlmetatype.cpp:732
    #26 0x107c009b4 in registerPluginTypes(QObject*, QString const&, QString const&, QString const&, int, QList<QQmlError>*) qqmlimport.cpp:2165
    #27 0x107bfa800 in QQmlImportDatabase::importDynamicPlugin(QString const&, QString const&, QString const&, int, QList<QQmlError>*) qqmlimport.cpp:2282
    #28 0x107bf9202 in QQmlImportsPrivate::importExtension(QString const&, QString const&, int, int, QQmlImportDatabase*, QQmlTypeLoaderQmldirContent const&, QList<QQmlError>*) qqmlimport.cpp:1221
    #29 0x107bfc8ba in QQmlImportsPrivate::addLibraryImport(QString const&, QString const&, int, int, QString const&, QString const&, bool, QQmlImportDatabase*, QList<QQmlError>*) qqmlimport.cpp:1571
Direct leak of 320 byte(s) in 1 object(s) allocated from:
    #0 0x1097a77c2 in wrap_calloc (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x457c2)
    #1 0x7fff66790999 in nw_hash_table_create (libnetwork.dylib:x86_64+0x6999)
    #2 0x7fff66790ed4 in nw_context_initialize_globals (libnetwork.dylib:x86_64+0x6ed4)
    #3 0x7fff667900f3 in nw_context_activate (libnetwork.dylib:x86_64+0x60f3)
    #4 0x7fff67e08657 in _dispatch_client_callout (libdispatch.dylib:x86_64+0x2657)
    #5 0x7fff67e097dd in _dispatch_once_callout (libdispatch.dylib:x86_64+0x37dd)
    #6 0x7fff6678f238 in -[NWConcrete_nw_parameters initWithStack:] (libnetwork.dylib:x86_64+0x5238)
    #7 0x7fff667a961f in nw_path_create_evaluator_for_endpoint (libnetwork.dylib:x86_64+0x1f61f)
    #8 0x7fff3b7e4638 in SCNetworkReachabilityGetFlags (SystemConfiguration:x86_64+0x8638)
    #9 0x107f6bfaf in QNetworkConnectionMonitor::setTargets(QHostAddress const&, QHostAddress const&) qnetconmonitor_darwin.mm:223
    #10 0x107f6cb49 in QNetworkStatusMonitor::QNetworkStatusMonitor() qnetconmonitor_darwin.mm:318
    #11 0x107e86272 in QNetworkAccessManagerPrivate::QNetworkAccessManagerPrivate() qnetworkaccessmanager_p.h:83
    #12 0x107e80599 in QNetworkAccessManager::QNetworkAccessManager(QObject*) qnetworkaccessmanager.cpp:457
    #13 0x107b9f983 in QQmlEngine::networkAccessManager() const qqmlengine.cpp:1223
    #14 0x107c410cd in QV4::QQmlXMLHttpRequestCtor::virtualCallAsConstructor(QV4::FunctionObject const*, QV4::Value const*, int, QV4::Value const*) qqmlxmlhttprequest.cpp:1688
    #15 0x107adf30f in QV4::Moth::VME::interpret(QV4::CppStackFrame*, QV4::ExecutionEngine*, char const*) qv4vme_moth.cpp:807
    #16 0x107add9f1 in QV4::Moth::VME::exec(QV4::CppStackFrame*, QV4::ExecutionEngine*) qv4vme_moth.cpp:463
    #17 0x107a83ec4 in QV4::Function::call(QV4::Value const*, QV4::Value const*, int, QV4::ExecutionContext const*) qv4function.cpp:69
    #18 0x107c080dd in QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*) qqmljavascriptexpression.cpp:212
    #19 0x107bbe395 in QQmlBoundSignalExpression::evaluate(void**) qqmlboundsignal.cpp:224
    #20 0x107bbeb6a in QQmlBoundSignal_callback(QQmlNotifierEndpoint*, void**) qqmlboundsignal.cpp:361
    #21 0x107bed3b4 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) qqmlnotifier.cpp:104
    #22 0x1090ffed7 in void doActivate<false>(QObject*, int, void**) qobject.cpp:3778
    #23 0x107c67ae6 in QQmlTimer::event(QEvent*) qqmltimer.cpp:333
    #24 0x10821dfe9 in QApplicationPrivate::notify_helper(QObject*, QEvent*) qapplication.cpp:3671
    #25 0x10821f475 in QApplication::notify(QObject*, QEvent*) qapplication.cpp
    #26 0x1090ccd63 in QCoreApplication::notifyInternal2(QObject*, QEvent*) qcoreapplication.cpp:1061
    #27 0x1090ce0a8 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) qcoreapplication.cpp:1815
    #28 0x111b33df8 in QCocoaEventDispatcherPrivate::processPostedEvents() qcocoaeventdispatcher.mm:904
    #29 0x7fff2de663c4 in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ (CoreFoundation:x86_64h+0x833c4)
Direct leak of 192 byte(s) in 1 object(s) allocated from:
    #0 0x1097b37cd in wrap__Znwm (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x517cd)
    #1 0x107be1d1e in QQmlPropertyCache::copy(int) qqmlpropertycache.cpp:256
    #2 0x107be1f65 in QQmlPropertyCache::copyAndReserve(int, int, int, int) qqmlpropertycache.cpp:278
    #3 0x107b8d8ed in QQmlPropertyCacheCreator<QV4::ExecutableCompilationUnit>::createMetaObject(int, QV4::CompiledData::Object const*, QQmlRefPointer<QQmlPropertyCache> const&) qqmlpropertycachecreator_p.h:351
    #4 0x107b8d183 in QQmlPropertyCacheCreator<QV4::ExecutableCompilationUnit>::buildMetaObjectRecursively(int, QQmlBindingInstantiationContext const&, QQmlPropertyCacheCreator<QV4::ExecutableCompilationUnit>::VMEMetaObjectIsRequired) qqmlpropertycachecreator_p.h:269
    #5 0x107b84875 in QQmlPropertyCacheCreator<QV4::ExecutableCompilationUnit>::buildMetaObjects() qqmlpropertycachecreator_p.h:213
    #6 0x107b83e1e in QQmlTypeData::createTypeAndPropertyCaches(QQmlRefPointer<QQmlTypeNameCache> const&, QV4::ResolvedTypeReferenceMap const&) qqmltypedata.cpp:247
    #7 0x107b85d8b in QQmlTypeData::done() qqmltypedata.cpp:457
    #8 0x107b78f10 in QQmlDataBlob::tryDone() qqmldatablob.cpp:518
    #9 0x107bd58a4 in QQmlTypeLoader::setData(QQmlDataBlob*, QQmlDataBlob::SourceCodeData const&) qqmltypeloader.cpp:457
    #10 0x107bd50ca in QQmlTypeLoader::setData(QQmlDataBlob*, QString const&) qqmltypeloader.cpp:437
    #11 0x107bd4efa in QQmlTypeLoader::loadThread(QQmlDataBlob*) qqmltypeloader.cpp:299
    #12 0x107bd47ab in void QQmlTypeLoader::doLoad<PlainLoader>(PlainLoader const&, QQmlDataBlob*, QQmlTypeLoader::Mode) qqmltypeloader.cpp:205
    #13 0x107bd8719 in QQmlTypeLoader::getType(QUrl const&, QQmlTypeLoader::Mode) qqmltypeloader.cpp:825
    #14 0x107b8a022 in QQmlTypeData::resolveTypes() qqmltypedata.cpp:875
    #15 0x107b89646 in QQmlTypeData::allDependenciesDone() qqmltypedata.cpp:745
    #16 0x107bd586b in QQmlTypeLoader::setData(QQmlDataBlob*, QQmlDataBlob::SourceCodeData const&) qqmltypeloader.cpp:450
    #17 0x107bd50ca in QQmlTypeLoader::setData(QQmlDataBlob*, QString const&) qqmltypeloader.cpp:437
    #18 0x107bd4efa in QQmlTypeLoader::loadThread(QQmlDataBlob*) qqmltypeloader.cpp:299
    #19 0x107bd47ab in void QQmlTypeLoader::doLoad<PlainLoader>(PlainLoader const&, QQmlDataBlob*, QQmlTypeLoader::Mode) qqmltypeloader.cpp:205
    #20 0x107bd8719 in QQmlTypeLoader::getType(QUrl const&, QQmlTypeLoader::Mode) qqmltypeloader.cpp:825
    #21 0x107b8a022 in QQmlTypeData::resolveTypes() qqmltypedata.cpp:875
    #22 0x107b89646 in QQmlTypeData::allDependenciesDone() qqmltypedata.cpp:745
    #23 0x107bd586b in QQmlTypeLoader::setData(QQmlDataBlob*, QQmlDataBlob::SourceCodeData const&) qqmltypeloader.cpp:450
    #24 0x107bd50ca in QQmlTypeLoader::setData(QQmlDataBlob*, QString const&) qqmltypeloader.cpp:437
    #25 0x107bd4efa in QQmlTypeLoader::loadThread(QQmlDataBlob*) qqmltypeloader.cpp:299
    #26 0x107bd47ab in void QQmlTypeLoader::doLoad<PlainLoader>(PlainLoader const&, QQmlDataBlob*, QQmlTypeLoader::Mode) qqmltypeloader.cpp:205
    #27 0x107bd8719 in QQmlTypeLoader::getType(QUrl const&, QQmlTypeLoader::Mode) qqmltypeloader.cpp:825
    #28 0x107b8a022 in QQmlTypeData::resolveTypes() qqmltypedata.cpp:875
    #29 0x107b89646 in QQmlTypeData::allDependenciesDone() qqmltypedata.cpp:745
Direct leak of 192 byte(s) in 1 object(s) allocated from:
    #0 0x1097b37cd in wrap__Znwm (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x517cd)
    #1 0x107be1d1e in QQmlPropertyCache::copy(int) qqmlpropertycache.cpp:256
    #2 0x107be1f65 in QQmlPropertyCache::copyAndReserve(int, int, int, int) qqmlpropertycache.cpp:278
    #3 0x107c30c6d in QQmlPropertyCacheCreator<QQmlTypeCompiler>::createMetaObject(int, QmlIR::Object const*, QQmlRefPointer<QQmlPropertyCache> const&) qqmlpropertycachecreator_p.h:351
    #4 0x107c30669 in QQmlPropertyCacheCreator<QQmlTypeCompiler>::buildMetaObjectRecursively(int, QQmlBindingInstantiationContext const&, QQmlPropertyCacheCreator<QQmlTypeCompiler>::VMEMetaObjectIsRequired) qqmlpropertycachecreator_p.h:269
    #5 0x107c307b7 in QQmlPropertyCacheCreator<QQmlTypeCompiler>::buildMetaObjectRecursively(int, QQmlBindingInstantiationContext const&, QQmlPropertyCacheCreator<QQmlTypeCompiler>::VMEMetaObjectIsRequired) qqmlpropertycachecreator_p.h:291
    #6 0x107c29773 in QQmlPropertyCacheCreator<QQmlTypeCompiler>::buildMetaObjects() qqmlpropertycachecreator_p.h:213
    #7 0x107c2878e in QQmlTypeCompiler::compile() qqmltypecompiler.cpp:85
    #8 0x107b87cfe in QQmlTypeData::compile(QQmlRefPointer<QQmlTypeNameCache> const&, QV4::ResolvedTypeReferenceMap*, std::__1::function<QByteArray ()> const&) qqmltypedata.cpp:776
    #9 0x107b858c7 in QQmlTypeData::done() qqmltypedata.cpp:453
    #10 0x107b78f10 in QQmlDataBlob::tryDone() qqmldatablob.cpp:518
    #11 0x107bd58a4 in QQmlTypeLoader::setData(QQmlDataBlob*, QQmlDataBlob::SourceCodeData const&) qqmltypeloader.cpp:457
    #12 0x107bd50ca in QQmlTypeLoader::setData(QQmlDataBlob*, QString const&) qqmltypeloader.cpp:437
    #13 0x107bd4efa in QQmlTypeLoader::loadThread(QQmlDataBlob*) qqmltypeloader.cpp:299
    #14 0x107bd47ab in void QQmlTypeLoader::doLoad<PlainLoader>(PlainLoader const&, QQmlDataBlob*, QQmlTypeLoader::Mode) qqmltypeloader.cpp:205
    #15 0x107bd8719 in QQmlTypeLoader::getType(QUrl const&, QQmlTypeLoader::Mode) qqmltypeloader.cpp:825
    #16 0x107b8a022 in QQmlTypeData::resolveTypes() qqmltypedata.cpp:875
    #17 0x107b89646 in QQmlTypeData::allDependenciesDone() qqmltypedata.cpp:745
    #18 0x107bd586b in QQmlTypeLoader::setData(QQmlDataBlob*, QQmlDataBlob::SourceCodeData const&) qqmltypeloader.cpp:450
    #19 0x107bd50ca in QQmlTypeLoader::setData(QQmlDataBlob*, QString const&) qqmltypeloader.cpp:437
    #20 0x107bd4efa in QQmlTypeLoader::loadThread(QQmlDataBlob*) qqmltypeloader.cpp:299
    #21 0x107bd47ab in void QQmlTypeLoader::doLoad<PlainLoader>(PlainLoader const&, QQmlDataBlob*, QQmlTypeLoader::Mode) qqmltypeloader.cpp:205
    #22 0x107bd8719 in QQmlTypeLoader::getType(QUrl const&, QQmlTypeLoader::Mode) qqmltypeloader.cpp:825
    #23 0x107b8a022 in QQmlTypeData::resolveTypes() qqmltypedata.cpp:875
    #24 0x107b89646 in QQmlTypeData::allDependenciesDone() qqmltypedata.cpp:745
    #25 0x107bd586b in QQmlTypeLoader::setData(QQmlDataBlob*, QQmlDataBlob::SourceCodeData const&) qqmltypeloader.cpp:450
    #26 0x107bd50ca in QQmlTypeLoader::setData(QQmlDataBlob*, QString const&) qqmltypeloader.cpp:437
    #27 0x107bd4efa in QQmlTypeLoader::loadThread(QQmlDataBlob*) qqmltypeloader.cpp:299
    #28 0x107bd47ab in void QQmlTypeLoader::doLoad<PlainLoader>(PlainLoader const&, QQmlDataBlob*, QQmlTypeLoader::Mode) qqmltypeloader.cpp:205
    #29 0x107bd8719 in QQmlTypeLoader::getType(QUrl const&, QQmlTypeLoader::Mode) qqmltypeloader.cpp:825

@dth88
Copy link

dth88 commented Jul 8, 2020

left for a night on my mac 10.14.5, started at ~150MB, there was a spike to ~300MB in the morning, now stable at ~240MB, will update if anything changes during the next few days.

@dth88
Copy link

dth88 commented Jul 8, 2020

MacOS 10.14.5 htop and activity monitor at start:
Screenshot 2020-07-08 at 15 44 54
Screenshot 2020-07-08 at 15 48 44

htop and activity monitor in two hours after app launched:
Screenshot 2020-07-08 at 17 49 24
Screenshot 2020-07-08 at 17 49 38

Let me know if you would like me to continue monitoring and provide you with htop results after 12-24 hours.

@tonymorony
Copy link
Author

@dathbezumniy could you please try release build (./romans_super_ci_tool build release, ./romans_super_ci_tool bundle release) also just to be sure?

@dth88
Copy link

dth88 commented Jul 8, 2020

for release build htop and activity monititor at start:
Screenshot 2020-07-08 at 19 42 51
Screenshot 2020-07-08 at 19 43 08

htop and activity monitor after ~2 hours:

Screenshot 2020-07-08 at 22 47 42
Screenshot 2020-07-08 at 22 47 27

@Milerius
Copy link

Milerius commented Jul 8, 2020

It's seems that we are safe on OSX ahah

@tonymorony
Copy link
Author

should be fixed in latest dev by #357

@ca333 ca333 mentioned this issue Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0 Blocker / critical defect under research
Projects
None yet
Development

No branches or pull requests

3 participants