As far as I can see, this problem was introduced with the gpu_free_unused_buffers() changes in rB97b597c. The code checks the returned pointer to stop looping, but the last iteration will return the last GPUTexture and set the queue to NULL, meaning that the next pop() will crash. Differential Revision: https://developer.blender.org/D8468