When I use metal to render, the application switch to the background resulting in metal rendering failure in iOS 15 sys. How can I do? Error: Execution of the command buffer was aborted due to an error during execution.Insufficient Permission (to submit GPU work from background) (00000006:kIOGPUCommandBufferCallbackErrorBackgroundExecutionNotPermitted)
Replies
Can you clarify how you are hitting this error? Are you trying to render while your app is in the background? Or are you trying to render while your app is running in the foreground and you are hitting this error unexpectedly?
-
Yes, I try to render while my app is in the picture in picture (The app is in the background).
-
In iOS 14 system, I can do it in the picture in picture. but when I do something in iOS 15.0 system, the render output the error (kIOGPUCommandBufferCallbackErrorBackgroundExecutionNotPermitted), how can i do?
I also received this log,After testing, it is found that it only appears on ios15 devices, It seems that the app(metal) will be active after switching to the background in iOS15 (It used to freeze in a few seconds).
-
yes, i don't know why. but AVSampleBufferDisplayLayer can render in the background, i am very curious about this.