Description

This is a 4.18 Mac/Metal crash that has occurred for a few users.

It appears related to the Forward Renderer.

Callstack from Log

[2017.10.27-06.10.08:809][261]LogMaterial: Missing cached shader map for material FDebugViewModeMaterialProxy M_Glass_CleanMaster, compiling. 
[2017.10.27-06.10.08:813][261]TextureStreamingBuild: Display: Compiling optional shaders took 0.372 seconds.
[2017.10.27-06.10.08:892][261]LogMac: === Critical error: ===
SIGSEGV: invalid attempt to access memory at address 0x18

[2017.10.27-06.10.08:892][261]LogMac: 0x257e3121 UE4Editor-MetalRHI.dylib!FMetalRHICommandContext::RHISetShaderUniformBuffer(FRHIPixelShader*, unsigned int, FRHIUniformBuffer*)   [UnknownFile]) 
0x10ec6a17 UE4Editor-Renderer.dylib!void SetUniformBufferParameter<FRHIPixelShader*, FRHICommandList>(FRHICommandList&, FRHIPixelShader*, FShaderUniformBufferParameter const&, FRHIUniformBuffer*)   [UnknownFile]) 
0x10f5b845 UE4Editor-Renderer.dylib!void FForwardLightingParameters::Set<FRHICommandList, FRHIPixelShader*>(FRHICommandList&, FRHIPixelShader* const&, FViewInfo const&, bool)   [UnknownFile]) 
0x10f5dc22 UE4Editor-Renderer.dylib!TBasePassPixelShaderPolicyParamType<FUniformLightMapPolicyShaderParametersType>::SetParameters(FRHICommandList&, FMaterialRenderProxy const*, FMaterial const&, FViewInfo const*, EBlendMode, bool, ESceneRenderTargetsMode::Type, bool, bool)   [UnknownFile]) 
0x10f5d459 UE4Editor-Renderer.dylib!TBasePassDrawingPolicy<FUniformLightMapPolicy>::SetSharedState(FRHICommandList&, FDrawingPolicyRenderState const&, FViewInfo const*, FMeshDrawingPolicy::ContextDataType, bool) const   [UnknownFile]) 
0x1184c6bf UE4Editor-Renderer.dylib!void FDrawTranslucentMeshAction::Process<FUniformLightMapPolicy>(FRHICommandList&, FProcessBasePassMeshParameters const&, FUniformLightMapPolicy const&, FUniformLightMapPolicy::ElementDataType const&)   [UnknownFile]) 
0x117ff31a UE4Editor-Renderer.dylib!void ProcessBasePassMesh<FDrawTranslucentMeshAction>(FRHICommandList&, FProcessBasePassMeshParameters const&, FDrawTranslucentMeshAction&&)   [UnknownFile]) 
0x117fe412 UE4Editor-Renderer.dylib!FTranslucencyDrawingPolicyFactory::DrawMesh(FRHICommandList&, FViewInfo const&, FTranslucencyDrawingPolicyFactory::ContextType, FMeshBatch const&, unsigned long long const&, FDrawingPolicyRenderState const&, bool, FPrimitiveSceneProxy const*, FHitProxyId)   [UnknownFile]) 
0x117ff425 UE4Editor-Renderer.dylib!FTranslucencyDrawingPolicyFactory::DrawDynamicMesh(FRHICommandList&, FViewInfo const&, FTranslucencyDrawingPolicyFactory::ContextType, FMeshBatch const&, bool, FDrawingPolicyRenderState const&, FPrimitiveSceneProxy const*, FHitProxyId)   [UnknownFile]) 
0x115e8570 UE4Editor-Renderer.dylib!FRendererModule::DrawTileMesh(FRHICommandListImmediate&, FDrawingPolicyRenderState&, FSceneView const&, FMeshBatch const&, bool, FHitProxyId const&)   [UnknownFile]) 
0x126ab28a UE4Editor-MaterialUtilities.dylib!FMeshMaterialRenderItem::RenderMaterial(FRHICommandListImmediate&, FDrawingPolicyRenderState&, FSceneView const&, FMeshMaterialRenderItem::FRenderData&)   [UnknownFile]) 
0x126b2e1c UE4Editor-MaterialUtilities.dylib!FMeshMaterialRenderItem::Render_GameThread(FCanvas const*)::'lambda'(FRHICommandListImmediate&)::operator()(FRHICommandListImmediate&) const   [UnknownFile]) 
0x126aa44e UE4Editor-MaterialUtilities.dylib!FMeshMaterialRenderItem::Render_GameThread(FCanvas const*)   [UnknownFile]) 
0x0449d4b8 UE4Editor-Engine.dylib!FCanvas::Flush_GameThread(bool)   [UnknownFile]) 
0x126a03e6 UE4Editor-MaterialUtilities.dylib!FMeshRenderer::RenderMaterialTexCoordScales(FMaterialMergeData&, FMaterialRenderProxy*, UTextureRenderTarget2D*, TArray<FFloat16Color, FDefaultAllocator>&)   [UnknownFile]) 
0x1269dd47 UE4Editor-MaterialUtilities.dylib!FMaterialUtilities::ExportMaterialUVDensities(UMaterialInterface*, EMaterialQualityLevel::Type, ERHIFeatureLevel::Type, FMaterialUtilities::FExportErrorManager&)   [UnknownFile]) 
0x08d4d485 UE4Editor-UnrealEd.dylib!FEditorBuildUtils::EditorBuildTextureStreaming(UWorld*, EViewModeIndex)   [UnknownFile]) 
0x08d4c287 UE4Editor-UnrealEd.dylib!FBuildAllHandler::ProcessBuild(TWeakPtr<SBuildProgressWidget, (ESPMode)0> const&)   [UnknownFile]) 
0x08d49f2a UE4Editor-UnrealEd.dylib!FBuildAllHandler::StartBuild(UWorld*, FName, TWeakPtr<SBuildProgressWidget, (ESPMode)0> const&)   [UnknownFile]) 
0x08d44613 UE4Editor-UnrealEd.dylib!FEditorBuildUtils::EditorBuild(UWorld*, FName, bool)   [UnknownFile]) 
0x1b5a8547 UE4Editor-LevelEditor.dylib!TBaseStaticDelegateInstance<void ()>::ExecuteIfSafe() const   [UnknownFile]) 
0x076acaf2 UE4Editor-Slate.dylib!FUICommandList::ExecuteAction(TSharedRef<FUICommandInfo const, (ESPMode)0>) const   [UnknownFile]) 
0x077e156a UE4Editor-Slate.dylib!SToolBarButtonBlock::OnClicked()   [UnknownFile]) 
0x0785c176 UE4Editor-Slate.dylib!TBaseSPMethodDelegateInstance<false, SToolBarButtonBlock, (ESPMode)0, FReply ()>::Execute() const   [UnknownFile]) 
0x078b1dca UE4Editor-Slate.dylib!SButton::OnMouseButtonUp(FGeometry const&, FPointerEvent const&)   [UnknownFile]) 
0x07677d4b UE4Editor-Slate.dylib!FSlateApplication::RoutePointerUpEvent(FWidgetPath&, FPointerEvent&)   [UnknownFile]) 
0x0761aa74 UE4Editor-Slate.dylib!FSlateApplication::ProcessMouseButtonUpEvent(FPointerEvent&)   [UnknownFile]) 
0x0768171e UE4Editor-Slate.dylib!FSlateApplication::OnMouseUp(EMouseButtons::Type, FVector2D)   [UnknownFile]) 
0x07570221 UE4Editor-ApplicationCore.dylib!FMacApplication::ProcessEvent(FDeferredMacEvent const&)   [UnknownFile]) 
0x0756fd3f UE4Editor-ApplicationCore.dylib!FMacApplication::ProcessDeferredEvents(float)   [UnknownFile]) 
0x07645d30 UE4Editor-Slate.dylib!FSlateApplication::TickPlatform(float)   [UnknownFile]) 
0x076452c3 UE4Editor-Slate.dylib!FSlateApplication::Tick(ESlateTickType)   [UnknownFile]) 
0x01638f9e UE4Editor!FEngineLoop::Tick()   [UnknownFile]) 
0x01640e62 UE4Editor!GuardedMain(wchar_t const*)   [UnknownFile]) 
0x0164e500 UE4Editor!-[UE4AppDelegate runGameThread:]   [UnknownFile]) 
0x018ee137 UE4Editor-Core.dylib!-[FCocoaGameThread main]   [UnknownFile]) 
0xcb5d48ad Foundation!__NSThread__start__()   [UnknownFile]) 
0xdf55293b libsystem_pthread.dylib!_pthread_body()   [UnknownFile]) 
0xdf552887 libsystem_pthread.dylib!_pthread_body()   [UnknownFile]) 
0xdf55208d libsystem_pthread.dylib!thread_start()   [UnknownFile]) 
Steps to Reproduce

