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

[macOS] Sporadic crash on QRhiMetal::enqueueShaderResourceBindings()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.7.2
    • Qt RHI
    • None
    • macOS 14.5 arm64 (M1)
    • macOS

    Description

      Here is sporadic crash on Metal RHI on macOS.
      Unfortunately I have no steps or simple reproducer at the moment.

      System Integrity Protection: enabled
      
      Crashed Thread:        42  QSGRenderThread
      
      Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
      Exception Codes:       KERN_INVALID_ADDRESS at 0x00000000000001a0
      Exception Codes:       0x0000000000000001, 0x00000000000001a0
      
      Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
      Terminating Process:   exc handler [579]
      
      VM Region Info: 0x1a0 is not in any region.  Bytes before following region: 4310744672
            REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
            UNUSED SPACE AT START
      --->  
            __TEXT                      100f0c000-106b04000    [ 92.0M] r-x/r-x SM=COW 
      

      Call stack:

      Thread 42 Crashed:: QSGRenderThread
      0   AGXMetal13_3                  	       0x1e9deb5bc -[AGXG13GFamilyRenderContext setFragmentTextures:withRange:] + 492
      1   QtGui                         	       0x10d973124 QRhiMetal::enqueueShaderResourceBindings(QMetalShaderResourceBindings*, QMetalCommandBuffer*, int, std::__1::pair<int, unsigned int> const*, bool, QMap<int, std::__1::pair<int, int>> const**) + 5624
      2   QtGui                         	       0x10d974b4c QRhiMetal::setShaderResources(QRhiCommandBuffer*, QRhiShaderResourceBindings*, int, std::__1::pair<int, unsigned int> const*) + 4244
      3   QtQuick                       	       0x10c4105f0 QSGBatchRenderer::Renderer::renderUnmergedBatch(QSGBatchRenderer::Renderer::PreparedRenderBatch*, bool) + 304
      4   QtQuick                       	       0x10c412068 QSGBatchRenderer::Renderer::recordRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) + 688
      5   QtQuick                       	       0x10c410794 QSGBatchRenderer::Renderer::render() + 92
      6   QtQuick                       	       0x10c426970 QSGRenderer::renderScene() + 344
      7   QtQuick                       	       0x10c3d6874 QQuickWindowPrivate::renderSceneGraph() + 804
      8   QtQuick                       	       0x10c57374c QSGRenderThread::syncAndRender() + 944
      9   QtQuick                       	       0x10c5747e4 QSGRenderThread::run() + 288
      10  QtCore                        	       0x10e8dbb10 QThreadPrivate::start(void*) + 336
      11  libsystem_pthread.dylib       	       0x192976f94 _pthread_start + 136
      12  libsystem_pthread.dylib       	       0x192971d34 thread_start + 8
      

      Attachments

        Issue Links

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

          Activity

            People

              lagocs Laszlo Agocs
              studiosus Vladimir Belyavsky
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes