Description

This is a common crash affecting Mac users in 4.16.

User Descriptions

  • I tried to build the lighting and it keeps crashing
  • Whenever I attempt to build the project or change the preview rendering to IOS Metal the project immediately crashes.
Steps to Reproduce

repro steps currently unknown

Callstack
UE4Editor-MetalRHI.dylib!FMetalRHICommandContext::RHISetShaderUniformBuffer()
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-Core.dylib!FMacApplication::ProcessEvent()
UE4Editor-Core.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>

Callstack from Log

SIGSEGV: invalid attempt to access memory at address 0x18

[925]LogMac: FMetalRHICommandContext::RHISetShaderUniformBuffer(FRHIPixelShader*, unsigned int, FRHIUniformBuffer*) Address = 0x4ca89e0b (filename not found) [in UE4Editor-MetalRHI.dylib]
void FForwardLightingParameters::Set<FRHICommandList, FRHIPixelShader*>(FRHICommandList&, FRHIPixelShader* const&, FViewInfo const&, bool) Address = 0x1c09e9ca (filename not found) [in UE4Editor-Renderer.dylib]
TBasePassPixelShaderPolicyParamType<FUniformLightMapPolicyShaderParametersType>::SetParameters(FRHICommandList&, FMaterialRenderProxy const*, FMaterial const&, FViewInfo const*, EBlendMode, bool, ESceneRenderTargetsMode::Type, bool, bool) Address = 0x1c0a0440 (filename not found) [in UE4Editor-Renderer.dylib]
TBasePassDrawingPolicy<FUniformLightMapPolicy>::SetSharedState(FRHICommandList&, FDrawingPolicyRenderState const&, FViewInfo const*, FMeshDrawingPolicy::ContextDataType, bool) const Address = 0x1c09fc3d (filename not found) [in UE4Editor-Renderer.dylib]
void FDrawTranslucentMeshAction::Process<FUniformLightMapPolicy>(FRHICommandList&, FProcessBasePassMeshParameters const&, FUniformLightMapPolicy const&, FUniformLightMapPolicy::ElementDataType const&) Address = 0x1c91db99 (filename not found) [in UE4Editor-Renderer.dylib]
void ProcessBasePassMesh<FDrawTranslucentMeshAction>(FRHICommandList&, FProcessBasePassMeshParameters const&, FDrawTranslucentMeshAction&&) Address = 0x1c8dc912 (filename not found) [in UE4Editor-Renderer.dylib]
FTranslucencyDrawingPolicyFactory::DrawMesh(FRHICommandList&, FViewInfo const&, FTranslucencyDrawingPolicyFactory::ContextType, FMeshBatch const&, unsigned long long const&, FDrawingPolicyRenderState const&, bool, FPrimitiveSceneProxy const*, FHitProxyId) Address = 0x1c8db200 (filename not found) [in UE4Editor-Renderer.dylib]
FTranslucencyDrawingPolicyFactory::DrawDynamicMesh(FRHICommandList&, FViewInfo const&, FTranslucencyDrawingPolicyFactory::ContextType, FMeshBatch const&, bool, FDrawingPolicyRenderState const&, FPrimitiveSceneProxy const*, FHitProxyId) Address = 0x1c8dca4e (filename not found) [in UE4Editor-Renderer.dylib]
FRendererModule::DrawTileMesh(FRHICommandListImmediate&, FDrawingPolicyRenderState&, FSceneView const&, FMeshBatch const&, bool, FHitProxyId const&) Address = 0x1c6dc3a0 (filename not found) [in UE4Editor-Renderer.dylib]
FMeshMaterialRenderItem::RenderMaterial(FRHICommandListImmediate&, FDrawingPolicyRenderState&, FSceneView const&, FMeshMaterialRenderItem::FRenderData&) Address = 0x1d71b7b1 (filename not found) [in UE4Editor-MaterialUtilities.dylib]
FMeshMaterialRenderItem::Render_GameThread(FCanvas const*)::'lambda'(FRHICommandListImmediate&)::operator()(FRHICommandListImmediate&) const Address = 0x1d724196 (filename not found) [in UE4Editor-MaterialUtilities.dylib]
FMeshMaterialRenderItem::Render_GameThread(FCanvas const*) Address = 0x1d71ab8c (filename not found) [in UE4Editor-MaterialUtilities.dylib]
FCanvas::Flush_GameThread(bool) Address = 0xea065ee  (filename not found) [in UE4Editor-Engine.dylib]
FMeshRenderer::RenderMaterialTexCoordScales(FMaterialMergeData&, FMaterialRenderProxy*, UTextureRenderTarget2D*, TArray<FFloat16Color, FDefaultAllocator>&) Address = 0x1d711bb7 (filename not found) [in UE4Editor-MaterialUtilities.dylib]
FMaterialUtilities::ExportMaterialUVDensities(UMaterialInterface*, EMaterialQualityLevel::Type, ERHIFeatureLevel::Type, FMaterialUtilities::FExportErrorManager&) Address = 0x1d70f7d3 (filename not found) [in UE4Editor-MaterialUtilities.dylib]
FEditorBuildUtils::EditorBuildTextureStreaming(UWorld*, EViewModeIndex) Address = 0x1371bafe (filename not found) [in UE4Editor-UnrealEd.dylib]
FBuildAllHandler::ProcessBuild(TWeakPtr<SBuildProgressWidget, (ESPMode)0> const&) Address = 0x1371a8a0 (filename not found) [in UE4Editor-UnrealEd.dylib]
FBuildAllHandler::StartBuild(UWorld*, FName, TWeakPtr<SBuildProgressWidget, (ESPMode)0> const&) Address = 0x137184c1 (filename not found) [in UE4Editor-UnrealEd.dylib]
FEditorBuildUtils::EditorBuild(UWorld*, FName, bool) Address = 0x13713ca4 (filename not found) [in UE4Editor-UnrealEd.dylib]
TBaseStaticDelegateInstance<void ()>::ExecuteIfSafe() const Address = 0x26543707 (filename not found) [in UE4Editor-LevelEditor.dylib]
FUICommandList::ExecuteAction(TSharedRef<FUICommandInfo const, (ESPMode)0>) const Address = 0x12185de5 (filename not found) [in UE4Editor-Slate.dylib]
SToolBarButtonBlock::OnClicked() Address = 0x122c9e1e (filename not found) [in UE4Editor-Slate.dylib]
TBaseSPMethodDelegateInstance<false, SToolBarButtonBlock, (ESPMode)0, FReply ()>::Execute() const Address = 0x1234c241 (filename not found) [in UE4Editor-Slate.dylib]
SButton::OnMouseButtonUp(FGeometry const&, FPointerEvent const&) Address = 0x123a0796 (filename not found) [in UE4Editor-Slate.dylib]
FSlateApplication::RoutePointerUpEvent(FWidgetPath&, FPointerEvent&) Address = 0x12154514 (filename not found) [in UE4Editor-Slate.dylib]
FSlateApplication::ProcessMouseButtonUpEvent(FPointerEvent&) Address = 0x120f4f03 (filename not found) [in UE4Editor-Slate.dylib]
FSlateApplication::OnMouseUp(EMouseButtons::Type, FVector2D) Address = 0x1215e053 (filename not found) [in UE4Editor-Slate.dylib]
FMacApplication::ProcessEvent(FDeferredMacEvent const&) Address = 0xbddff8e  (filename not found) [in UE4Editor-Core.dylib]
FMacApplication::ProcessDeferredEvents(float) Address = 0xbdddeaf  (filename not found) [in UE4Editor-Core.dylib]
FSlateApplication::TickPlatform(float) Address = 0x121229db (filename not found) [in UE4Editor-Slate.dylib]
FSlateApplication::Tick(ESlateTickType) Address = 0x12121e14 (filename not found) [in UE4Editor-Slate.dylib]
FEngineLoop::Tick() Address = 0xbb2d80c  (filename not found) [in UE4Editor]
GuardedMain(wchar_t const*) Address = 0xbb33e12  (filename not found) [in UE4Editor]
-[UE4AppDelegate runGameThread:] Address = 0xbb4201a  (filename not found) [in UE4Editor]
-[FCocoaGameThread main] Address = 0xbdd5346  (filename not found) [in UE4Editor-Core.dylib]
__NSThread__start__() Address = 0x7d450b3d (filename not found) [in Foundation]
_pthread_body() Address = 0x913ee93b (filename not found) [in libsystem_pthread.dylib]
_pthread_body() Address = 0x913ee887 (filename not found) [in libsystem_pthread.dylib]
thread_start() Address = 0x913ee08d (filename not found) [in libsystem_pthread.dylib]

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-47544 in the post.

0
Login to Vote

Fixed
ComponentRendering
Affects Versions4.16
Target Fix4.18
Fix Commit3581989
CreatedJul 20, 2017
ResolvedAug 11, 2017
UpdatedAug 11, 2017