Unity Issue Tracker - App crashes with "A command encoder is already encoding to this command buffer" error when activating a UI component
Closed
UUM-3151
App crashes with "A command encoder is already encoding to this command buffer" error when activating a UI component
Unity: Metal
iOS
Won't Fix
2019.4.X
2019.4 LTS has reached end-of-life. This port is cancelled.
How to reproduce:
1. Open the attached project ("unity.zip")
2. Build an Xcode project and open it
3. Open /Libraries/<user's library here>/core/interface/unityinterface/ref_source/AppleOSFrameContextFiller.mm
4. Comment out line 3
5. Run the project on an iOS device
Reproducible on:
iPhone 8 Plus (iOS 14.4.2)
iPhone 13 mini (iOS 15)
Error:
-[AGXG14FamilyCommandBuffer renderCommandEncoderWithDescriptor:], line 379: error 'A command encoder is already encoding to this command buffer'
-[AGXG14FamilyCommandBuffer renderCommandEncoderWithDescriptor:]:379: failed assertion `A command encoder is already encoding to this command buffer'
Prioritise and Follow this issue
Have a workaround or additional info about this issue?