My iOS 12.1 app uses dynamic lighting where the user can create/delete a limited number of SCNLights. The UITableView is managed by a NSFetchedResultsController. The app's code worked without error until I updated the operating system. Then, it began randomly crashing with Execution of the command buffer was aborted due to an error during execution. Caused GPU Hang Error (IOAF code 3 / 4)) errors. The errors occur when deleting SCNLights from the UITableView.
The CPU is running at 1% and the maximum value is 23%. FPS is 60. Maximum memory useage is 120 MB.
I've enabled Malloc Scribble and Guard Malloc. The IOAF code 3 / 4 errors are the only ones received. I don't understand what's wrong or how to debug the problem.