Ubuntu 10.04 GLUT segfault
Posted: 15. May 2010, 04:55
Host vital statistics:
Vista 64
Geforce GTX 285, driver 197.45 (latest as of 14-5-2010)
VirtualBox 3.1.8 r61349 (ditto)
3d acceleration works flawlessly, except for programs that attempt to construct a window via GLUT:
I did some searching for this particular problem - saw some indications that this can be caused by outdated or limited drivers on the host, but that doesn't seem to apply in this case, especially given the otherwise perfectly working 3d accel in the guest. My best guess is that there's some mismatch between advertised GL capabilities and what's actually supported by the guest additions driver, but that's just vague handwaving from someone who doesn't really know how these things work.
Minimal program that demonstrates this behavior:
The above will segfault before printing "done".
Vista 64
Geforce GTX 285, driver 197.45 (latest as of 14-5-2010)
VirtualBox 3.1.8 r61349 (ditto)
3d acceleration works flawlessly, except for programs that attempt to construct a window via GLUT:
Code: Select all
OpenGL Warning: XGetVisualInfo returned 0 visuals for 9181000
zsh: segmentation fault
Minimal program that demonstrates this behavior:
Code: Select all
#include <GL/glut.h>
#include <stdio.h>
int main(int argc, char** argv) {
printf("glutInit\n");
glutInit(&argc, argv);
printf("glutInitDisplayMode\n");
glutInitDisplayMode(GLUT_DEPTH | GLUT_SINGLE | GLUT_RGBA);
printf("glutInitWindowPosition\n");
glutInitWindowPosition(100, 100);
printf("glutInitWindowSize\n");
glutInitWindowSize(320, 320);
printf("glutCreateWindow\n");
glutCreateWindow("Hello, World");
printf("done\n");
return 0;
}