sirikata/sirikata — Issue #464: Crash on Linux Intel Sandybridge
Author: ewencp
Created: 2012-01-06 20:13:28+00:00
State: open

We get this crash after cppoh starts up the Ogre plugin:
```
The program '[Berkelium]' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadContextTag'.
(Details: serial 24 error_code 174 request_code 155 minor_code 11)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
```
(Note that despite the [Berkelium] string, this is occurring in the main cppoh binary.)
From glxinfo:
```
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile GEM 20100330 DEVELOPMENT
OpenGL version string: 2.1 Mesa 7.10.2
OpenGL shading language version string: 1.20
```

This post on the Ogre forums suggests it has to do with initialization order of the Ogre GL plugin and SDL window creation: http://www.ogre3d.org/forums/viewtopic.php?f=2&t=67851 . Changing that ordering seems to require some significant refactoring of the Ogre initialization code.