最近做了一个项目,在打开某模型时,会报gpus_ReturnGuiltyForHardwareRestart,然后退出。在断点中加入OpenGL ES Error Breakpoint,以及libGPUSupportMercury.dylib等Breakpoint,打印如下错误:
2020-07-20 10:34:01.751422+0800 MYAPP[9121:1145438] Execution of the command buffer was aborted due to an error during execution. Caused GPU Hang Error (IOAF code 3)
2020-07-20 10:34:01.753973+0800 MYAPP[9121:1145438] GLDRendererMetal command buffer completion error: Error Domain=MTLCommandBufferErrorDomain Code=2 "Caused GPU Hang Error (IOAF code 3)" UserInfo={NSLocalizedDescription=Caused GPU Hang Error (IOAF code 3)}
2020-07-20 10:34:01.755404+0800 MYAPP[9121:1145438] Execution of the command buffer was aborted due to an error during execution. Discarded (victim of GPU error/recovery) (IOAF code 5)
先记录错误,后续记录解决方法。
网友评论