RFR: 8375466: Metal rendering pipeline crashes on virtualized OS

Sergey Nazarkin snazarki at openjdk.org
Tue Feb 3 15:49:07 UTC 2026


On Mon, 2 Feb 2026 13:30:40 GMT, Ambarish Rapte <arapte at openjdk.org> wrote:

> Issue:
> As described in the bug, a crash occurs on macOS VM created using Parallels.
> The crash occurs when trying to create a [MTLArgumentEncoder](https://github.com/openjdk/jfx/blob/5ac1620ac0ba20170ae9758e20893feba5ebc58b/modules/javafx.graphics/src/main/native-prism-mtl/MetalShader.m#L76C49-L76C82), which is required for creating Shaders(Both Prism and Decora)
> This crash is not observed on macOS VM created using Apple Virtualization Framework.
> 
> Fix:
> Support for MTLArgumentEncoder is mandatory for Prism Metal Rendering pipeline. Without support for MTLArgumentEncoder the Shaders cannot be created.
> In this scenario Prism should gracefully fallback to Software rendering.
> Added a check to verify if the minimum [MTLGPUFamilyMac2](https://developer.apple.com/documentation/metal/mtlgpufamily/mac2?language=objc) GPU family is supported by the platform. If not supported then Metal Pipeline cannot be used, and rendering falls back to software pipeline.

Tested with Parallels on x86 host: the issue is no longer reproducible.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/2061#issuecomment-3842105113


More information about the openjfx-dev mailing list