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

[Ventura][x64]Assertion in 2D shapes sample program with metal pipeline

    XMLWordPrintable

Details

    Description

      Looks like fix for JDK-8293341 has broken metal pipeline behaviour on my x64 based system : macOS 13.1.

      Running 2D shapes draw PoC results in an assert with below log-

      >>> MTLShader(): fragFuncName = Solid_Color
      2023-02-13 14:41:08.655 java[36470:827135]
      2023-02-13 14:41:08.655 java[36470:827135] >>>> JNICALL Native: MTLShader_nCreateMetalShader
      2023-02-13 14:41:08.655 java[36470:827135]
      2023-02-13 14:41:08.655 java[36470:827135] >>>> MetalShader.initWithContext()----> fragFuncName: Solid_Color
      2023-02-13 14:41:08.655 java[36470:827135] getPRISMDict
      2023-02-13 14:41:08.655 java[36470:827135] getPRISMDict() : calling -> getSolid_Color_Uniform_VarID_Dict()
      2023-02-13 14:41:08.655 java[36470:827135] getDECORADict
      2023-02-13 14:41:08.657 java[36470:827135] -> Native: MTLShader.initWithContext() argumentBufferLength = 0
      2023-02-13 14:41:08.657 java[36470:827135] MetalPipelineManager.getPipeStateWithFragFunc()
      2023-02-13 14:41:08.832 java[36470:827135] *** Assertion failure in -[MetalPipelineManager getPipeStateWithFragFunc:], MetalPipelineManager.m:88
      2023-02-13 14:41:08.833 java[36470:827135] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to create pipeline state to render to texture: Error Domain=CompilerError Code=2 "Compiler encountered an internal error" UserInfo={NSLocalizedDescription=Compiler encountered an internal error}'
      *** First throw call stack:
      (
      0 CoreFoundation 0x00007ff81329740b __exceptionPreprocess + 242
      1 libobjc.A.dylib 0x00007ff812de3e25 objc_exception_throw + 48
      2 Foundation 0x00007ff81413afb0 -[NSCalendarDate initWithCoder:] + 0
      3 libprism_mtl.dylib 0x000000010b0b4cc9 -[MetalPipelineManager getPipeStateWithFragFunc:] + 329
      4 libprism_mtl.dylib 0x000000010b0ce29e -[MetalShader initWithContext:withFragFunc:] + 670
      5 libprism_mtl.dylib 0x000000010b0cf67f Java_com_sun_prism_mtl_MTLShader_nCreateMetalShader + 95
      6 ??? 0x000000011c316051 0x0 + 4767965265
      7 ??? 0x000000011c311dd0 0x0 + 4767948240
      )
      libc++abi: terminating with uncaught exception of type NSException

      Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

      Attachments

        Issue Links

          Activity

            People

              arapte Ambarish Rapte
              aghaisas Ajit Ghaisas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: