Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8261713

Lanai: Crash in MTLRenderer.m:348 when Metal API Validation enabled

XMLWordPrintable

    • 2d

      Crash in J2Ddemo with METAL_DEVICE_WRAPPER_TYPE=1

      ...
      validateFunctionArguments:3714: failed assertion `Vertex Function(vert_col): missing buffer binding at index 0 for vertexBuffer.0[0].'

      Here is the stack:

      __pthread_kill 0x00007fff20310462
      pthread_kill 0x00007fff2033e610
      abort 0x00007fff20291720
      __assert_rtn 0x00007fff202909d6
      MTLReportFailure.cold.1 0x00007fff283a6fe4
      MTLReportFailure 0x00007fff283951b2
      validateFunctionArguments(id<MTLDevice>, NSString*, NSString, NSArray*, MTLDebugFunctionArgument*, unsigned long, MTLDebugFunctionArgument, unsigned long, MTLDebugFunctionArgument, unsigned long, MTLRenderPassColorAttachmentDescriptorArray*, MTLRenderPipelineColorAttachmentDescriptorArray*, unsigned long, MTLDepthStencilDescriptor*, NSMutableSet<MTLDebugRenderTargetAttachmentInfo*>*, unsigned long long, MTLDebugFunctionArgument, unsigned long) 0x00007fff20b036bb
      -[MTLDebugRenderCommandEncoder validateCommonDrawErrors:instanceCount:baseInstance:maxVertexID:] 0x00007fff20b08dd4
      -[MTLDebugRenderCommandEncoder validateDrawPrimitives:vertexStart:vertexCount:instanceCount:function:] 0x00007fff20b09b08
      -[MTLDebugRenderCommandEncoder drawPrimitives:vertexStart:vertexCount:] 0x00007fff20b09c82
      MTLRenderer_DrawScanlines MTLRenderer.m:348
      Java_sun_java2d_metal_MTLRenderQueue_flushBuffer MTLRenderQueue.m:227
      <unknown> 0x000000011dd30f39
      <unknown> 0x000000011df8496c

            avu Alexey Ushakov
            avu Alexey Ushakov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: