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

Crash in QQuickItemGrabResult::render when running tests

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 6.3
    • None

    Description

      When running test-app from https://github.com/mitchcurtis/slate/tree/qt-6 with Qt 6.3 built from dev, I get the following crash:

      16:53:52: Debugging C:\dev\slate-qt_dev_debug-Debug\Debug_qt_dev_d_9f073821014d7ede\install-root\\test-app.exe ...
      Failed to load qt_* translation for locale "en_GB" from "C:/dev/qt-dev-debug/qtbase/translations"
      QQmlEngine::setContextForObject(): Object already has a QQmlContext
      ********* Start testing of tst_App *********
      Config: Using QtTest library 6.2.0, Qt 6.2.0 (x86_64-little_endian-llp64 shared (dynamic) debug build; by MSVC 2019), windows 10
      PASS   : tst_App::initTestCase()
      PASS   : tst_App::newProjectWithNewTileset()
      PASS   : tst_App::repeatedNewProject(TilesetType, ImageType)
      PASS   : tst_App::repeatedNewProject(ImageType, LayeredImageType)
      PASS   : tst_App::repeatedNewProject(LayeredImageType, TilesetType)
      PASS   : tst_App::openClose(TilesetType)
      PASS   : tst_App::openClose(ImageType)
      PASS   : tst_App::openClose(LayeredImageType)
      PASS   : tst_App::saveTilesetProject()
      SKIP   : tst_App::saveAsAndLoadTilesetProject() SplitView part fails; TODO: check if still failing with Qt 6
      C:\dev\slate\tests\auto\tst_app.cpp(385) : failure location
      SKIP   : tst_App::saveAsAndLoad(TilesetType) SplitView part fails; TODO: check if still failing with Qt 6
      C:\dev\slate\tests\auto\tst_app.cpp(477) : failure location
      SKIP   : tst_App::saveAsAndLoad(LayeredImageType) SplitView part fails; TODO: check if still failing with Qt 6
      C:\dev\slate\tests\auto\tst_app.cpp(477) : failure location
      PASS   : tst_App::versionCheck(version-check-v0.2.1.slp)
      PASS   : tst_App::versionCheck(version-check-v0.8.0.slp)
      PASS   : tst_App::versionCheck(version-check-v0.9.0.slp)
      PASS   : tst_App::loadTilesetProjectWithInvalidTileset()
      PASS   : tst_App::loadLayeredImageProjectAfterTilesetProject()
      PASS   : tst_App::loadInvalidProjects(loadInvalidProjects-empty.slp)
      PASS   : tst_App::loadInvalidProjects(loadInvalidProjects-empty.stp)
      PASS   : tst_App::recentFiles()
      PASS   : tst_App::newProjectSizeFromClipboard(ImageType, 100x200)
      PASS   : tst_App::newProjectSizeFromClipboard(ImageType, (none))
      PASS   : tst_App::newProjectSizeFromClipboard(LayeredImageType, 100x200)
      PASS   : tst_App::newProjectSizeFromClipboard(LayeredImageType, (none))
      SKIP   : tst_App::splitViewStateAcrossProjects() SplitView part fails; TODO: check if still failing with Qt 6
      C:\dev\slate\tests\auto\tst_app.cpp(870) : failure location
      PASS   : tst_App::saveOnPrompt()
      PASS   : tst_App::loadPaneFractionalOffset()
      PASS   : tst_App::keyboardShortcuts()
      PASS   : tst_App::optionsShortcutCancelled()
      PASS   : tst_App::optionsTransparencyCancelled()
      PASS   : tst_App::showGrid()
      PASS   : tst_App::undoPixels()
      D3D11: Removing Device.
      PASS   : tst_App::undoLargePixelPen()
      QWARN  : tst_App::undoTiles() Device loss detected in Present()
      QWARN  : tst_App::undoTiles() Graphics device lost, cleaning up scenegraph and releasing RHI
      PASS   : tst_App::undoTiles()
      PASS   : tst_App::undoWithDuplicates()
      PASS   : tst_App::undoTilesetCanvasSizeChange()
      PASS   : tst_App::undoImageCanvasSizeChange()
      

      QSGRenderThread:

                                                                                                                                           
      1  std::_Atomic_storage<int,4>::load                                                                                           atomic                    935  0x7ffa6688d9e9 
      2  QAtomicOps<int>::loadRelaxed<int>                                                                                           qatomic_cxx11.h           238  0x7ffa66865d6a 
      3  QBasicAtomicInteger<int>::loadRelaxed                                                                                       qbasicatomic.h            90   0x7ffa6688da8b 
      4  QWeakPointer<QObject>::internalData                                                                                         qsharedpointer_impl.h     711  0x7ffa6688c4ed 
      5  QPointer<QQuickWindow>::data                                                                                                qpointer.h                77   0x7ffa6693541b 
      6  QQuickItemGrabResult::render                                                                                                qquickitemgrabresult.cpp  296  0x7ffa669d456c 
      7  QtPrivate::FunctorCall<QtPrivate::IndexesList<>,QtPrivate::List<>,void,void (__cdecl QQuickItemGrabResult:: *)(void)>::call qobjectdefs_impl.h        152  0x7ffa669db3a1 
      8  QtPrivate::FunctionPointer<void (__cdecl QQuickItemGrabResult:: *)(void)>::call<QtPrivate::List<>,void>                     qobjectdefs_impl.h        186  0x7ffa669d65cc 
      9  QtPrivate::QSlotObject<void (__cdecl QQuickItemGrabResult:: *)(void),QtPrivate::List<>,void>::impl                          qobjectdefs_impl.h        399  0x7ffa669dc9f5 
      10 QtPrivate::QSlotObjectBase::call                                                                                            qobjectdefs_impl.h        378  0x7ffa6b087307 
      11 doActivate<0>                                                                                                               qobject.cpp               3924 0x7ffa6b140d36 
      12 QMetaObject::activate                                                                                                       qobject.cpp               3985 0x7ffa6b128dec 
      13 QQuickWindow::afterRendering                                                                                                moc_qquickwindow.cpp      597  0x7ffa66b82779 
      14 QQuickWindowPrivate::renderSceneGraph                                                                                       qquickwindow.cpp          691  0x7ffa66b88887 
      15 QSGRenderThread::syncAndRender                                                                                              qsgthreadedrenderloop.cpp 787  0x7ffa6706e4a3 
      16 QSGRenderThread::run                                                                                                        qsgthreadedrenderloop.cpp 990  0x7ffa6706d428 
      17 QThreadPrivate::start                                                                                                       qthread_win.cpp           329  0x7ffa6b4b24cc 
      18 BaseThreadInitThunk                                                                                                         KERNEL32                       0x7ffabbcf7034 
      19 RtlUserThreadStart                                                                                                          ntdll                          0x7ffabdba2651 
      

      Main thread:

                                                                                  
                                                                                  
      1  ILT+20175(??9YA_NVQMetaType          Qt6Cored             0x7ffa6aeb5ed4 
      2  QMetaProperty::read                  qmetaobject.cpp 3243 0x7ffa6b07d860 
      3  QObject::property                    qobject.cpp     4141 0x7ffa6b1304a6 
      4  TestHelper::ensureItemVisible        testhelper.cpp  2156 0x7ff72e27edc2 
      5  TestHelper::clickButton              testhelper.cpp  2129 0x7ff72e27d875 
      6  TestHelper::changeImageSize          testhelper.cpp  667  0x7ff72e2e4b6e 
      7  tst_App::undoImageSizeChange         tst_app.cpp     1549 0x7ff72e14d228 
      8  tst_App::qt_static_metacall          tst_app.moc     690  0x7ff72e125d18 
      9  QMetaMethod::invoke                  qmetaobject.cpp 2385 0x7ffa6b07a9c3 
      10 QMetaMethod::invoke                  qmetaobject.h   128  0x7ffa6af77459 
      11 QTest::TestMethods::invokeTestOnData qtestcase.cpp   957  0x7ffa86b1a34c 
      12 QTest::TestMethods::invokeTest       qtestcase.cpp   1196 0x7ffa86b182a5 
      13 QTest::TestMethods::invokeTests      qtestcase.cpp   1538 0x7ffa86b17007 
      14 QTest::qRun                          qtestcase.cpp   1966 0x7ffa86b105d7 
      15 QTest::qExec                         qtestcase.cpp   1873 0x7ffa86b1071f 
      16 main                                 tst_app.cpp     6983 0x7ff72e1d5e9d 
      17 invoke_main                          exe_common.inl  79   0x7ff72e3797b9 
      18 __scrt_common_main_seh               exe_common.inl  288  0x7ff72e37969e 
      19 __scrt_common_main                   exe_common.inl  331  0x7ff72e37955e 
      20 mainCRTStartup                       exe_main.cpp    17   0x7ff72e37984e 
      21 BaseThreadInitThunk                  KERNEL32             0x7ffabbcf7034 
      22 RtlUserThreadStart                   ntdll                0x7ffabdba2651 
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes