Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P2
-
Resolution: Fixed
-
Affects Version/s: internal
-
Fix Version/s: internal
-
Component/s: client-libs
-
Labels:
-
Subcomponent:
-
CPU:generic
-
OS:os_x
Description
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
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
Attachments
Issue Links
- relates to
-
JDK-8261650 Add a comment with details for MTLVC_MAX_INDEX
-
- Resolved
-
-
JDK-8261620 Running metal with API validation crashes immediately
-
- Resolved
-
-
JDK-8260931 Implement JEP 382: New macOS Rendering Pipeline
-
- Resolved
-