Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.15.2, 6.0.0
-
-
d250e0070701e9c511ef5b1fb0d23995872ad844 (qt/qtdeclarative/6.1) 8ef947deab6c9345ddac2d96dc60f2490974c1df (qt/tqtc-qtdeclarative/5.15) b65935469440dbe869de163e2cd8426ec9e1b461 (qt/qtdeclarative/6.0)
Description
The following code snippet crashes the process, it was working in Qt 5.9:
import QtQuick 2.0 Item { anchors.horizontalCenter: null }
With the following warning:
Invalid property assignment: unsupported type "QQuickAnchorLine" - Assigning null to incompatible properties in QML is deprecated. This will become a compile error in future versions of Qt.
While the warning is useful to fix the issue, it shouldn't crash.
1 __pthread_kill (x86_64) /usr/lib/system/libsystem_kernel.dylib 0x7fff7303a33a 2 pthread_kill (x86_64) /usr/lib/system/libsystem_pthread.dylib 0x7fff730f6e60 3 abort (x86_64) /usr/lib/system/libsystem_c.dylib 0x7fff72fc1808 4 qt_message_fatal(QtMsgType, QMessageLogContext const&, QString const&) qlogging.cpp 1892 0x10ade351d 5 QMessageLogger::fatal(const char *, ...) const qlogging.cpp 890 0x10c14e9d1 6 qt_assert(const char *, const char *, int) qglobal.cpp 3119 0x10c14c936 7 QQmlObjectCreator::setPropertyValue(QQmlPropertyData const *, QV4::CompiledData::Binding const *) qqmlobjectcreator.cpp 634 0x107f11bd5 8 QQmlObjectCreator::setPropertyBinding(QQmlPropertyData const *, QV4::CompiledData::Binding const *) qqmlobjectcreator.cpp 1137 0x107f082de 9 QQmlObjectCreator::setupBindings(bool) qqmlobjectcreator.cpp 782 0x107f0a47a 10 QQmlObjectCreator::populateInstance(int, QObject *, QObject *, QQmlPropertyData const *) qqmlobjectcreator.cpp 1590 0x107f17669 11 QQmlObjectCreator::setPropertyBinding(QQmlPropertyData const *, QV4::CompiledData::Binding const *) qqmlobjectcreator.cpp 871 0x107f035a4 12 QQmlObjectCreator::setupBindings(bool) qqmlobjectcreator.cpp 782 0x107f0a47a 13 QQmlObjectCreator::populateInstance(int, QObject *, QObject *, QQmlPropertyData const *) qqmlobjectcreator.cpp 1590 0x107f17669 14 QQmlObjectCreator::createInstance(int, QObject *, bool) qqmlobjectcreator.cpp 1371 0x107eff316 15 QQmlObjectCreator::setPropertyBinding(QQmlPropertyData const *, QV4::CompiledData::Binding const *) qqmlobjectcreator.cpp 832 0x107f02b0e 16 QQmlObjectCreator::setupBindings(bool) qqmlobjectcreator.cpp 782 0x107f0a47a 17 QQmlObjectCreator::populateInstance(int, QObject *, QObject *, QQmlPropertyData const *) qqmlobjectcreator.cpp 1590 0x107f17669 18 QQmlObjectCreator::createInstance(int, QObject *, bool) qqmlobjectcreator.cpp 1371 0x107eff316 19 QQmlObjectCreator::create(int, QObject *, QQmlInstantiationInterrupt *, int) qqmlobjectcreator.cpp 214 0x107efb825 20 QQmlComponentPrivate::beginCreate(QQmlRefPointer<QQmlContextData>) qqmlcomponent.cpp 934 0x107c286c3 21 QQmlComponent::beginCreate(QQmlContext *) qqmlcomponent.cpp 887 0x107c27dd5 22 QQmlComponentPrivate::doBeginCreate(QQmlComponent *, QQmlContext *) qqmlcomponent.cpp 371 0x107c20adc 23 QQmlComponent::create(QQmlContext *) qqmlcomponent.cpp 822 0x107c27635 24 QQmlApplicationEnginePrivate::finishLoad(QQmlComponent *) qqmlapplicationengine.cpp 154 0x107baaf94 25 QQmlApplicationEnginePrivate::startLoad(QUrl const&, QByteArray const&, bool) qqmlapplicationengine.cpp 138 0x107baa919 26 QQmlApplicationEngine::load(QUrl const&) qqmlapplicationengine.cpp 283 0x107bac495 27 main main.cpp 41 0x1000085b4 28 start (x86_64) /usr/lib/system/libdyld.dylib 0x7fff72ef2cc9
Attachments
For Gerrit Dashboard: QTBUG-89892 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
342500,2 | Don't crash when trying to invoke non-existing string converter | 6.1 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
342508,3 | Don't crash when trying to invoke non-existing string converter | 6.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
342510,3 | Don't crash when trying to invoke non-existing string converter | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |