Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-14595

Crash when switching items in Designer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 3.5.0-beta1
    • Quick Designer
    • None
    • Windows 7 64 bit
      MSVC2013 32 bit

    Description

      This crash only happens when Creator was built on Qt 5.5. (I used 5.5.0 beta 1). It's probably a bug in Qt, not in Creator but I don't know the code well enough to get to a minimal example. Could you please have a look and forward the report to Qt if needed? Thanks!

      1. Open a simple QML file in the Designer:
        import QtQuick 2.4
        import QtQuick.Window 2.2
        
        Window {
            visible: true
        
            MouseArea {
                anchors.fill: parent
                onClicked: {
                    Qt.quit();
                }
            }
        
            Text {
                text: qsTr("Hello World")
                anchors.centerIn: parent
            }
        }
        
      2. In the Navigator view, click on the elements in the following order: Window, MouseArea, Text, MouseArea.
        Creator crashes after clicking MouseArea for the second time:
        0	CheckBytes	dbgheap.c	1696	0x5a10b2ce	
        1	_free_dbg_nolock	dbgheap.c	1357	0x5a10d2bc	
        2	_free_dbg	dbgheap.c	1265	0x5a10cffe	
        3	free	dbgfree.c	49	0x5a10e57e	
        4	QArrayData::deallocate	qarraydata.cpp	131	0x56a7b02d	
        5	QTypedArrayData<unsigned short>::deallocate	qarraydata.h	222	0x56a131d0	
        6	QString::~QString	qstring.h	1053	0x56a0e353	
        7	QV4::Heap::StringObject::StringObject	qv4stringobject.cpp	92	0x55b60407	
        8	QV4::MemoryManager::alloc<QV4::StringObject,QV4::ExecutionEngine *,QV4::Value>	qv4mm_p.h	117	0x55afb164	
        9	QV4::ExecutionEngine::newStringObject	qv4engine.cpp	552	0x55aef45e	
        10	QV4::RuntimeHelpers::convertToObject	qv4runtime.cpp	440	0x55bc5f38	
        11	QV4::Runtime::getProperty	qv4runtime.cpp	679	0x55bc2c8c	
        12				0x20b705e0	
        13	QV4::SimpleScriptFunction::call	qv4functionobject.cpp	564	0x55b3d491	
        14	QV4::Object::call	qv4object_p.h	302	0x5595be2c	
        15	QQmlJavaScriptExpression::evaluate	qqmljavascriptexpression.cpp	158	0x55c813c0	
        16	QQmlJavaScriptExpression::evaluate	qqmljavascriptexpression.cpp	116	0x55c811a2	
        17	QQmlBinding::update	qqmlbinding.cpp	194	0x55c89dd3	
        18	QQmlBinding::setEnabled	qqmlbinding.cpp	305	0x55c89bd5	
        19	QQmlBinding::setEnabled	qqmlbinding.cpp	286	0x55c89b2d	
        20	QQmlAbstractBinding::setEnabled	qqmlabstractbinding_p.h	110	0x55a2f111	
        21	QQmlObjectCreator::finalize	qqmlobjectcreator.cpp	1196	0x55c9545b	
        22	QQmlIncubatorPrivate::incubate	qqmlincubator.cpp	348	0x55c0c31a	
        23	QQmlEnginePrivate::incubate	qqmlincubator.cpp	89	0x55c0bab3	
        24	QQmlComponent::create	qqmlcomponent.cpp	1069	0x55c05fdd	
        25	QQuickLoaderPrivate::_q_sourceLoaded	qquickloader.cpp	715	0x541dab86	
        26	QQuickLoaderPrivate::load	qquickloader.cpp	597	0x541da142	
        27	QQuickLoader::loadFromSource	qquickloader.cpp	426	0x541d9ae5	
        28	QQuickLoader::setSource	qquickloader.cpp	406	0x541d99d5	
        29	QQuickLoader::setSource	qquickloader.cpp	390	0x541d9365	
        30	QQuickLoader::qt_static_metacall	moc_qquickloader_p.cpp	249	0x541d8e32	
        31	QQuickLoader::qt_metacall	moc_qquickloader_p.cpp	301	0x541d8909	
        32	QMetaObject::metacall	qmetaobject.cpp	297	0x56cd2650	
        33	QQmlPropertyPrivate::write	qqmlproperty.cpp	1298	0x55c001c7	
        34	QQmlPropertyPrivate::writeValueProperty	qqmlproperty.cpp	1237	0x55bffe06	
        35	QQmlPropertyPrivate::writeBinding	qqmlproperty.cpp	1597	0x55c02733	
        36	QQmlBinding::update	qqmlbinding.cpp	199	0x55c89e61	
        37	QQmlBinding::update	qqmlbinding_p.h	97	0x55a2f4f9	
        38	QQmlBinding::expressionChanged	qqmlbinding.cpp	261	0x55c8a33c	
        39	QQmlJavaScriptExpressionGuard_callback	qqmljavascriptexpression.cpp	361	0x55c81b9e	
        40	QQmlNotifier::emitNotify	qqmlnotifier.cpp	73	0x55c5fa2c	
        41	QQmlData::signalEmitted	qqmlengine.cpp	751	0x55be63b8	
        42	QMetaObject::activate	qobject.cpp	3604	0x56d08b2f	
        43	QMetaObject::activate	qobject.cpp	3583	0x56d08a71	
        44	QmlDesigner::PropertyEditorContextObject::specificsUrlChanged	moc_propertyeditorcontextobject.cpp	423	0x50de9baa	
        45	QmlDesigner::PropertyEditorContextObject::setSpecificsUrl	propertyeditorcontextobject.cpp	191	0x50d53328	
        46	QmlDesigner::PropertyEditorQmlBackend::setup	propertyeditorqmlbackend.cpp	261	0x50d54706	
        47	QmlDesigner::PropertyEditorView::setupQmlBackend	propertyeditorview.cpp	423	0x50d40ebb	
        48	QmlDesigner::PropertyEditorView::resetView	propertyeditorview.cpp	349	0x50d3cf89	
        49	QmlDesigner::PropertyEditorView::timerEvent	propertyeditorview.cpp	329	0x50d3d810	
        50	QObject::event	qobject.cpp	1228	0x56d0a55b	
        51	QApplicationPrivate::notify_helper	qapplication.cpp	3717	0x581b5b6e	
        52	QApplication::notify	qapplication.cpp	3161	0x581b1f8e	
        53	QCoreApplication::notifyInternal	qcoreapplication.cpp	963	0x56cc73f7	
        54	QCoreApplication::sendEvent	qcoreapplication.h	224	0x56ccfb49	
        55	QEventDispatcherWin32Private::sendTimerEvent	qeventdispatcher_win.cpp	615	0x56d59e88	
        56	qt_internal_proc	qeventdispatcher_win.cpp	418	0x56d57abd	
        57	InternalCallWinProc	USER32		0x75c862fa	
        58	UserCallWinProcCheckWow	USER32		0x75c86d3a	
        59	DispatchMessageWorker	USER32		0x75c877c4	
        60	DispatchMessageW	USER32		0x75c8788a	
        61	QEventDispatcherWin32::processEvents	qeventdispatcher_win.cpp	807	0x56d585be	
        62	QWindowsGuiEventDispatcher::processEvents	qwindowsguieventdispatcher.cpp	73	0x566441dc	
        63	QEventLoop::processEvents	qeventloop.cpp	129	0x56cc316c	
        64	QEventLoop::exec	qeventloop.cpp	204	0x56cc3372	
        65	QCoreApplication::exec	qcoreapplication.cpp	1216	0x56cc5a22	
        66	QGuiApplication::exec	qguiapplication.cpp	1529	0x57a8fda8	
        67	QApplication::exec	qapplication.cpp	2978	0x581b1be9	
        68	main	main.cpp	521	0xa79aad	
        69	WinMain	qtmain_win.cpp	113	0xa7e77d	
        70	__tmainCRTStartup	crtexe.c	618	0xa7db1f	
        71	WinMainCRTStartup	crtexe.c	466	0xa7d8dd	
        72	BaseThreadInitThunk	kernel32		0x75d8337a	
        73	__RtlUserThreadStart	ntdll32		0x776292e2	
        74	_RtlUserThreadStart	ntdll32		0x776292b5	
        

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thohartm Thomas Hartmann
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes