Like many new users I based my first SFML code on the example in the docs, which has an update loop like so:
while(app.IsOpened())
{
HandleEvents(); // calls app.Close() on close event.
DoRendering();
app.Display();
}
I found I was getting a crash inside the nvidia driver when I exited the app, which was caused by calling app.Close() (which deletes the gl context) followed by continuing to render. In my case calling glBindVertexArray() after the window was closed seemed to corrupt something in the driver.
It may be wise to alter the example in the docs so that it doesn't do any rendering after the window is closed, if only to save others the trouble of debugging this.