Ticket #3791 (closed defect: fixed)
OpenGL output format seg fault
| Reported by: | dmorissette | Owned by: | toby |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.0 release |
| Component: | MapServer C Library | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: | sdlime, tbonfort |
Description
I get a seg fault with any mapfile in glGetIntegerv() which is called by the OglRenderer? constructor.
This is happening on a Ubuntu 10.04 Netbook. I realize that we should not expect high performance from a netbook, I was simply using it for testing. Here is the list of installed opengl-related packages:
ii freeglut3 2.6.0-0ubuntu2 OpenGL Utility Toolkit ii freeglut3-dev 2.6.0-0ubuntu2 OpenGL Utility Toolkit development files ii libftgl2 2.1.3~rc5-3 library to render text in OpenGL using FreeT ii libgl1-mesa-dev 7.7.1-1ubuntu3 A free implementation of the OpenGL API -- G ii libgl1-mesa-dri 7.7.1-1ubuntu3 A free implementation of the OpenGL API -- D ii libgl1-mesa-glx 7.7.1-1ubuntu3 A free implementation of the OpenGL API -- G ii libglitz-glx1 0.5.6-1build1 Glitz OpenGL library GLX backend ii libglitz1 0.5.6-1build1 Glitz OpenGL image compositing library ii libglu1-mesa 7.7.1-1ubuntu3 The OpenGL utility library (GLU) ii libglu1-mesa-dev 7.7.1-1ubuntu3 The OpenGL utility library -- development fi ii libqt4-opengl 4:4.6.2-0ubuntu5.1 Qt 4 OpenGL module
The following minimal mapfile can be used to reproduce the problem with shp2img:
shp2img -m empty_opengl.map -o /tmp/test.png
--- empty_opengl.map ---
MAP
SIZE 400 300
EXTENT 0 0 400 300
OUTPUTFORMAT
NAME 'OGL_PNG24'
DRIVER 'OGL/PNG'
IMAGEMODE RGB
END
LAYER
TYPE POINT
END
END
And here is the GDB backtrace:
#0 0x002a0276 in glGetIntegerv () from /usr/lib/mesa/libGL.so.1 #1 0x080a91cf in OglRenderer (this=0x8157bf8, width=400, height=300, color=0x8152828) at mapoglrenderer.cpp:35 #2 0x080a89d5 in msImageCreateOgl (width=400, height=300, format=0x8153b48, bg=0x8152828) at mapogl.cpp:138 #3 0x080852ae in msPrepareImage (map=0x8150e08, allow_nonsquare=1) at mapdraw.c:148 #4 0x08085962 in msDrawMap (map=0x8150e08, querymap=0) at mapdraw.c:283 #5 0x0805307d in main (argc=5, argv=0xbffff3d4) at shp2img.c:299
Change History
Note: See
TracTickets for help on using
tickets.
