U.S. District Judge Ed Kinkeade was not pleased.

The Dallas judge presided over one of the highest-profile trials of 2017—a suit against Facebook Inc. by game maker ZeniMax Media Inc. alleging the theft of the Oculus Rift virtual reality technology. But in a newly unsealed sanctions ruling, Kinkeade wrote that he was on the verge of throwing the whole thing out and ordering a new trial.