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

Crash in QRhiD3D11::enqueueResourceUpdates when running tests with Qt 6.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.0 Beta3
    • Qt RHI, Quick: SceneGraph
    • None

    Description

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

      15:53:06: Debugging C:\dev\slate-Desktop_Qt_6_2_0_MSVC2019_64bit-Debug\Debug_Desktop__1d87629ee6337dc6\install-root\\test-app.exe ...
      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()
      PASS   : tst_App::undoLargePixelPen()
      D3D11: Removing Device.
      
      Exception at 0x7ffabb7b4ed9, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in d3d11!D3DKMTWaitForVerticalBlankEvent
      
      Exception at 0x7ffabb7b4ed9, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in d3d11!D3DKMTWaitForVerticalBlankEvent
      
      Exception at 0x7ffabb7b4ed9, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in d3d11!D3DKMTWaitForVerticalBlankEvent
      QWARN  : tst_App::undoTiles() Failed to create buffer: Error 0x887a0005: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action.
      
      Exception at 0x7ffabb7b4ed9, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in d3d11!D3DKMTWaitForVerticalBlankEvent
      
      Exception at 0x7ffabb7b4ed9, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in d3d11!D3DKMTWaitForVerticalBlankEvent
      
      Exception at 0x7ffabb7b4ed9, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in d3d11!D3DKMTWaitForVerticalBlankEvent
      QWARN  : tst_App::undoTiles() Failed to create buffer: Error 0x887a0005: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action.
      
                                       
      1  memcmp                                        VCRUNTIME140D                    0x7ffaad9b12db 
      2  QRhiD3D11::enqueueResourceUpdates             qrhid3d11.cpp               1441 0x7ffa41fbf2c0 
      3  QRhiD3D11::resourceUpdate                     qrhid3d11.cpp               1739 0x7ffa41fbb963 
      4  QRhiCommandBuffer::resourceUpdate             qrhi.cpp                    5503 0x7ffa41bdd094 
      5  QSGBatchRenderer::Renderer::prepareRenderPass qsgbatchrenderer.cpp        3672 0x7ffa3f982305 
      6  QSGBatchRenderer::Renderer::render            qsgbatchrenderer.cpp        3409 0x7ffa3f97ff57 
      7  QSGRenderer::renderScene                      qsgrenderer.cpp             177  0x7ffa3f9e715c 
      8  QSGDefaultRenderContext::renderNextRhiFrame   qsgdefaultrendercontext.cpp 212  0x7ffa3fa47573 
      9  QQuickWindowPrivate::renderSceneGraph         qquickwindow.cpp            680  0x7ffa3f8fe7b2 
      10 QSGRenderThread::syncAndRender                qsgthreadedrenderloop.cpp   787  0x7ffa3fde1693 
      11 QSGRenderThread::run                          qsgthreadedrenderloop.cpp   990  0x7ffa3fde0618 
      12 QThreadPrivate::start                         qthread_win.cpp             329  0x7ffa4334012c 
      13 BaseThreadInitThunk                           KERNEL32                         0x7ffabbcf7034 
      14 RtlUserThreadStart                            ntdll                            0x7ffabdba2651 
      
      C:\dev\qt-unified\6.2.0\msvc2019_64\bin>qtdiag
      Qt 6.2.0 (x86_64-little_endian-llp64 shared (dynamic) release build; by MSVC 2019) on "windows"
      OS: Windows 10 Version 2009 [winnt version 10.0.19042]
      
      Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2
      
      File selectors (increasing order of precedence):
        en_AU windows winnt
      
      Network:
        Using "Secure Channel, Windows 10.0.19042", version: 0xa004a62
      
      Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement RasterGLSurface AllGLFunctionsQueryable
      
      Screens: 1, High DPI scaling: inactive
      # 0 "\\.\DISPLAY6" Depth: 32 Primary: yes
        Manufacturer:
        Model:
        Serial number:
        Geometry: 1920x1080+0+0 Available: 1920x1040+0+0
        Physical size: 544x303 mm  Refresh: 60 Hz Power state: 0
        Physical DPI: 89.6471,90.5347 Logical DPI: 96,96 Subpixel_None
        DevicePixelRatio: 1
        Primary orientation: 2 Orientation: 2 Native orientation: 0
      
      Dynamic GL LibGL Vendor: NVIDIA Corporation
      Renderer: NVIDIA GeForce GTX 970/PCIe/SSE2
      Version: 4.6.0 NVIDIA 471.96
      Shading language: 4.60 NVIDIA
      Format: Version: 4.6 Profile: 2 Swap behavior: 2 Buffer size (RGBA): 8,8,8,8 Depth buffer: 24 Stencil buffer: 8
      Profile: None (QOpenGLFunctions_4_6)
      
      Vulkan instance available
      Supported instance extensions:
        VK_KHR_device_group_creation, version 1
        VK_KHR_display, version 23
        VK_KHR_external_fence_capabilities, version 1
        VK_KHR_external_memory_capabilities, version 1
        VK_KHR_external_semaphore_capabilities, version 1
        VK_KHR_get_display_properties2, version 1
        VK_KHR_get_physical_device_properties2, version 2
        VK_KHR_get_surface_capabilities2, version 1
        VK_KHR_surface, version 25
        VK_KHR_surface_protected_capabilities, version 1
        VK_KHR_win32_surface, version 6
        VK_EXT_debug_report, version 9
        VK_EXT_debug_utils, version 2
        VK_EXT_swapchain_colorspace, version 4
        VK_NV_external_memory_capabilities, version 1
      Supported layers:
        VK_LAYER_NV_optimus, version 1, spec version 1.2.175, NVIDIA Optimus layer
        VK_LAYER_OBS_HOOK, version 1, spec version 1.2.131, Open Broadcaster Software hook
        VK_LAYER_VALVE_steam_overlay, version 1, spec version 1.2.136, Steam Overlay Layer
        VK_LAYER_VALVE_steam_fossilize, version 1, spec version 1.2.136, Steam Pipeline Caching Layer
        VK_LAYER_EOS_Overlay, version 1, spec version 1.2.136, Vulkan overlay layer for Epic Online Services
        VK_LAYER_EOS_Overlay, version 1, spec version 1.2.136, Vulkan overlay layer for Epic Online Services
      Available physical devices:
        API version 1.2.175, vendor 0x10DE, device 0x13C2, NVIDIA GeForce GTX 970, type 2, driver version 471.384.0
      
      
      GPU #1:
               Card name         : NVIDIA GeForce GTX 970
             Driver Name         : nvldumdx.dll
          Driver Version         : 30.0.14.7196
               Vendor ID         : 0x10DE
               Device ID         : 0x13C2
               SubSys ID         : 0x31601462
             Revision ID         : 0x00A1
      
      Qt Rendering Hardware Interface supported backends:
      OpenGL (with default QSurfaceFormat):
        Driver Info: Device: NVIDIA Corporation NVIDIA GeForce GTX 970/PCIe/SSE2 4.6.0 NVIDIA 471.96 Device ID: 0x0 Vendor ID: 0x0 Device type: Unknown
        Min Texture Size: 1
        Max Texture Size: 4000
        Max Color Attachments: 8
        Frames in Flight: 1
        Async Readback Limit: 1
        MaxThreadGroupsPerDimension: FFFF
        MaxThreadsPerThreadGroup: 600
        MaxThreadGroupX: 600
        MaxThreadGroupY: 400
        MaxThreadGroupZ: 40
        Uniform Buffer Alignment: 1
        Supported MSAA sample counts: 1,2,4,8,16,32
        Features:
          v MultisampleTexture
          v MultisampleRenderBuffer
          - DebugMarkers
          - Timestamps
          v Instancing
          - CustomInstanceStepRate
          v PrimitiveRestart
          v NonDynamicUniformBuffers
          v NonFourAlignedEffectiveIndexBufferOffset
          v NPOTTextureRepeat
          - RedOrAlpha8IsRed
          v ElementIndexUint
          v Compute
          v WideLines
          v VertexShaderPointSize
          v BaseVertex
          - BaseInstance
          v TriangleFanTopology
          v ReadBackNonUniformBuffer
          v ReadBackNonBaseMipLevel
          v TexelFetch
          v RenderToNonBaseMipLevel
          v IntAttributes
          v ScreenSpaceDerivatives
          - ReadBackAnyTextureFormat
        Texture formats: RGBA8 BGRA8 R8 R16 RG8 RED_OR_ALPHA8 RGBA16F RGBA32F R16F R32F D16 D32F BC1 BC2 BC3 ETC2_RGB8 ETC2_RGB8A1 ETC2_RGBA8 ASTC_4x4 ASTC_5x4 ASTC_5x5 ASTC_6x5 ASTC_6x6 ASTC_8x5 ASTC_8x6 ASTC_8x8 ASTC_10x5 ASTC_10x6 ASTC_10x8 ASTC_10x10 ASTC_12x10 ASTC_12x12
      Vulkan:
        Driver Info: Device: NVIDIA GeForce GTX 970 Device ID: 0x13C2 Vendor ID: 0x10DE Device type: Discrete
        Min Texture Size: 1
        Max Texture Size: 4000
        Max Color Attachments: 8
        Frames in Flight: 2
        Async Readback Limit: 2
        MaxThreadGroupsPerDimension: FFFF
        MaxThreadsPerThreadGroup: 600
        MaxThreadGroupX: 600
        MaxThreadGroupY: 400
        MaxThreadGroupZ: 40
        Uniform Buffer Alignment: 100
        Supported MSAA sample counts: 1,2,4,8
        Features:
          v MultisampleTexture
          v MultisampleRenderBuffer
          - DebugMarkers
          v Timestamps
          v Instancing
          - CustomInstanceStepRate
          v PrimitiveRestart
          v NonDynamicUniformBuffers
          v NonFourAlignedEffectiveIndexBufferOffset
          v NPOTTextureRepeat
          v RedOrAlpha8IsRed
          v ElementIndexUint
          v Compute
          v WideLines
          v VertexShaderPointSize
          v BaseVertex
          v BaseInstance
          v TriangleFanTopology
          v ReadBackNonUniformBuffer
          v ReadBackNonBaseMipLevel
          v TexelFetch
          v RenderToNonBaseMipLevel
          v IntAttributes
          v ScreenSpaceDerivatives
          v ReadBackAnyTextureFormat
        Texture formats: RGBA8 BGRA8 R8 R16 RG8 RED_OR_ALPHA8 RGBA16F RGBA32F R16F R32F D16 D32F BC1 BC2 BC3 BC4 BC5 BC6H BC7
      Direct3D 11:
        Driver Info: Device: NVIDIA GeForce GTX 970 Device ID: 0x13C2 Vendor ID: 0x10DE Device type: Unknown
        Min Texture Size: 1
        Max Texture Size: 4000
        Max Color Attachments: 8
        Frames in Flight: 1
        Async Readback Limit: 1
        MaxThreadGroupsPerDimension: FFFF
        MaxThreadsPerThreadGroup: 400
        MaxThreadGroupX: 400
        MaxThreadGroupY: 400
        MaxThreadGroupZ: 40
        Uniform Buffer Alignment: 100
        Supported MSAA sample counts: 1,2,4,8
        Features:
          v MultisampleTexture
          v MultisampleRenderBuffer
          v DebugMarkers
          v Timestamps
          v Instancing
          v CustomInstanceStepRate
          v PrimitiveRestart
          - NonDynamicUniformBuffers
          v NonFourAlignedEffectiveIndexBufferOffset
          v NPOTTextureRepeat
          v RedOrAlpha8IsRed
          v ElementIndexUint
          v Compute
          - WideLines
          - VertexShaderPointSize
          v BaseVertex
          v BaseInstance
          - TriangleFanTopology
          v ReadBackNonUniformBuffer
          v ReadBackNonBaseMipLevel
          v TexelFetch
          v RenderToNonBaseMipLevel
          v IntAttributes
          v ScreenSpaceDerivatives
          v ReadBackAnyTextureFormat
        Texture formats: RGBA8 BGRA8 R8 R16 RG8 RED_OR_ALPHA8 RGBA16F RGBA32F R16F R32F D16 D32F BC1 BC2 BC3 BC4 BC5 BC6H BC7
      

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            mitch_curtis Mitch Curtis
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes