Metal GPU frame capture fails sometimes

As the title says, GPU frame capture failes sometimes, and the error picture looks like:


https://raw.githubusercontent.com/minggo/Pictures/master/metal-gpu-capture-fail.png


And there is not any error log output.


My environment is:

macOS Mojave 10.14.1

MacBook Pro(15-inch, 2018)

Graphics Radeon Pro 555X 4096 MB

Intel UHD Graphics 630 1536 MB

Xcode 10.1