Important: Please read the Qt Code of Conduct -

Application hangs in loadEngine

  • Hi,

    I have a problem, my application is compiling, but when I run it, it is hanging in


    but no errors are written to the console. Running in gdb gives me this

    #0  0x00007fffe5c1b036 in  () at /usr/lib/x86_64-linux-gnu/
    #1  0x00007fffe5c0914d in  () at /usr/lib/x86_64-linux-gnu/
    #2  0x00007fffe5c0a82d in FcConfigSubstituteWithPat () at /usr/lib/x86_64-linux-gnu/
    #3  0x00007fffe5f6234f in QFontconfigDatabase::setupFontEngine(QFontEngineFT*, QFontDef const&) const () at /home/maxwell/Qt/5.13.1/gcc_64/plugins/platforms/../../lib/
    #4  0x00007fffe5f62c49 in QFontconfigDatabase::fontEngine(QFontDef const&, void*) () at /home/maxwell/Qt/5.13.1/gcc_64/plugins/platforms/../../lib/
    #5  0x00007ffff46719c0 in loadEngine(int, QFontDef const&, QtFontFamily*, QtFontFoundry*, QtFontStyle*, QtFontSize*) [clone .isra.85] [clone .constprop.102] () at /opt/qt5/gcc_64/lib/
    #6  0x00007ffff46724ba in QFontDatabase::findFont(QFontDef const&, int) () at /opt/qt5/gcc_64/lib/
    #7  0x00007ffff465b54f in QFontEngineMulti::loadEngine(int) () at /opt/qt5/gcc_64/lib/
    #8  0x00007ffff465c3a5 in QFontEngineMulti::ensureEngineAt(int) () at /opt/qt5/gcc_64/lib/
    #9  0x00007ffff465c915 in QFontEngineMulti::stringToCMap(QChar const*, int, QGlyphLayout*, int*, QFlags<QFontEngine::ShaperFlag>) const () at /opt/qt5/gcc_64/lib/
    #10 0x00007ffff467c476 in QTextEngine::shapeText(int) const () at /opt/qt5/gcc_64/lib/
    #11 0x00007ffff467cce9 in QTextEngine::shape(int) const () at /opt/qt5/gcc_64/lib/
    #12 0x00007ffff468e927 in QTextLine::layout_helper(int) () at /opt/qt5/gcc_64/lib/
    #13 0x00007ffff468f653 in QTextLine::setLineWidth(double) () at /opt/qt5/gcc_64/lib/
    #14 0x00007ffff4ee95db in QQuickTextPrivate::setLineGeometry(QTextLine&, double, double&) () at /opt/qt5/gcc_64/lib/
    #15 0x00007ffff4eeaad0 in QQuickTextPrivate::setupTextLayout(double*) () at /opt/qt5/gcc_64/lib/
    #16 0x00007ffff4eec724 in QQuickTextPrivate::updateSize() () at /opt/qt5/gcc_64/lib/
    #17 0x00007ffff4eed7e5 in QQuickTextPrivate::updateLayout() () at /opt/qt5/gcc_64/lib/
    #18 0x00007ffff4eeeb03 in QQuickText::componentComplete() () at /opt/qt5/gcc_64/lib/
    #19 0x00007ffff4090132 in QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) () at /opt/qt5/gcc_64/lib/
    #20 0x00007ffff4019667 in QQmlComponentPrivate::complete(QQmlEnginePrivate*, QQmlComponentPrivate::ConstructionState*) () at /opt/qt5/gcc_64/lib/
    #21 0x00007ffff4019782 in QQmlComponentPrivate::completeCreate() () at /opt/qt5/gcc_64/lib/
    #22 0x00007ffff401953c in QQmlComponent::create(QQmlContext*) () at /opt/qt5/gcc_64/lib/
    #23 0x00007ffff408638b in QQmlApplicationEnginePrivate::finishLoad(QQmlComponent*) () at /opt/qt5/gcc_64/lib/
    #24 0x00007ffff408660e in QQmlApplicationEnginePrivate::startLoad(QUrl const&, QByteArray const&, bool) () at /opt/qt5/gcc_64/lib/
    #25 0x00007ffff408663d in QQmlApplicationEngine::load(QUrl const&) () at /opt/qt5/gcc_64/lib/

    what could be the problem?

  • Lifetime Qt Champion


    How many versions of Qt do you have on your system ?
    How did you install them ?

Log in to reply