So far unable to reproduce the crash, but I see the following in the output after the "setViewport" with "LIBGL_DEBUG=1" set:
libGL error: core dri or dri2 extension not found libGL error: failed to load driver: vboxvideo libGL error: failed to load driver: vboxvideo
So it would bear investigating where that comes from.