Description

This is a common Mac crash in 4.18. It occurs in Game mode, not in Editor. Users have not provided any descriptions of their actions when the crash occurred.

Callstack from Log

[2017.11.21-20.30.49:058][  0]LogRenderer: Reallocating scene render targets to support 1440x900 Format 10 NumSamples 1 (Frame:1).
[2017.11.21-20.30.49:153][  0]LogInit: Adding external input plugin.
[2017.11.21-20.30.49:159][  0]LogContentStreaming: Texture pool size now 1000 MB
[2017.11.21-20.30.49:641][  2]LogMac: Error: appError called: Assertion failed:  [File:/Users/build/Build/++UE4+Release-4.18+Compile/Sync/Engine/Source/Runtime/ShaderCore/Private/ShaderCache.cpp] [Line: 1964] 
Binding invalid bound-shader-state 0x1236e46f0

[2017.11.21-20.30.49:650][  2]LogMac: === Critical error: ===
SIGSEGV: invalid attempt to access memory at address 0x3

[2017.11.21-20.30.49:650][  2]LogMac: 0x031b65ab UE4Game!FGenericPlatformMisc::RaiseException(unsigned int)   [UnknownFile]) 
0x039c099e UE4Game!FMacErrorOutputDevice::Serialize(wchar_t const*, ELogVerbosity::Type, FName const&)   [UnknownFile]) 
0x033d3d7d UE4Game!FOutputDevice::Logf(wchar_t const*, ...)   [UnknownFile]) 
0x033676eb UE4Game!FDebug::AssertFailed(char const*, char const*, int, wchar_t const*, ...)   [UnknownFile]) 
0x0584b65f UE4Game!FShaderCache::InternalSetGraphicsPipelineState(FShaderCacheState&, FRHIGraphicsPipelineState*)   [UnknownFile]) 
0x070b95de UE4Game!FMetalRHICommandContext::RHISetGraphicsPipelineState(FRHIGraphicsPipelineState*)   [UnknownFile]) 
0x057d5d29 UE4Game!FRHICommandListExecutor::ExecuteInner_DoExecute(FRHICommandListBase&)   [UnknownFile]) 
0x05810bc3 UE4Game!FExecuteRHIThreadTask::DoTask(ENamedThreads::Type, TRefCountPtr<FGraphEvent> const&)   [UnknownFile]) 
0x058103af UE4Game!TGraphTask<FExecuteRHIThreadTask>::ExecuteTask(TArray<FBaseGraphTask*, FDefaultAllocator>&, ENamedThreads::Type)   [UnknownFile]) 
0x031cb5f3 UE4Game!FNamedTaskThread::ProcessTasksNamedThread(int, bool)   [UnknownFile]) 
0x031ca678 UE4Game!FNamedTaskThread::ProcessTasksUntilQuit(int)   [UnknownFile]) 
0x031c6f6e UE4Game!FTaskGraphImplementation::ProcessThreadUntilRequestReturn(ENamedThreads::Type)   [UnknownFile]) 
0x057aed8f UE4Game!FRHIThread::Run()   [UnknownFile]) 
0x03224c0e UE4Game!FRunnableThreadPThread::Run()   [UnknownFile]) 
0x031e1597 UE4Game!FRunnableThreadPThread::_ThreadProc(void*)   [UnknownFile]) 
0x7c7436c1 libsystem_pthread.dylib!_pthread_body()   [UnknownFile]) 
0x7c74356d libsystem_pthread.dylib!_pthread_body()   [UnknownFile]) 
0x7c742c5d libsystem_pthread.dylib!thread_start()   [UnknownFile]) 
Steps to Reproduce

1) Create new project from SideScroller template.

2) Load new project in Editor, change Packing prefs to Use No Pak File.  (Not sure if that is related but its easier for me to run / debug packaged build as an Xcode debuggable app)

3) Package the Mac version.

4) On running the packaged App it will crash at startup.  Navigating inside the .app container (e.g. 

<dir>/SideScrollerTest.app/Contents/MacOS/) and Running using ./ExecutableName will produce the same error in terminal.

Callstack
SEGV_MAPERR at 0x3

UE4Game!FShaderCache::InternalSetGraphicsPipelineState() 
UE4Game!FMetalRHICommandContext::RHISetGraphicsPipelineState() 
UE4Game!FRHICommandListExecutor::ExecuteInner_DoExecute() 
UE4Game!FExecuteRHIThreadTask::DoTask() 
UE4Game!TGraphTask<FExecuteRHIThreadTask>::ExecuteTask() 
UE4Game!FNamedTaskThread::ProcessTasksNamedThread() 
UE4Game!FNamedTaskThread::ProcessTasksUntilQuit() 
UE4Game!FTaskGraphImplementation::ProcessThreadUntilRequestReturn() 
UE4Game!FRHIThread::Run() 
UE4Game!FRunnableThreadPThread::Run() 
UE4Game!FRunnableThreadPThread::_ThreadProc() 
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-52928 in the post.

0
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.18
Target Fix4.20
Fix Commit3855993
Main Commit4042226
Release Commit3856005
CreatedDec 1, 2017
ResolvedJan 25, 2018
UpdatedJun 21, 2018