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

Cached text AA rendering crashes with Metal API validation

XMLWordPrintable

    • 2d
    • generic
    • os_x

      If we enable Metal API validation and run text related tabs in J2DDemo, SwingSet2 or Font2DTest. It crashes with following error :

      Enable Metal API validation using :
      export METAL_DEVICE_WRAPPER_TYPE=1

      Debug log:
      I] MTLTR_DrawGlyphList Grayscale cache
      [I] MTLVertexCache_AddGlyphQuad
      [I] Entered for loop for glyph list
      [I] Glyph width = 4 height = 4
      [I] rowBytes = 4
      [I] MTLTR_DrawGlyphList Grayscale cache
      [I] MTLVertexCache_AddGlyphQuad
      [I] Entered for loop for glyph list
      [I] Glyph width = 4 height = 4
      [I] rowBytes = 4
      [I] MTLTR_DrawGlyphList Grayscale cache
      [I] MTLVertexCache_AddGlyphQuad
      [I] MTLTR_DisableGlyphVertexCache
      [I] MTLVertexCache_FlushGlyphVertexCache
      -[MTLDebugRenderCommandEncoder setVertexBytes:length:atIndex:]:1356: failed assertion `length(7296) must be <= 4096.'
      Abort trap: 6

            jdv Jayathirth D V
            jdv Jayathirth D V
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: