I can confirm this bug too with the same configuration. Seems like the
nvidia 390 driver is broken in Bionic (for primus at least).
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
BadMatch error in X_GLXSwapBuffers running OpenGL apps with nvidia-
To manage notifications about this bug go to:
ubuntu-bugs mailing list