Description
  • iOS package with Metal Desktop Renderer enabled crashes on iPhone
  • This issue does not occur if Metal Desktop Renderer is disabled
Steps to Reproduce
  1. On Mac, create a project and setup project to package for iOS
  2. Turn Metal Desktop Renderer ON
  3. Package for iOS, then install on device
  4. Open application

Actual Result: Game crashes
Expected Result: Game doesn't crash

Callstack
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogMetal: Error: Failed to generate a render pipeline state object:
 Vertex attribute 1 is not defined in the vertex descriptor.
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogRHI: Error: Failed to create graphics pipeline, hashes: Vertex: 2346C2CE871F278EDE058C87437D5689D7D56857, Pixel: F1383FA2510D659E38C7365FD9CDBBCF15DD3C38, Pipeline: B3D522B16B944741B171D6DFFCCEB1963ED6F901.
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogRHI: Error: Vertex: Main_0000167a_be7731b2
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogRHI: Error: Pixel: Main_000000b8_d7003b44
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogRHI: Error: Render Targets: (8)
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogRHI: Error: 0x0
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogRHI: Error: 0x0
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogRHI: Error: 0x0
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogRHI: Error: 0x0
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogRHI: Error: 0x0
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogRHI: Error: 0x0
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogRHI: Error: 0x0
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogRHI: Error: 0x0
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogRHI: Error: Depth Stencil Format:
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:633][  0]LogRHI: Error: 0xc
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:710][  0]LogIOS: Error: === Critical error: ===
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:710][  0]LogIOS: Error:
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:710][  0]LogIOS: Error: 5   MyProject                           0x000000010b2941c4 FMetalGraphicsPipelineState::Compile() + 160
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:711][  0]LogIOS: Error: 6   MyProject                           0x000000010b293ff8 FMetalDynamicRHI::RHICreateGraphicsPipelineState(FGraphicsPipelineStateInitializer const&) + 364
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:711][  0]LogIOS: Error: 7   MyProject                           0x0000000103fafbe8 FCompilePipelineStateTask::CompilePSO(FGraphicsPipelineStateInitializer::EPSOPrecacheCompileType const*) + 1132
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:711][  0]LogIOS: Error: 8   MyProject                           0x0000000103fb1d38 UE::Core::Private::Function::TFunctionRefCaller<InternalCreateGraphicsPipelineState(FGraphicsPipelineStateInitializer const&, EPSOPrecacheResult, bool, bool, FGraphicsPipelineState*, FPSOCompilationDebugData const&, bool)::$_26, void, FPSOPrecacheAsyncTask const*>::Call(void*, FPSOPrecacheAsyncTask const*&) + 136
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:711][  0]LogIOS: Error: 9   MyProject                           0x0000000103fb223c FPSOPrecacheAsyncTask::DoTaskWork() + 72
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:711][  0]LogIOS: Error: 10  MyProject                           0x00000001027618b8 FAsyncTaskBase::DoWork() + 108
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:711][  0]LogIOS: Error: 11  MyProject                           0x0000000102763210 FAsyncTaskBase::DoThreadedWork() + 20
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:711][  0]LogIOS: Error: 12  MyProject                           0x00000001027ea858 FQueuedThread::Run() + 648
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:711][  0]LogIOS: Error: 13  MyProject                           0x00000001027e2f04 FRunnableThreadPThread::Run() + 276
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:711][  0]LogIOS: Error: 14  MyProject                           0x0000000102766c80 FRunnableThreadPThread::_ThreadProc(void*) + 120
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:711][  0]LogIOS: Error: 15  libsystem_pthread.dylib             0x0000000209ba30ec _pthread_start + 116
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:711][  0]LogIOS: Error: 16  libsystem_pthread.dylib             0x0000000209ba172c thread_start + 8
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:711][  0]LogIOS: Error:
Mar  5 04:52:20 MyProject[2005] <Notice>: [UE] [2024.03.05-09.52.20:720][  0]LogGenericPlatformMisc: FPlatformMisc::RequestExit(1, FIOSErrorOutputDevice::Serialize)

Have Comments or More Details?

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

0
Login to Vote

Backlogged
ComponentUE - Rendering Architecture - RHI
Affects Versions5.5
Target Fix5.6
CreatedOct 11, 2024
UpdatedNov 20, 2024
View Jira Issue