Description

This is a common crash affecting Mac users in 4.16

User Descriptions

  • MacOS High Sierra Beta 2 - Starting a project
Steps to Reproduce
  1. Open QAGame
  2. Open TM-DistanceFields map

Result: Crash

Callstack
UE4Editor-Renderer.dylib!FUploadObjectsToBufferCS* TShaderMap<FGlobalShaderType>::GetShader<FUploadObjectsToBufferCS>()
UE4Editor-Renderer.dylib!FDeferredShadingSceneRenderer::UpdateGlobalDistanceFieldObjectBuffers()
UE4Editor-Renderer.dylib!FDeferredShadingSceneRenderer::Render()
UE4Editor-Renderer.dylib!FRendererModule::BeginRenderingViewFamily(FCanvas*, FSceneViewFamily*)::EURCMacro_FDrawSceneCommand::DoTask()
UE4Editor-Renderer.dylib!TGraphTask<FRendererModule::BeginRenderingViewFamily(FCanvas*, FSceneViewFamily*)::EURCMacro_FDrawSceneCommand>::ExecuteTask()
UE4Editor-Core.dylib!FNamedTaskThread::ProcessTasksNamedThread()
UE4Editor-Core.dylib!FNamedTaskThread::ProcessTasksUntilQuit()
UE4Editor-Core.dylib!FTaskGraphImplementation::ProcessThreadUntilRequestReturn()
UE4Editor-RenderCore.dylib!RenderingThreadMain()
UE4Editor-RenderCore.dylib!FRenderingThread::Run()
UE4Editor-Core.dylib!FRunnableThreadPThread::Run()
UE4Editor-Core.dylib!FRunnableThreadPThread::_ThreadProc()
libsystem_pthread.dylib!<Unknown>
libsystem_pthread.dylib!<Unknown>
libsystem_pthread.dylib!<Unknown>

Callstack from Log

LogMac:Error: appError called: Assertion failed: Assertion failed: ShaderRef != NULL && *ShaderRef != nullptr [File:Runtime/ShaderCore/Public/Shader.h] [Line: 1448] 
Failed to find shader type FUploadObjectsToBufferCS in Platform SF_METAL_SM5

LogCrashTracker: 

LogMac: === Critical error: ===
SIGSEGV: invalid attempt to access memory at address 0x3

LogMac: FGenericPlatformMisc::RaiseException(unsigned int) Address = 0xcc2b00b  (filename not found) [in UE4Editor-Core.dylib]
FOutputDeviceMacError::Serialize(wchar_t const*, ELogVerbosity::Type, FName const&) Address = 0xce26a2f  (filename not found) [in UE4Editor-Core.dylib]
FOutputDevice::Logf(wchar_t const*, ...) Address = 0xcf076cd  (filename not found) [in UE4Editor-Core.dylib]
FDebug::AssertFailed(char const*, char const*, int, wchar_t const*, ...) Address = 0xce6d93e  (filename not found) [in UE4Editor-Core.dylib]
FUploadObjectsToBufferCS* TShaderMap<FGlobalShaderType>::GetShader<FUploadObjectsToBufferCS>() const Address = 0x1d12cf52 (filename not found) [in UE4Editor-Renderer.dylib]
FDeferredShadingSceneRenderer::UpdateGlobalDistanceFieldObjectBuffers(FRHICommandListImmediate&) Address = 0x1d0a9f6b (filename not found) [in UE4Editor-Renderer.dylib]
FDeferredShadingSceneRenderer::Render(FRHICommandListImmediate&) Address = 0x1d09a6a0 (filename not found) [in UE4Editor-Renderer.dylib]
FRendererModule::BeginRenderingViewFamily(FCanvas*, FSceneViewFamily*)::EURCMacro_FDrawSceneCommand::DoTask(ENamedThreads::Type, TRefCountPtr<FGraphEvent> const&) Address = 0x1d707790 (filename not found) [in UE4Editor-Renderer.dylib]
TGraphTask<FRendererModule::BeginRenderingViewFamily(FCanvas*, FSceneViewFamily*)::EURCMacro_FDrawSceneCommand>::ExecuteTask(TArray<FBaseGraphTask*, FDefaultAllocator>&, ENamedThreads::Type) Address = 0x1d768d13 (filename not found) [in UE4Editor-Renderer.dylib]
FNamedTaskThread::ProcessTasksNamedThread(int, bool) Address = 0xcc4b6cf  (filename not found) [in UE4Editor-Core.dylib]
FNamedTaskThread::ProcessTasksUntilQuit(int) Address = 0xcc475d5  (filename not found) [in UE4Editor-Core.dylib]
FTaskGraphImplementation::ProcessThreadUntilRequestReturn(ENamedThreads::Type) Address = 0xcc43e11  (filename not found) [in UE4Editor-Core.dylib]
RenderingThreadMain(FEvent*) Address = 0x12d57d72 (filename not found) [in UE4Editor-RenderCore.dylib]
FRenderingThread::Run() Address = 0x12d6c8e7 (filename not found) [in UE4Editor-RenderCore.dylib]
FRunnableThreadPThread::Run() Address = 0xccac7f0  (filename not found) [in UE4Editor-Core.dylib]
FRunnableThreadPThread::_ThreadProc(void*) Address = 0xcc66b30  (filename not found) [in UE4Editor-Core.dylib]
_pthread_body() Address = 0xcf9a293b (filename not found) [in libsystem_pthread.dylib]
_pthread_body() Address = 0xcf9a2887 (filename not found) [in libsystem_pthread.dylib]
thread_start() Address = 0xcf9a208d (filename not found) [in libsystem_pthread.dylib]

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.164.17
Target Fix4.18
Fix Commit3592014
Main Commit3635058
Release Commit3643070
CreatedJul 14, 2017
ResolvedAug 29, 2017
UpdatedApr 27, 2018
View Jira Issue