Plotly 3d functions called from RStudio crash my virtual machine

I am running RStudio in an Ubuntu 16.4 guest OS on VirtualBox.

When I execute the code lines for the “Basic 3D Scatter Plot” example from the tutorial under it crashes the whole guest OS, i.e. the virtual machine totally crashes.

It might be related to the fact that Webgl is not working inside the browsers of the Ubuntu guest system.

Currently, I am not sure, whether this is a problem of, RStudio or Virtualbox. I hope someone can help me with that.

Best regards