Description

Crash when compiling shaders on Mac. Issue is most reproducible when running a standalone PIE instance. Even though running in -game is similar and will crash if all shaders for the map loaded are not compiled, the crash will always reproduce in standalone.

Steps to Reproduce
  1. Open QAgame in the editor
  2. PIE in standalone

Result:
Observe crash as shaders compile

Callstack
SEGV_MAPERR at 0x3

FGenericPlatformMisc::RaiseException(unsigned int) Address = 0x10fc4d1cb [/Users/Shared/DevRendering/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp, line 307] [in UE4Editor-Core.dylib]
FOutputDeviceMacError::Serialize(wchar_t const*, ELogVerbosity::Type, FName const&) Address = 0x10fe1b296 [/Users/Shared/DevRendering/Engine/Source/Runtime/Core/Private/Mac/MacPlatformOutputDevices.cpp, line 93] [in UE4Editor-Core.dylib]
FOutputDevice::Logf(wchar_t const*, ...) Address = 0x10fe99da7 [/Users/Shared/DevRendering/Engine/Source/Runtime/Core/Private/Misc/OutputDevice.cpp, line 68] [in UE4Editor-Core.dylib]
FDebug::AssertFailed(char const*, char const*, int, wchar_t const*, ...) Address = 0x10fe1d2f1 [Runtime/Core/Public/Containers/ContainerAllocationPolicies.h, line 486] [in UE4Editor-Core.dylib]
ReportMetalCommandBufferFailure(id<MTLCommandBuffer>, wchar_t const*) Address = 0x14438ed5c [/Users/Shared/DevRendering/Engine/Source/Runtime/Apple/MetalRHI/Private/MetalCommandList.cpp, line 48] [in UE4Editor-MetalRHI.dylib]
MetalCommandBufferFailureInternal(id<MTLCommandBuffer>) Address = 0x1443df75c [/Users/Shared/DevRendering/Engine/Source/Runtime/Apple/MetalRHI/Private/MetalCommandList.cpp, line 54] [in UE4Editor-MetalRHI.dylib]
HandleAMDMetalCommandBufferError(id<MTLCommandBuffer>) Address = 0x14438db35 [/Users/Shared/DevRendering/Engine/Source/Runtime/Apple/MetalRHI/Private/MetalCommandList.cpp, line 124] [in UE4Editor-MetalRHI.dylib]
-[_MTLCommandBuffer didComplete:error:] Address = 0x7fff9dbcb5c8 (filename not found) [in Metal]
-[MTLIOAccelCommandBuffer didComplete:error:] Address = 0x7fff9dba3ec1 (filename not found) [in Metal]
-[_MTLCommandQueue commandBufferDidComplete:timestamp:error:] Address = 0x7fff9dbcf135 (filename not found) [in Metal]
ioAccelCommandQueueBlockFenceCallback Address = 0x7fff9dc721ee (filename not found) [in IOAccelerator]
IODispatchCalloutFromCFMessage Address = 0x7fff90a4b646 (filename not found) [in IOKit]
_IODispatchCalloutWithDispatch Address = 0x7fff90a4b6c5 (filename not found) [in IOKit]
dispatch_mig_server Address = 0x7fff90cf7a4b (filename not found) [in libdispatch.dylib]
_dispatch_client_callout Address = 0x7fff90ce340b (filename not found) [in libdispatch.dylib]
_dispatch_source_latch_and_call Address = 0x7fff90cf3675 (filename not found) [in libdispatch.dylib]
_dispatch_source_invoke Address = 0x7fff90ce7a83 (filename not found) [in libdispatch.dylib]
_dispatch_queue_drain Address = 0x7fff90ce8200 (filename not found) [in libdispatch.dylib]
_dispatch_queue_invoke Address = 0x7fff90cee707 (filename not found) [in libdispatch.dylib]
_dispatch_root_queue_drain Address = 0x7fff90ce6d53 (filename not found) [in libdispatch.dylib]
_dispatch_worker_thread3 Address = 0x7fff90ce6b00 (filename not found) [in libdispatch.dylib]
_pthread_wqthread Address = 0x7fff9d8ad4de (filename not found) [in libsystem_pthread.dylib]
start_wqthread Address = 0x7fff9d8ab341 (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-35337 in the post.

3
Login to Vote

Cannot Reproduce
ComponentUE - Graphics Features
Affects Versions4.134.14
CreatedAug 30, 2016
ResolvedNov 8, 2016
UpdatedApr 27, 2018