[MacRuby-devel] That bus error: Reproducible and with all gl calls!
Vincent Isambart
vincent.isambart at gmail.com
Mon May 4 16:17:20 PDT 2009
> I also reproduce this on the experimental branch, and it's crashing
> inside OpenGL. Maybe something needs to be done first, before
> calling OpenGL? I know it's working nice inside a Cocoa application
> context.
>
> I reproduce the same crash with Ruby 1.8 + RubyCocoa too:
>
> $ ruby -r osx/cocoa -e "OSX.require_framework 'OpenGL'; p
> OSX.glMatrixMode(OSX::GL_PROJECTION)"
And also with a simple C program:
~/tmp% cat e.c
#include <OpenGL/gl.h>
int main()
{
glMatrixMode(GL_PROJECTION);
return 0;
}
~/tmp% cat e.c
#include <OpenGL/gl.h>
int main()
{
glMatrixMode(GL_PROJECTION);
return 0;
}
~/tmp% gcc -framework OpenGL -o e e.c
~/tmp% ./e
zsh: bus error ./e
So as Laurent said, it's probably just an initialization problem.
More information about the MacRuby-devel
mailing list