Java2D not using OpenGL randomly?

Hello,
The game I am working on uses the javafx Canvas class and the BufferStrategy you get from it to draw to the screen. Normally, this uses the GPU, but occasionally, it stops being able to and uses CPU based methods (I have determined this by using the “sun.java2d.trace” system property which shows the draw operations). It’s not a per-execution thing either, as once it stops working once, no other instance of the game uses OpenGL to render until I restart the computer. After that, it will use OpenGL again.

Has anybody else had this problem, and does anybody have any ideas as to how to fix it?