BUG: glGenVertexArrays segfaults, this time with attachment......

View: New views
5 Messages — Rating Filter:   Alert me  

BUG: glGenVertexArrays segfaults, this time with attachment......

by Erik W. Bjønnes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello :)

I seem to have run into a bug with the latest version of GLEW, 1.5.1 and
the command glGenVertexArrays(), in that it causes a segmentation fault no
matter what I do.

The system is a 64-bit Ubuntu 9.04, with the 190.18 drivers from Nvidia
and Freeglut 2.60.0 rc1, and the context is 3.1 forward_compatible.

Attached is a simple c++ program that reproduces the error with GLEW, but
not with glext.h.

I really hope this is something that can easily be fixed, since GLEW makes
it so much easier to deal with extension and multiple platforms.

Best regards,

Erik W. B.
Ps. Sorry for the lack of attachment in the previous message!


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
glew-users mailing list
glew-users@...
https://lists.sourceforge.net/lists/listinfo/glew-users

repro3.cpp (1K) Download Attachment

Re: BUG: glGenVertexArrays segfaults, this time with attachment......

by tom fogal-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 writes:
> I seem to have run into a bug with the latest version of GLEW, 1.5.1
> and the command glGenVertexArrays(), in that it causes a segmentation
> fault no matter what I do.
>
> Attached is a simple c++ program that reproduces the error with GLEW,
> but not with glext.h.

This doesn't compile on lenny.  GLUT_FORWARD_COMPATIBLE and GLUT_DEBUG
are not defined.  There are no prototypes for glutInitContextVersion or
glutInitContextFlags.

Lenny uses freeglut 2.4.0, it seems.

> I really hope this is something that can easily be fixed, since
> GLEW makes it so much easier to deal with extension and multiple
> platforms.

It's working on my (heavily modified) GLEW, after I adjust the code to
comment out the lines that can't compile.  Though I'm not sure how,
since the function isn't listed in the spec files in GLEW's repo.

Can you clarify when the function was added?  I see it in the OpenGL
3.1 spec, but was it added at 3.0 or 3.1?

-tom

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
glew-users mailing list
glew-users@...
https://lists.sourceforge.net/lists/listinfo/glew-users

Re: BUG: glGenVertexArrays segfaults, this time with attachment......

by Nigel Stewart-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


 > Can you clarify when the function was added?  I see it in the OpenGL
 > 3.1 spec, but was it added at 3.0 or 3.1?

http://www.opengl.org/registry/specs/ARB/vertex_array_object.txt

auto/registry/ARB/vertex_array_object.txt

I'll try it on a 64-bit Fedora...

- Nigel

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
glew-users mailing list
glew-users@...
https://lists.sourceforge.net/lists/listinfo/glew-users

Re: BUG: glGenVertexArrays segfaults, this time with attachment......

by Nigel Stewart-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Erik,

I suggest the following addition to your program:

if (!GLEW_ARB_vertex_array_object)
     std::cerr << "ARB_vertex_array_object not available." << std::endl;

- Nigel

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
glew-users mailing list
glew-users@...
https://lists.sourceforge.net/lists/listinfo/glew-users

Re: BUG: glGenVertexArrays segfaults, this time with attachment......

by Erik W. Bjønnes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you for your suggestion Nigel,

I'll do just that, and stick to using the non-deprecated functions for now.
Hopefully it won't be too long before VAO's are working with GLEW.

Thank you to everyone else who also had a look at the problem.

-Erik

> Erik,
>
> I suggest the following addition to your program:
>
> if (!GLEW_ARB_vertex_array_object)
>      std::cerr << "ARB_vertex_array_object not available." << std::endl;
>
> - Nigel
>
> -----------------------------------------------------------------------------------
> This email message is for the sole use of the intended recipient(s) and
> may contain
> confidential information.  Any unauthorized review, use, disclosure or
> distribution
> is prohibited.  If you are not the intended recipient, please contact the
> sender by
> reply email and destroy all copies of the original message.
> -----------------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> glew-users mailing list
> glew-users@...
> https://lists.sourceforge.net/lists/listinfo/glew-users
>



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
glew-users mailing list
glew-users@...
https://lists.sourceforge.net/lists/listinfo/glew-users