Build Texture Streaming on project with translucent meshes. (Used attached project below).

Callstack
SEGV_MAPERR at 0x18

UE4Editor-MetalRHI.dylib!FMetalRHICommandContext::RHISetShaderUniformBuffer()
UE4Editor-Renderer.dylib!void SetUniformBufferParameter<FRHIPixelShader*, FRHICommandList>()
UE4Editor-Renderer.dylib!void FForwardLightingParameters::Set<FRHICommandList, FRHIPixelShader*>()
UE4Editor-Renderer.dylib!TBasePassPixelShaderPolicyParamType<FUniformLightMapPolicyShaderParametersType>::SetParameters()
UE4Editor-Renderer.dylib!TBasePassDrawingPolicy<FUniformLightMapPolicy>::SetSharedState()
UE4Editor-Renderer.dylib!void FDrawTranslucentMeshAction::Process<FUniformLightMapPolicy>()
UE4Editor-Renderer.dylib!void ProcessBasePassMesh<FDrawTranslucentMeshAction>()
UE4Editor-Renderer.dylib!FTranslucencyDrawingPolicyFactory::DrawMesh()
UE4Editor-Renderer.dylib!FTranslucencyDrawingPolicyFactory::DrawDynamicMesh()
UE4Editor-Renderer.dylib!FRendererModule::DrawTileMesh()
UE4Editor-MaterialUtilities.dylib!FMeshMaterialRenderItem::RenderMaterial()
UE4Editor-MaterialUtilities.dylib!FMeshMaterialRenderItem::Render_GameThread(FCanvas const*)::'lambda'(FRHICommandListImmediate&)::operator()()
UE4Editor-MaterialUtilities.dylib!FMeshMaterialRenderItem::Render_GameThread()
UE4Editor-Engine.dylib!FCanvas::Flush_GameThread()
UE4Editor-MaterialUtilities.dylib!FMeshRenderer::RenderMaterialTexCoordScales()
UE4Editor-MaterialUtilities.dylib!FMaterialUtilities::ExportMaterialUVDensities()
UE4Editor-UnrealEd.dylib!FEditorBuildUtils::EditorBuildTextureStreaming()
UE4Editor-UnrealEd.dylib!FBuildAllHandler::ProcessBuild(TWeakPtr<SBuildProgressWidget,()
UE4Editor-UnrealEd.dylib!FBuildAllHandler::StartBuild(UWorld*, FName, TWeakPtr<SBuildProgressWidget,()
UE4Editor-UnrealEd.dylib!FEditorBuildUtils::EditorBuild()
UE4Editor-LevelEditor.dylib!TBaseStaticDelegateInstance<void ()>::ExecuteIfSafe()
UE4Editor-Slate.dylib!FUICommandList::ExecuteAction(TSharedRef<FUICommandInfo const,()
UE4Editor-Slate.dylib!SToolBarButtonBlock::OnClicked()
UE4Editor-Slate.dylib!TBaseSPMethodDelegateInstance<false, SToolBarButtonBlock, (ESPMode)0, FReply ()>::Execute()
UE4Editor-Slate.dylib!SButton::OnMouseButtonUp()
UE4Editor-Slate.dylib!FSlateApplication::RoutePointerUpEvent()
UE4Editor-Slate.dylib!FSlateApplication::ProcessMouseButtonUpEvent()
UE4Editor-Slate.dylib!FSlateApplication::OnMouseUp()
UE4Editor-ApplicationCore.dylib!FMacApplication::ProcessEvent()
UE4Editor-ApplicationCore.dylib!FMacApplication::ProcessDeferredEvents()
UE4Editor-Slate.dylib!FSlateApplication::TickPlatform()
UE4Editor-Slate.dylib!FSlateApplication::Tick()
UE4Editor!FEngineLoop::Tick()
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-51698 in the post.

1
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.184.19
Target Fix4.20
Fix Commit4077664
Main Commit4209927
Release Commit4099307
CreatedOct 27, 2017
ResolvedMay 17, 2018
UpdatedJul 13, 2018
View Jira Issue