[GRASS-dev] d.vect kills d.mon

Markus Neteler neteler at itc.it
Thu May 3 01:46:22 EDT 2007


On Thu, May 03, 2007 at 01:22:01AM +0100, Glynn Clements wrote:
> 
> Markus Neteler wrote:
> 
> > mysterious day: I used v.clean on a map to break/snap/rmdupl
> > and a topologically correct map is generated. But looking at
> > it, d.vect kills x0:
> 
> Hamish made some changes to icon plotting in d.vect yesterday, so
> those would be the prime suspect:
> 
...
> > Not sure where "ERROR eof from graphics driver" originates from, probably
> > lib/raster/rem_io.c?
> 
> Yes.
> 
> Debugging display commands is easier using direct rendering, as the
> task isn't split between multiple processes (the client and the
> display driver). E.g.:
> 
> 	$ GRASS_RENDER_IMMEDIATE=TRUE gdb d.vect
> 	> run myroads_net col=red

Ah, nice. So:

GRASS 6.3.cvs (spearfish60):~/grass63/scripts > d.mon x0

GRASS 6.3.cvs (spearfish60):~/grass63/scripts > GRASS_RENDER_IMMEDIATE=TRUE gdb d.vect
GNU gdb 6.3-8mdv2007.0 (Mandriva Linux release 2007.0)
...
(gdb) run myroads_net col=red
Starting program: /home/neteler/soft/63grass_cvsexp/dist.i686-pc-linux-gnu/bin/d.vect myroads_net col=red
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xbfffe000
[Thread debugging using libthread_db enabled]
[New Thread -1225832752 (LWP 14496)]
PNG: GRASS_TRUECOLOR status: FALSE

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1225832752 (LWP 14496)]
0xb77e42d8 in fputs () from /lib/i686/libc.so.6
(gdb) bt
#0  0xb77e42d8 in fputs () from /lib/i686/libc.so.6
#1  0xb7ec37a0 in print_error (
    msg=0xbfde35a0 "PNG: collecting to  map.png,\n     GRASS_WIDTH=640, GRASS_HEIGHT=480", type=0)
    at error.c:276
#2  0xb7ec3ca5 in G_message (
    msg=0xb7e637c8 "PNG: collecting to  %s,\n     GRASS_WIDTH=%d, GRASS_HEIGHT=%d") at error.c:112
#3  0xb7e61c62 in PNG_Graph_set (argc=0, argv=0x0) at Graph_set.c:133
#4  0xb7e57351 in COM_Graph_set (argc=0, argv=0x0) at Graph.c:7
#5  0xb7e5869e in LIB_init (drv=0xb7e64f40, argc=0, argv=0x0) at init.c:79
#6  0xb7e6ad92 in LOC_open_driver () at loc_io.c:67
#7  0xb7e6a014 in R_open_driver () at com_io.c:180
#8  0x0804d7f5 in main (argc=3, argv=0xbfde6774) at main.c:375

(gdb) bt full
#0  0xb77e42d8 in fputs () from /lib/i686/libc.so.6
No symbol table info available.
#1  0xb7ec37a0 in print_error (
    msg=0xbfde35a0 "PNG: collecting to  map.png,\n     GRASS_WIDTH=640, GRASS_HEIGHT=480", type=0)
    at error.c:276
        w = Variable "w" is not available.

Hopefully this indicates the problem,
Markus




More information about the grass-dev mailing list