Just as the title says I am on UE 5.6 with a Mac M2Max chip. I have a script that places a camera in front of a metahuman and saves a depth map in an .EXR format.
The settings I’m using are the SCS_SCENE_DEPTH as the capture source and the TextureRenderTargetFormat is R32F. The exporter I’m using is the RenderTargetExporterEXR, when I try to export it, UE crashes and I get the stack trace at the bottom. The exact same script works on my friends windows laptop.
If anyone has any ideas on how to fix this or if anyone has had similar issues and any workarounds, any sort of help would be very helpful!
Fatal error: [File:./Runtime/Apple/MetalRHI/Private/MetalRenderTarget.cpp] [Line: 123]
‘RHIReadSurfaceData Format’ is not supported
0xb7da0388 UnrealEditor-MetalRHI.dylib!ConvertSurfaceDataToFColor(EPixelFormat, unsigned int, unsigned int, unsigned char*, unsigned int, FColor*, FReadSurfaceDataFlags) [UnknownFile])
0xb7d9efd0 UnrealEditor-MetalRHI.dylib!FMetalDynamicRHI::RHIReadSurfaceData(FRHITexture*, UE::Math::TIntRect, TArray<FColor, TSizedDefaultAllocator<32>>&, FReadSurfaceDataFlags) [UnknownFile])
0xb7d9e07c UnrealEditor-MetalRHI.dylib!FMetalDynamicRHI::RHIReadSurfaceData(FRHITexture*, UE::Math::TIntRect, TArray<FLinearColor, TSizedDefaultAllocator<32>>&, FReadSurfaceDataFlags) [UnknownFile])
0x15ef4354 UnrealEditor-Engine.dylib!FRenderTarget::ReadLinearColorPixels(TArray<FLinearColor, TSizedDefaultAllocator<32>>&, FReadSurfaceDataFlags, UE::Math::TIntRect)::$_0::operator()(FRHICommandListImmediate&) const [UnknownFile])
0x0242d348 UnrealEditor-RenderCore.dylib!UE::Core::Private::Function::TFunctionRefCaller<FRenderThreadCommandPipe::EnqueueAndLaunch(char16_t const*, unsigned int&, TStatId, TUniqueFunction<void (FRHICommandListImmediate&)>&&)::$_0, void>::Call(void*) [UnknownFile])
0x0242cc04 UnrealEditor-RenderCore.dylib!TGraphTask<TFunctionGraphTaskImpl<void (), (ESubsequentsMode::Type)1>>::ExecuteTask() [UnknownFile])
0x04338f2c UnrealEditor-Core.dylib!UE::Tasks::Private::FTaskBase::TryExecuteTask() [UnknownFile])
0x04337f38 UnrealEditor-Core.dylib!FNamedTaskThread::ProcessTasksNamedThread(int, bool) [UnknownFile])
0x0433635c UnrealEditor-Core.dylib!FNamedTaskThread::ProcessTasksUntilQuit(int) [UnknownFile])
0x023b27d4 UnrealEditor-RenderCore.dylib!RenderingThreadMain(FEvent*) [UnknownFile])
0x0240e39c UnrealEditor-RenderCore.dylib!FRenderingThread::Run() [UnknownFile])
0x0451f0cc UnrealEditor-Core.dylib!FRunnableThreadPThread::Run() [UnknownFile])
0x044c2814 UnrealEditor-Core.dylib!FRunnableThreadPThread::_ThreadProc(void*) [UnknownFile])
0x9314ec0c libsystem_pthread.dylib!_pthread_start() [UnknownFile])
0x93149b80 libsystem_pthread.dylib!thread_start() [UnknownFile])