Application hangs in loadEngine
Unsolved
QML and Qt Quick
-
Hi,
I have a problem, my application is compiling, but when I run it, it is hanging in
_engine->load(QUrl(QStringLiteral("qrc:/main.qml")));
but no errors are written to the console. Running in gdb gives me this
#0 0x00007fffe5c1b036 in () at /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 #1 0x00007fffe5c0914d in () at /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 #2 0x00007fffe5c0a82d in FcConfigSubstituteWithPat () at /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 #3 0x00007fffe5f6234f in QFontconfigDatabase::setupFontEngine(QFontEngineFT*, QFontDef const&) const () at /home/maxwell/Qt/5.13.1/gcc_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5 #4 0x00007fffe5f62c49 in QFontconfigDatabase::fontEngine(QFontDef const&, void*) () at /home/maxwell/Qt/5.13.1/gcc_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5 #5 0x00007ffff46719c0 in loadEngine(int, QFontDef const&, QtFontFamily*, QtFontFoundry*, QtFontStyle*, QtFontSize*) [clone .isra.85] [clone .constprop.102] () at /opt/qt5/gcc_64/lib/libQt5Gui.so.5 #6 0x00007ffff46724ba in QFontDatabase::findFont(QFontDef const&, int) () at /opt/qt5/gcc_64/lib/libQt5Gui.so.5 #7 0x00007ffff465b54f in QFontEngineMulti::loadEngine(int) () at /opt/qt5/gcc_64/lib/libQt5Gui.so.5 #8 0x00007ffff465c3a5 in QFontEngineMulti::ensureEngineAt(int) () at /opt/qt5/gcc_64/lib/libQt5Gui.so.5 #9 0x00007ffff465c915 in QFontEngineMulti::stringToCMap(QChar const*, int, QGlyphLayout*, int*, QFlags<QFontEngine::ShaperFlag>) const () at /opt/qt5/gcc_64/lib/libQt5Gui.so.5 #10 0x00007ffff467c476 in QTextEngine::shapeText(int) const () at /opt/qt5/gcc_64/lib/libQt5Gui.so.5 #11 0x00007ffff467cce9 in QTextEngine::shape(int) const () at /opt/qt5/gcc_64/lib/libQt5Gui.so.5 #12 0x00007ffff468e927 in QTextLine::layout_helper(int) () at /opt/qt5/gcc_64/lib/libQt5Gui.so.5 #13 0x00007ffff468f653 in QTextLine::setLineWidth(double) () at /opt/qt5/gcc_64/lib/libQt5Gui.so.5 #14 0x00007ffff4ee95db in QQuickTextPrivate::setLineGeometry(QTextLine&, double, double&) () at /opt/qt5/gcc_64/lib/libQt5Quick.so.5 #15 0x00007ffff4eeaad0 in QQuickTextPrivate::setupTextLayout(double*) () at /opt/qt5/gcc_64/lib/libQt5Quick.so.5 #16 0x00007ffff4eec724 in QQuickTextPrivate::updateSize() () at /opt/qt5/gcc_64/lib/libQt5Quick.so.5 #17 0x00007ffff4eed7e5 in QQuickTextPrivate::updateLayout() () at /opt/qt5/gcc_64/lib/libQt5Quick.so.5 #18 0x00007ffff4eeeb03 in QQuickText::componentComplete() () at /opt/qt5/gcc_64/lib/libQt5Quick.so.5 #19 0x00007ffff4090132 in QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) () at /opt/qt5/gcc_64/lib/libQt5Qml.so.5 #20 0x00007ffff4019667 in QQmlComponentPrivate::complete(QQmlEnginePrivate*, QQmlComponentPrivate::ConstructionState*) () at /opt/qt5/gcc_64/lib/libQt5Qml.so.5 #21 0x00007ffff4019782 in QQmlComponentPrivate::completeCreate() () at /opt/qt5/gcc_64/lib/libQt5Qml.so.5 #22 0x00007ffff401953c in QQmlComponent::create(QQmlContext*) () at /opt/qt5/gcc_64/lib/libQt5Qml.so.5 #23 0x00007ffff408638b in QQmlApplicationEnginePrivate::finishLoad(QQmlComponent*) () at /opt/qt5/gcc_64/lib/libQt5Qml.so.5 #24 0x00007ffff408660e in QQmlApplicationEnginePrivate::startLoad(QUrl const&, QByteArray const&, bool) () at /opt/qt5/gcc_64/lib/libQt5Qml.so.5 #25 0x00007ffff408663d in QQmlApplicationEngine::load(QUrl const&) () at /opt/qt5/gcc_64/lib/libQt5Qml.so.5
what could be the problem?
-
Hi,
How many versions of Qt do you have on your system ?
How did you install them ?