[GRASS-dev] Re: [GRASS GIS] #902: nviz (tcl) fails on wingrass

GRASS GIS trac at osgeo.org
Fri Feb 5 04:12:37 EST 2010


#902: nviz (tcl) fails on wingrass
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect    |      Status:  new                      
  Priority:  critical  |   Milestone:  6.4.0                    
 Component:  NVIZ      |     Version:  svn-trunk                
Resolution:            |    Keywords:                           
  Platform:  All       |         Cpu:  All                      
-----------------------+----------------------------------------------------
Comment (by hamish):

 Replying to [comment:7 glynn]:
 > One solution is to simply force argv[0] to "nviz" unless
 > script_mode is set.

 ( source:grass/trunk/visualization/nviz/src/nviz_init.c, r40784)

 I tried with DEBUG=2 but it dies before getting to the `G_debug(2,
 "nviz_init:arg*` lines in nviz_init.c.

 It dies in the same way on trunk + linux too.

  * "nviz" by itself on the command line dies with a segfault:
 (all versions, all platforms)

 {{{
 GRASS7> gdb $GISBASE/etc/nviz2.2/nviz
 (gdb) run -f $GISBASE/etc/nviz2.2/scripts/nviz2.2_script
 }}}
 {{{
 (gdb) bt
 #0  0x00007f4faac098dc in strstr () from /lib/libc.so.6
 #1  0x000000000041b117 in parse_command (data=0x630b40, interp=0x10e82b0,
 argc=0,
     argv0=0x1187a90 "/usr/local/src/grass/svn/trunk/dist.x86_64-unknown-
 linux-gnu/etc/nviz2.2/scripts/nviz2.2_script", argv=0x10fa8b0) at
 nviz_init.c:165
 #2  0x000000000041be83 in Ninitdata (interp=0x10e82b0, data=0x630b40) at
 nviz_init.c:543
 #3  0x000000000041bddf in Ninit (interp=0x10e82b0, w=0x0) at
 nviz_init.c:507
 #4  0x000000000041abce in NVIZ_AppInit (interp=0x10e82b0) at
 nvizAppInit.c:130
 #5  0x00007f4fac4d47e6 in Tk_MainEx () from /usr/lib/libtk8.4.so.0
 #6  0x000000000041ac82 in main (argc=3, argv=0x7fffb7eddc28) at
 nvizMain.c:61

 (gdb) bt full
 #0  0x00007f4faac098dc in strstr () from /lib/libc.so.6
 No symbol table info available.
 #1  0x000000000041b117 in parse_command (data=0x630b40, interp=0x10e82b0,
 argc=0,
     argv0=0x1187a90 "/usr/local/src/grass/svn/trunk/dist.x86_64-unknown-
 linux-gnu/etc/nviz2.2/scripts/nviz2.2_script", argv=0x10fa8b0) at
 nviz_init.c:165
         elev = (struct Option *) 0x7f4face2fca0
         colr = (struct Option *) 0x1187c00
         vct = (struct Option *) 0x1187fc0
         pnt = (struct Option *) 0x1188060
         vol = (struct Option *) 0x1188100
         panel_path = (struct Option *) 0x11881a0
         script = (struct Option *) 0x11884c0
         state = (struct Option *) 0x1188560
         no_args = (struct Flag *) 0x7f4face2fc70
         script_kill = (struct Flag *) 0x1187b70
         demo = (struct Flag *) 0x1187ca0
         module = (struct GModule *) 0x7f4face2fc40
         arglist = {0x0, 0x62f4d8 "\177eS®O\177", 0x0}
         autoload = 0x0
         i = 0
         aload = 1
         argv2 = (char **) 0x11882e0
         argc2 = 1
         ii = 0
         jj = 0
 #2  0x000000000041be83 in Ninitdata (interp=0x10e82b0, data=0x630b40) at
 nviz_init.c:543
         argv0 = 0x1187a90 "/usr/local/src/grass/svn/trunk/dist.x86_64-
 unknown-linux-gnu/etc/nviz2.2/scripts/nviz2.2_script"
         argv = (const char **) 0x10fa8b0
         argc = 0
 #3  0x000000000041bddf in Ninit (interp=0x10e82b0, w=0x0) at
 nviz_init.c:507
         data = {Zrange = 0, XYrange = 0, NumCplanes = 0, CurCplane = 0,
 Cp_on = {0, 0, 0, 0, 0, 0}, Cp_trans = {{
       0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}},
 Cp_rot = {{0, 0, 0}, {0, 0, 0}, {0, 0, 0},
     {0, 0, 0}, {0, 0, 0}, {0, 0, 0}}, light = {{id = 0, brt = 0, r = 0, g
 = 0, b = 0, ar = 0, ag = 0, ab = 0,
       x = 0, y = 0, z = 0, w = 0}, {id = 0, brt = 0, r = 0, g = 0, b = 0,
 ar = 0, ag = 0, ab = 0, x = 0, y = 0,
       z = 0, w = 0}, {id = 0, brt = 0, r = 0, g = 0, b = 0, ar = 0, ag =
 0, ab = 0, x = 0, y = 0, z = 0, w = 0}},
   BGcolor = 0}
 #4  0x000000000041abce in NVIZ_AppInit (interp=0x10e82b0) at
 nvizAppInit.c:130
 No locals.
 #5  0x00007f4fac4d47e6 in Tk_MainEx () from /usr/lib/libtk8.4.so.0
 No symbol table info available.
 #6  0x000000000041ac82 in main (argc=3, argv=0x7fffb7eddc28) at
 nvizMain.c:61
 }}}


 what does ~/.nvizrc do? it is just ~/.nvwishrc by another name?

 to be honest nviz's startup method is (and always has been) about as
 confusing to me as the custom osgeo4w grass64.bat startup method is. I
 think I need to slowly draw out a large flowchart for both :)


 thanks,
 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/902#comment:8>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list