Developer Notes

If you experience this crash, please log a bug report on the UE4 Answerhub and reference this ticket number so we can discuss this issue with you.

Description

This is a common crash on Mac in the 4.16 release.

The callstack is fairly generic , so it shares similarities with other Jiras such as [Link Removed] and [Link Removed], but this issue is different.

Steps to Reproduce

With Xcode 7.3.1 ([Link Removed]) installed to /Applications/Xcode.app, download attached 8650_51197943.metal shader to Desktop, then execute following commands from the terminal:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metal  -ffast-math -Wno-null-character -std=osx-metal1.1 ~/Desktop/8650_51197943.metal -o /tmp/ShaderIn6030DA82FF4D1DF0CE2788BB36EED60F.o
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metallib -o /tmp/ShaderIn6030DA82FF4D1DF0CE2788BB36EED60F.lib /tmp/ShaderIn6030DA82FF4D1DF0CE2788BB36EED60F.o

First command will succeed, but the second one will fail with the metallib: Unexpected token !r error.

Callstack
SEGV_MAPERR at 0x3

UE4Editor-Engine.dylib!ProcessCompiledJob() 
UE4Editor-Engine.dylib!ProcessCompiledGlobalShaders() 
UE4Editor-Engine.dylib!FShaderCompilingManager::ProcessCompiledShaderMaps() 
UE4Editor-Engine.dylib!FShaderCompilingManager::FinishCompilation() 
UE4Editor-Engine.dylib!VerifyGlobalShaders() 
UE4Editor-Engine.dylib!CompileGlobalShaderMap() 
UE4Editor!FEngineLoop::PreInit() 
UE4Editor!GuardedMain() 
UE4Editor!<Unknown> 
UE4Editor-Core.dylib!<Unknown> 
Foundation!Unknown() 
libsystem_pthread.dylib!<Unknown> 
libsystem_pthread.dylib!<Unknown> 
libsystem_pthread.dylib!<Unknown> 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-45463 in the post.

1
Login to Vote

Fixed
ComponentUE - Rendering
Affects Versions4.16
Target Fix4.16.1
Fix Commit3466095
Release Commit3536160
CreatedMay 26, 2017
ResolvedMay 30, 2017
UpdatedApr 27, 2018