[GRASS-dev] Re: [GRASS GIS] #104: saving display to tiff or ppm
garbled when NVIZ is not top window
GRASS GIS
trac at osgeo.org
Thu Mar 27 16:42:08 EDT 2008
#104: saving display to tiff or ppm garbled when NVIZ is not top window
----------------------+-----------------------------------------------------
Reporter: dylan | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: minor | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: NVIZ openGL
----------------------+-----------------------------------------------------
Comment (by msieczka):
Glynn wrote:
> Could you debug this?
Here's debug output:
{{{
GRASS 6.3.svn (spearfish60):~ > g.region rast=elevation.10m -a
GRASS 6.3.svn (spearfish60):~ > nviz elev=elevation.10m&
[1] 12698
Loading Data
Loading Data
translating colors from fp
recalculating normals...
Row 100
GRASS 6.3.svn (spearfish60):~ > gdb $GISBASE/etc/nviz2.2/nviz
GNU gdb 6.7.1-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
(gdb) attach 12698
Attaching to program: /usr/local/grass-6.3.svn/etc/nviz2.2/nviz, process
12698
Reading symbols from /usr/local/grass-6.3.svn/lib/libgrass_ogsf.so...done.
Loaded symbols for /usr/local/grass-6.3.svn/lib/libgrass_ogsf.so
Reading symbols from
/usr/local/grass-6.3.svn/lib/libgrass_bitmap.so...done.
Loaded symbols for /usr/local/grass-6.3.svn/lib/libgrass_bitmap.so
Reading symbols from
/usr/local/grass-6.3.svn/lib/libgrass_linkm.so...done.
Loaded symbols for /usr/local/grass-6.3.svn/lib/libgrass_linkm.so
Reading symbols from /usr/local/grass-6.3.svn/lib/libgrass_g3d.so...done.
Loaded symbols for /usr/local/grass-6.3.svn/lib/libgrass_g3d.so
Reading symbols from /usr/local/grass-6.3.svn/lib/libgrass_gis.so...done.
Loaded symbols for /usr/local/grass-6.3.svn/lib/libgrass_gis.so
Reading symbols from
/usr/local/grass-6.3.svn/lib/libgrass_datetime.so...done.
Loaded symbols for /usr/local/grass-6.3.svn/lib/libgrass_datetime.so
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from
/usr/local/grass-6.3.svn/lib/libgrass_sites.so...done.
Loaded symbols for /usr/local/grass-6.3.svn/lib/libgrass_sites.so
Reading symbols from
/usr/local/grass-6.3.svn/lib/libgrass_dbmibase.so...done.
Loaded symbols for /usr/local/grass-6.3.svn/lib/libgrass_dbmibase.so
Reading symbols from
/usr/local/grass-6.3.svn/lib/libgrass_dbmiclient.so...done.
Loaded symbols for /usr/local/grass-6.3.svn/lib/libgrass_dbmiclient.so
Reading symbols from /usr/local/grass-6.3.svn/lib/libgrass_vect.so...done.
Loaded symbols for /usr/local/grass-6.3.svn/lib/libgrass_vect.so
Reading symbols from /usr/local/grass-6.3.svn/lib/libgrass_dgl.so...done.
Loaded symbols for /usr/local/grass-6.3.svn/lib/libgrass_dgl.so
Reading symbols from /usr/local/grass-6.3.svn/lib/libgrass_dig2.so...done.
Loaded symbols for /usr/local/grass-6.3.svn/lib/libgrass_dig2.so
Reading symbols from
/usr/local/grass-6.3.svn/lib/libgrass_rtree.so...done.
Loaded symbols for /usr/local/grass-6.3.svn/lib/libgrass_rtree.so
Reading symbols from /usr/local/lib/libgdal.so.1...done.
Loaded symbols for /usr/local/lib/libgdal.so.1
Reading symbols from /usr/local/grass-6.3.svn/lib/libgrass_form.so...done.
Loaded symbols for /usr/local/grass-6.3.svn/lib/libgrass_form.so
Reading symbols from /usr/lib/libtk8.4.so.0...done.
Loaded symbols for /usr/lib/libtk8.4.so.0
Reading symbols from /lib/i686/cmov/libm.so.6...done.
Loaded symbols for /lib/i686/cmov/libm.so.6
Reading symbols from /usr/lib/libtcl8.4.so.0...done.
Loaded symbols for /usr/lib/libtcl8.4.so.0
Reading symbols from /usr/lib/libGLU.so.1...done.
Loaded symbols for /usr/lib/libGLU.so.1
Reading symbols from /usr/lib/libGL.so.1...Reading symbols from
/usr/lib/debug/usr/lib/libGL.so.1.2...done.
done.
Loaded symbols for /usr/lib/libGL.so.1
Reading symbols from /usr/lib/libSM.so.6...done.
Loaded symbols for /usr/lib/libSM.so.6
Reading symbols from /usr/lib/libICE.so.6...done.
Loaded symbols for /usr/lib/libICE.so.6
Reading symbols from /usr/lib/libX11.so.6...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libXmu.so.6...done.
Loaded symbols for /usr/lib/libXmu.so.6
Reading symbols from /usr/lib/libXext.so.6...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libtiff.so.4...done.
Loaded symbols for /usr/lib/libtiff.so.4
Reading symbols from /lib/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/i686/cmov/libc.so.6
Reading symbols from /usr/local/lib/libgeos_c.so.1...done.
Loaded symbols for /usr/local/lib/libgeos_c.so.1
Reading symbols from /usr/local/lib/libgeos-3.0.0.so...done.
Loaded symbols for /usr/local/lib/libgeos-3.0.0.so
Reading symbols from /usr/lib/libsqlite3.so.0...done.
Loaded symbols for /usr/lib/libsqlite3.so.0
Reading symbols from /usr/lib/libexpat.so.1...done.
Loaded symbols for /usr/lib/libexpat.so.1
Reading symbols from /usr/lib/libxerces-c.so.28...done.
Loaded symbols for /usr/lib/libxerces-c.so.28
Reading symbols from /lib/i686/cmov/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread 0xb58cc6d0 (LWP 12698)]
[New Thread 0xb58cbb90 (LWP 12703)]
Loaded symbols for /lib/i686/cmov/libpthread.so.0
Reading symbols from /usr/lib/libpq.so.5...done.
Loaded symbols for /usr/lib/libpq.so.5
Reading symbols from /lib/i686/cmov/librt.so.1...done.
Loaded symbols for /lib/i686/cmov/librt.so.1
Reading symbols from /lib/i686/cmov/libdl.so.2...done.
Loaded symbols for /lib/i686/cmov/libdl.so.2
Reading symbols from /usr/lib/libcurl.so.4...done.
Loaded symbols for /usr/lib/libcurl.so.4
Reading symbols from /usr/lib/libidn.so.11...done.
Loaded symbols for /usr/lib/libidn.so.11
Reading symbols from /usr/lib/libssh2.so.1...done.
Loaded symbols for /usr/lib/libssh2.so.1
Reading symbols from /usr/lib/libldap_r-2.4.so.2...done.
Loaded symbols for /usr/lib/libldap_r-2.4.so.2
Reading symbols from /usr/lib/libkrb5.so.3...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /usr/lib/libk5crypto.so.3...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /lib/libcom_err.so.2...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /usr/lib/i686/cmov/libssl.so.0.9.8...done.
Loaded symbols for /usr/lib/i686/cmov/libssl.so.0.9.8
Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.8...done.
Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8
Reading symbols from /usr/lib/libgssapi_krb5.so.2...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libXxf86vm.so.1...done.
Loaded symbols for /usr/lib/libXxf86vm.so.1
Reading symbols from /usr/lib/libXdamage.so.1...done.
Loaded symbols for /usr/lib/libXdamage.so.1
Reading symbols from /usr/lib/libXfixes.so.3...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /usr/lib/libdrm.so.2...done.
Loaded symbols for /usr/lib/libdrm.so.2
Reading symbols from /usr/lib/libXau.so.6...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /usr/lib/libXt.so.6...done.
Loaded symbols for /usr/lib/libXt.so.6
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libicuuc.so.38...done.
Loaded symbols for /usr/lib/libicuuc.so.38
Reading symbols from /usr/lib/libicudata.so.38...warning: Lowest section
in /usr/lib/libicudata.so.38 is .hash at 000000b4
done.
Loaded symbols for /usr/lib/libicudata.so.38
Reading symbols from /lib/i686/cmov/libcrypt.so.1...done.
Loaded symbols for /lib/i686/cmov/libcrypt.so.1
Reading symbols from /usr/lib/libgcrypt.so.11...done.
Loaded symbols for /usr/lib/libgcrypt.so.11
Reading symbols from /usr/lib/libgpg-error.so.0...done.
Loaded symbols for /usr/lib/libgpg-error.so.0
Reading symbols from /lib/i686/cmov/libnsl.so.1...done.
Loaded symbols for /lib/i686/cmov/libnsl.so.1
Reading symbols from /usr/lib/liblber-2.4.so.2...done.
Loaded symbols for /usr/lib/liblber-2.4.so.2
Reading symbols from /lib/i686/cmov/libresolv.so.2...done.
Loaded symbols for /lib/i686/cmov/libresolv.so.2
Reading symbols from /usr/lib/libsasl2.so.2...done.
Loaded symbols for /usr/lib/libsasl2.so.2
Reading symbols from /usr/lib/libgnutls.so.26...done.
Loaded symbols for /usr/lib/libgnutls.so.26
Reading symbols from /usr/lib/libkrb5support.so.0...done.
Loaded symbols for /usr/lib/libkrb5support.so.0
Reading symbols from /lib/libkeyutils.so.1...done.
Loaded symbols for /lib/libkeyutils.so.1
Reading symbols from /usr/lib/libtasn1.so.3...done.
Loaded symbols for /usr/lib/libtasn1.so.3
Reading symbols from /usr/lib/libXcursor.so.1...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXrender.so.1...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/dri/r300_dri.so...Reading symbols from
/usr/lib/debug/usr/lib/dri/r300_dri.so...done.
done.
Loaded symbols for /usr/lib/dri/r300_dri.so
Reading symbols from /usr/lib/gconv/ISO8859-2.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-2.so
0xffffe410 in __kernel_vsyscall ()
(gdb) break Create_OS_Ctx
Breakpoint 1 at 0x80625fe: file do_zoom.c, line 241.
(gdb) cont
Continuing.
[Switching to Thread 0xb58cc6d0 (LWP 12698)]
Breakpoint 1, Create_OS_Ctx (width=800, height=800) at do_zoom.c:241
241 dpy = togl_display();
(gdb) next
242 if (dpy == NULL) {
(gdb) next
246 scr = togl_screen_number();
(gdb) next
250 if (!getenv("GRASS_NO_GLX_PBUFFERS"))
(gdb) next
254 if (!ver_major)
(gdb) next
255 glXQueryVersion(dpy, &ver_major, &ver_minor);
(gdb) next
257 if (ver_minor >= 3)
(gdb) next
305 if (!pbuffer)
(gdb) next
307 if (!getenv("GRASS_NO_GLX_PIXMAPS"))
(gdb) next
316 };
(gdb) next
317 fprintf(stderr, "Create PixMap Using GLX 1.1\n");
(gdb) next
Create PixMap Using GLX 1.1
319 vi = glXChooseVisual(dpy, scr, att);
(gdb) next
320 if (vi == NULL) {
(gdb) next
325 ctx = glXCreateContext(dpy, vi, NULL, GL_FALSE);
(gdb) next
326 if (ctx == NULL) {
(gdb) next
331 pixmap =
(gdb) next
334 if (!pixmap) {
(gdb) next
338 glxpixmap = glXCreateGLXPixmap(dpy, vi, pixmap);
(gdb) next
339 if (!glxpixmap) {
(gdb) next
343 glXMakeCurrent(dpy, glxpixmap, ctx);
(gdb) next
X Error of failed request: GLXBadContext
Major opcode of failed request: 143 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 6067
Current serial number in output stream: 6067
Program exited with code 01.
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/104#comment:7>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/
More information about the grass-dev
mailing list