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