gnome-shell crashes when resizing OpenGL window
I have a couple of applications that I wrote myself. They are OpenGL graphics applications. One application uses SDL for OpenGL context management, and the other uses GLFW.
When I resize the windows of these applications by dragging the window edges, gnome-shell crashes almost 100 % of the time after a certain amount of resizing back and forth. This does not happen when instantly resizing the window (e.g. with Alt+F10, which effectively does a resize as far as SDL and GLFW are concerned anyway).
Rapidly resizing the window of glxgears does not seem to crash gnome-shell, which confuses me. I guess it is interacting with things differently or something.
Anyways, I'm using the following versions of involved software packages:
I'm thinking that maybe the two libraries I use (SDL and GLFW) create new OpenGL contexts every time when using their respective resizing mechanisms, whereas glxgears does something different, and requesting new contexts with new sizes too often during a small period of time might not go too well? Not sure at all what details I can provide regarding this problem. Hopefully someone can ask the right questions and I will be able to provide the necessary information.
I will be very lucky if the applications were started from a terminal. That way the undecorated window of the terminal has focus after the crash, and I can relaunch gnome-shell from there.
Any help is appreciated!
DistroRelease: Ubuntu 11.10
Package: gnome-shell 3.2.1-0ubuntu1.1
Uname: Linux 3.0.0-15-generic i686
Date: Wed Jan 4 04:19:48 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
UpgradeStatus: No upgrade log present (probably fresh install)