'Compiler encountered an internal error' ... 'Couldnt create a valid pipeline state'

None of the 'Metal' sample apps seem to want to work on my machine; tried both 10.11.4,10.11.5; this appears to be the most meaningful message:

2016-05-17 15:06:30.449 MetalBasic3D[527:8892] Unknown class AppDelegate in Interface Builder file at path /Users/DS/Library/Developer/Xcode/DerivedData/MetalBasic3D-flhfhcevkqbquodxhunftuprtzvv/Build/Products/Debug/MetalBasic3D.app/Contents/Resources/Base.lproj/Main.storyboardc/MainMenu.nib.

2016-05-17 15:06:31.482 MetalBasic3D[527:8892] >> ERROR: Failed Aquiring pipeline state: Error Domain=CompilerError Code=1 "Compiler encountered an internal error" UserInfo={NSLocalizedDescription=Compiler encountered an internal error}

2016-05-17 15:06:31.482 MetalBasic3D[527:8892] >> ERROR: Couldnt create a valid pipeline state

Assertion failed: (0), function -[AAPLRenderer configure:], file /Volumes/N1P250/Developer/MetalBasic3D/MetalBasic3D/AAPLRenderer.mm, line 152.


Also:

2016-05-17 18:49:46.524 MetalKitEssentials[1220:125771] Metal GPU Frame Capture Enabled

2016-05-17 18:49:46.525 MetalKitEssentials[1220:125771] Metal API Validation Enabled

2016-05-17 18:49:46.965 MetalKitEssentials[1220:125771] Failed to create pipeline state, error Error Domain=CompilerError Code=1 "Compiler encountered an internal error" UserInfo={NSLocalizedDescription=Compiler encountered an internal error}

/Library/Caches/com.apple.xbs/Sources/Metal/Metal-56.6.1/ToolsLayers/Debug/MTLDebugRenderCommandEncoder.mm:568: failed assertion `renderPipelineState must not be nil.'


Also:

2016-05-17 18:51:46.620 MetalArrayTexture-OSX[1245:127237] Metal GPU Frame Capture Enabled

2016-05-17 18:51:46.620 MetalArrayTexture-OSX[1245:127237] Metal API Validation Enabled

2016-05-17 18:51:46.996 MetalArrayTexture-OSX[1245:127237] >> ERROR: Failed acquiring pipeline state descriptor: Error Domain=CompilerError Code=1 "Compiler encountered an internal error" UserInfo={NSLocalizedDescription=Compiler encountered an internal error}

/Library/Caches/com.apple.xbs/Sources/Metal/Metal-56.6.1/ToolsLayers/Debug/MTLDebugRenderCommandEncoder.mm:568: failed assertion `renderPipelineState must not be nil.'


OS Version: Mac OS X 10.11.5 (15F34)

Model: Xserve3,1, BootROM XS31.0081.B06 ... 12 GB, SMC 1.43f4

Graphics: NVIDIA GeForce GT 640, NVIDIA GeForce GT 640, PCIe, 1023 MB

I am quite sure that Xserve models do not support Metal. You seem to have upgraded the GPU, but I guess that the drivers do not support that particular configuration

Metal is only supported on Macs released in 2012 or later. XServe was discontinued in January 2011.

This appears to imply that anything with a GTX 400 or later should work: http://www.macobserver.com/tmo/article/which-macs-support-os-x-el-capitans-metal

Perhaps more appropriate / understandable error messages could be helpful (?)...

'should work' and 'supported' aren't promised to be the same thing, depending on which side of that fence you're on 😉

Bug report link below left for filing against the tools when there are things like this you'd like to see, etc.


But yes, seems that such msgs. are one area that always needs work before everyone is happy, I think.

I've submitted four crash logs so far (as well as sending one to NVidia).

Be sure to add your bug reports #s to your thread for reference.

'Compiler encountered an internal error' ... 'Couldnt create a valid pipeline state'
 
 
Q