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

Crash in qsgtexture code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 6.3
    • Fix Version/s: None
    • Component/s: Quick: SceneGraph
    • Labels:
      None
    • Environment:
      Windows 10
    • Platform/s:
      Windows

      Description

      To reproduce, checkout https://codereview.qt-project.org/c/qt/qtquickcontrols2/+/356159 and run:

      tst_windows.exe -input C:\dev\qt-dev\qtquickcontrols2\tests\auto\controls\data\tst_dialogbuttonbox.qml
      

      The error from Windows:

      ---------------------------
      Exception Triggered
      ---------------------------
      <p>The inferior stopped because it triggered an exception.<p>Stopped in thread 11 by: 
      Exception at 0x7fff016201cb, code: 0xc0000005: read access violation at: 0x8, flags=0x0 (first chance).
      ---------------------------
      OK   
      ---------------------------
      

      Stack trace:

      1  QScopedPointer<QObjectData,QScopedPointerDeleter<QObjectData>>::get           qscopedpointer.h            147  0x7ffefe5201cb
      2  qGetPtrHelper<QScopedPointer<QObjectData,QScopedPointerDeleter<QObjectData>>> qglobal.h                   1267 0x7ffefe4fdfc8
      3  QSGTexture::d_func                                                            qsgtexture.h                58   0x7ffefe51d45f
      4  QSGTexture::setFiltering                                                      qsgtexture.cpp              516  0x7ffefe8fc38c
      5  QSGOpaqueTextureMaterialRhiShader::updateSampledImage                         qsgtexturematerial.cpp      86   0x7ffefe9cf68e
      6  QSGBatchRenderer::Renderer::updateMaterialDynamicData                         qsgbatchrenderer.cpp        2862 0x7ffefe88b6e7
      7  QSGBatchRenderer::Renderer::prepareRenderMergedBatch                          qsgbatchrenderer.cpp        3036 0x7ffefe88ce91
      8  QSGBatchRenderer::Renderer::prepareRenderPass                                 qsgbatchrenderer.cpp        3621 0x7ffefe885528
      9  QSGBatchRenderer::Renderer::render                                            qsgbatchrenderer.cpp        3409 0x7ffefe883467
      10 QSGRenderer::renderScene                                                      qsgrenderer.cpp             177  0x7ffefe8ea60c
      11 QSGDefaultRenderContext::renderNextRhiFrame                                   qsgdefaultrendercontext.cpp 212  0x7ffefe948ca3
      12 QQuickWindowPrivate::renderSceneGraph                                         qquickwindow.cpp            679  0x7ffefe804ee2
      13 QSGRenderThread::syncAndRender                                                qsgthreadedrenderloop.cpp   788  0x7ffefecc9e53
      14 QSGRenderThread::run                                                          qsgthreadedrenderloop.cpp   991  0x7ffefecc8dd8
      15 QThreadPrivate::start                                                         qthread_win.cpp             329  0x7fff02b8291c
      16 BaseThreadInitThunk                                                           KERNEL32                         0x7fff79fa7034
      17 RtlUserThreadStart                                                            ntdll                            0x7fff7ae42651
      

      System info:

      Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement RasterGLSurface AllGLFunctionsQueryable
      
      Screens: 1, High DPI scaling: inactive
      # 0 "\\.\DISPLAY1" Depth: 32 Primary: yes
        Manufacturer:
        Model:
        Serial number:
        Geometry: 1920x1080+0+0 Available: 1920x1040+0+0
        Physical size: 527x296 mm  Refresh: 60 Hz Power state: 0
        Physical DPI: 92.5389,92.6757 Logical DPI: 96,96 Subpixel_None
        DevicePixelRatio: 1 Pixel density: 1
        Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
      
      Dynamic GL LibGL Vendor: NVIDIA Corporation
      Renderer: NVIDIA GeForce GTX 970/PCIe/SSE2
      Version: 4.6.0 NVIDIA 471.11
      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.44.0
      
      
      GPU #1:
               Card name         : NVIDIA GeForce GTX 970
             Driver Name         : nvldumdx.dll
          Driver Version         : 30.0.14.7111
               Vendor ID         : 0x10DE
               Device ID         : 0x13C2
               SubSys ID         : 0x31601462
             Revision ID         : 0x00A1
      
      Qt Rendering Hardware Interface supported backends:
      OpenGL (with default QSurfaceFormat):
        Min Texture Size: 1
        Max Texture Size: 16384
        Max Color Attachments: 8
        Frames in Flight: 1
        Uniform Buffer Alignment: 1
        Supported MSAA sample counts: 1,2,4,8,16,32
        Features:
          - 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
        Texture formats: RGBA8 BGRA8 R8 R16 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:
        Min Texture Size: 1
        Max Texture Size: 16384
        Max Color Attachments: 8
        Frames in Flight: 2
        Uniform Buffer Alignment: 256
        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
        Texture formats: RGBA8 BGRA8 R8 R16 RED_OR_ALPHA8 RGBA16F RGBA32F R16F R32F D16 D32F BC1 BC2 BC3 BC4 BC5 BC6H BC7
      Direct3D 11:
        Min Texture Size: 1
        Max Texture Size: 16384
        Max Color Attachments: 8
        Frames in Flight: 1
        Uniform Buffer Alignment: 256
        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
        Texture formats: RGBA8 BGRA8 R8 R16 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

            Assignee:
            janichol Andy Nichols
            Reporter:
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes