wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

Recover from OpenGL context loss

Open DemiMarie opened this issue 1 year ago • 2 comments

OpenGL contexts can be lost for a variety of reasons, of which perhaps the most common is the GPU and its driver failing to limit the impact of faults to a single context. To prevent a buggy web page using WebGL from taking down the whole user session, it would be nice to use robust OpenGL contexts.

DemiMarie avatar Oct 02 '24 23:10 DemiMarie

https://github.com/WayfireWM/wayfire/issues/2458

It needs plumbing into every plugin that uses OpenGL, and even then, I never got it to work without crashing the whole compositor.

kode54 avatar Oct 02 '24 23:10 kode54

#2458

It needs plumbing into every plugin that uses OpenGL, and even then, I never got it to work without crashing the whole compositor.

See the last two comments — after a context loss, every pointer to an OpenGL resource should be cleared, at least for ones managed by wlroots.

DemiMarie avatar Oct 02 '24 23:10 DemiMarie