Hi,
I’ve been trying to get ARSample to run on an NVIDIA-based iMac.
A recent bug fix helped get me further along, but I’m now experiencing the following issue at ~35% Initializing while the ARSample Editor is loading.
platform SF_METAL_SM5:
2017-06-21 14:15:16.172068-0700 UE4Editor[9610:157830] Fatal error: [File:/Users//Projects/unreal/dev-ar-kit/UnrealEngine/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp] [Line: 4574]
Failed to compile global shader TCubeFilterPS<1> . Enable 'r.ShaderDevelopmentMode' in ConsoleVariables.ini for retries.
My machine:
10.12.5
NVIDIA GeForce GT 640M 512 MB
iMac (21.5-inch, Late 2012)
Attached full output log.
Also if somebody could point me in the right direction I could try to provide the actual shader compile failure message - not sure how to do that yet.
link text
Also attached is the output generated with r.DumpShaderDebugInfo=1
link text
Hi again,
some more info in case it’s helpful:
I commented out SM5 support and it got further along in the loading process and then crashed at:
[2017-07-05 02:03:03.475760-0700 UE4Editor[24789:571466] Ensure condition failed: LightAttenuation [File:/Users//Projects/unreal/dev-ar-kit/UnrealEngine/Engine/Source/Runtime/Renderer/Private/PostProcess/SceneRenderTargets.cpp][1]
Hi,
To work around this, you can install Xcode 9 Beta 1 and checkout b336d0941d39eb66f257154071378e47e3f0f191 from the Unreal Engine repository. Something is broken in the latest betas.
Hope that helps!
Thanks for the tip, but that was actually the first setup I tried. It also didn’t work. The build actually compiles fine for me, it’s a shader that fails to compile while the engine is loading.
Yeah, I was having the same problem. Something being compiled is incorrect, which is causing the shader to be compile incorrectly. Are you sure you tried that exact commit?
Interesting… I’m almost certain that was the configuration I started with. I’ll try it again as soon as I have a few hours for the recompile and I’ll report back here.
Thanks.
Unfortunately Xcode Beta 1 with that specific checkout didn’t work either. I got the following error instead:
Fatal error: [/dev-ar-kit/UnrealEngine/Engine/Source/Runtime/Apple/MetalRHI/Private/MetalPipeline.cpp] [Line: 714]
See the attached log for more details.
Following up on this… I just tried preview 17.3 and I can get much further.
The project now loads and I can preview it on my iMac, but the editor crashes when I try to Launch on an iPhone. It seems like it’s a similar crash - something having to do with shader compiling.