Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-136951

Sporadic crashes on QQmlObjectCreator::createInstance

    XMLWordPrintable

Details

    • Windows

    Description

      Observing this when analyzing our users' crashes in Sentry.

      It's never reproduced in our testing environment, so I have no idea about step/preconditions.

       

      Unhandled exception at 0x00007FF8A8FEF4CA (Qt6Qml.dll) in eecf0319-2dc3-4347-bee1-621ebd9a015c.dmp: 0xC0000005: Access violation writing location 0x0000000000000000.
      

       

      Call stack:

       	[Inline Frame] Qt6Qml.dll!QQmlGuardImpl::{ctor}(const QQmlGuardImpl &) Line 144	C++
       	[Inline Frame] Qt6Qml.dll!QQmlGuard<QObject>::{ctor}(const QQmlGuard<QObject> &) Line 199	C++
       	[Inline Frame] Qt6Qml.dll!QFiniteStack<QQmlGuard<QObject>>::push(const QQmlGuard<QObject> &) Line 81	C++
      >	Qt6Qml.dll!QQmlObjectCreator::createInstance(int index, QObject * parent, bool isContextObject) Line 1332	C++
       	Qt6Qml.dll!QQmlObjectCreator::create(int subComponentIndex, QObject * parent, QQmlInstantiationInterrupt * interrupt, int flags) Line 205	C++
       	Qt6Qml.dll!QQmlObjectCreator::createInstance(int index, QObject * parent, bool isContextObject) Line 1350	C++
       	Qt6Qml.dll!QQmlObjectCreator::create(int subComponentIndex, QObject * parent, QQmlInstantiationInterrupt * interrupt, int flags) Line 205	C++
       	Qt6Qml.dll!QQmlObjectCreator::createInstance(int index, QObject * parent, bool isContextObject) Line 1350	C++
       	Qt6Qml.dll!QQmlObjectCreator::create(int subComponentIndex, QObject * parent, QQmlInstantiationInterrupt * interrupt, int flags) Line 205	C++
       	Qt6Qml.dll!QQmlIncubatorPrivate::incubate(QQmlInstantiationInterrupt & i) Line 286	C++
       	Qt6Qml.dll!QQmlIncubationController::incubateFor(int msecs) Line 428	C++
       	[Inline Frame] Qt6Quick.dll!QtPrivate::FunctorCall<QtPrivate::IndexesList<>,QtPrivate::List<>,void,void (__cdecl QQuickWindow::*)(void)>::call::__l2::<lambda_1>::operator()() Line 152	C++
       	[Inline Frame] Qt6Quick.dll!QtPrivate::FunctorCallBase::call_internal(void * *) Line 65	C++
       	[Inline Frame] Qt6Quick.dll!QtPrivate::FunctorCall<QtPrivate::IndexesList<>,QtPrivate::List<>,void,void (__cdecl QQuickWindow::*)(void)>::call(void(QQuickWindow::*)() o, QQuickWindow *) Line 151	C++
       	[Inline Frame] Qt6Quick.dll!QtPrivate::FunctionPointer<void (__cdecl QQuickWindow::*)(void)>::call(void(QQuickWindow::*)()) Line 199	C++
       	Qt6Quick.dll!QtPrivate::QCallableObject<void (__cdecl QQuickWindow::*)(void),QtPrivate::List<>,void>::impl(int which, QtPrivate::QSlotObjectBase * this_, QObject * r, void * * a, bool * ret) Line 584	C++
       	[Inline Frame] Qt6Core.dll!QtPrivate::QSlotObjectBase::call(QObject *) Line 486	C++
       	Qt6Core.dll!doActivate<0>(QObject * sender, int signal_index, void * * argv) Line 4123	C++
       	Qt6Core.dll!QMetaObject::activate(QObject * sender, const QMetaObject * m, int local_signal_index, void * * argv) Line 4184	C++
       	[Inline Frame] Qt6Quick.dll!QSGThreadedRenderLoop::polishAndSync::__l53::<lambda_1>::operator()() Line 1705	C++
       	Qt6Quick.dll!QSGThreadedRenderLoop::polishAndSync(QSGThreadedRenderLoop::Window * w, bool inExpose) Line 1726	C++
       	Qt6Quick.dll!QSGThreadedRenderLoop::handleUpdateRequest(QQuickWindow * window) Line 1405	C++
       	Qt6Quick.dll!QQuickWindow::event(QEvent * event) Line 1589	C++
       	Qt6Core.dll!QCoreApplication::notifyInternal2(QObject * receiver, QEvent * event) Line 1177	C++
       	Qt6Gui.dll!QPlatformWindow::deliverUpdateRequest() Line 793	C++
       	Qt6Gui.dll!QPlatformWindow::windowEvent(QEvent * event) Line 455	C++
       	[Inline Frame] Qt6Gui.dll!QGuiApplicationPrivate::sendQWindowEventToQPlatformWindow(QWindow *) Line 2120	C++
       	Qt6Gui.dll!QGuiApplication::notify(QObject * object, QEvent * event) Line 2038	C++
       	Qt6Core.dll!QCoreApplication::notifyInternal2(QObject * receiver, QEvent * event) Line 1177	C++
       	Qt6Core.dll!QEventDispatcherWin32Private::sendTimerEvent(int timerId) Line 403	C++
       	Qt6Core.dll!QEventDispatcherWin32::event(QEvent * e) Line 885	C++
       	Qt6Core.dll!QCoreApplication::notifyInternal2(QObject * receiver, QEvent * event) Line 1177	C++
       	[Inline Frame] Qt6Core.dll!QCoreApplication::sendEvent(QObject *) Line 1617	C++
       	Qt6Core.dll!QCoreApplicationPrivate::sendPostedEvents(QObject * receiver, int event_type, QThreadData * data) Line 1951	C++
       	Qt6Gui.dll!QWindowsGuiEventDispatcher::sendPostedEvents() Line 44	C++
       	Qt6Core.dll!QEventDispatcherWin32::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag> flags) Line 470	C++
       	Qt6Gui.dll!QWindowsGuiEventDispatcher::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag> flags) Line 37	C++
       	[Inline Frame] Qt6Core.dll!QEventLoop::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag>) Line 103	C++
       	Qt6Core.dll!QEventLoop::exec(QFlags<enum QEventLoop::ProcessEventsFlag> flags) Line 184	C++
       	Qt6Core.dll!QCoreApplication::exec() Line 1520	C++
      

      Attachments

        1. screenshot-1.png
          screenshot-1.png
          179 kB
        2. qtbug136951.diff
          24 kB
        3. image-2025-05-16-15-37-34-132.png
          image-2025-05-16-15-37-34-132.png
          137 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtqmlteam Qt Qml Team User
            studiosus Vladimir Belyavsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes