I came across a strange intermittent bug in a game that I am developing for iOS and macOS using SpriteKit. After starting up on a Mac and waiting for some random time, the game window starts to flicker (see below), and I start getting the following console errors:
2016-10-20 12:52:43.000352 RobotGame-macOS[27086:790757] Execution of the command buffer was aborted due to an error during execution. <private>
2016-10-20 12:52:43.000432 RobotGame-macOS[27086:790757] Execution of the command buffer was aborted due to an error during execution. <private>
2016-10-20 12:52:57.139097 RobotGame-macOS[27086:790803] Execution of the command buffer was aborted due to an error during execution. <private>
2016-10-20 12:52:57.139173 RobotGame-macOS[27086:790803] Execution of the command buffer was aborted due to an error during execution. <private>

Currently, I have developed all the graphs using the basic SpriteKit SKNodes without any other custom shaders or any other advanced metal materials.
So what causes this? I don’t know where to start debugging it.
source
share