[GRASS-dev] [GRASS GIS] #1736: wxNVIZ volume display crashes Mac

GRASS GIS trac at osgeo.org
Tue Oct 30 12:24:57 PDT 2012


#1736: wxNVIZ volume display crashes Mac
-----------------------+----------------------------------------------------
 Reporter:  cmbarton   |       Owner:  grass-dev@…              
     Type:  defect     |      Status:  new                      
 Priority:  critical   |   Milestone:  6.4.3                    
Component:  wxGUI      |     Version:  svn-releasebranch64      
 Keywords:             |    Platform:  MacOSX                   
      Cpu:  OSX/Intel  |  
-----------------------+----------------------------------------------------

Comment(by cmbarton):

 I tried setting debug=5 and crashing wxNVIZ with the most recent build
 from trunk. To get the crash, I used Helena's test DEM and volume. I set
 the region to match the volume and loaded both DEM and volume into the
 layer manager. Then I displayed them with wxNVIZ. I switched to the volume
 window under the data tab and added an isosurface. No crash yet. Then I
 tried to change the level displayed by the isosurface from the default
 (minimum value) to 10. This is where the crash happens. Here is the debug
 output for that action. Hopefully it can identify what is happening

 {{{

 D3/5: GVL_vol_exists
 D5/5: gvl_get_vol():
 D5/5:     id=81721
 D3/5: GVL_isosurf_num_isosurfs
 D5/5: gvl_get_vol():
 D5/5:     id=81721
 D3/5: GVL_vol_exists
 D5/5: gvl_get_vol():
 D5/5:     id=81721
 D3/5: GVL_isosurf_num_isosurfs
 D5/5: gvl_get_vol():
 D5/5:     id=81721
 D3/5: GVL_isosurf_set_att_const() id=81721 isosurf_id=0 att=1
 const=10.000000
 D5/5: gvl_isosurf_get_isosurf(): id=81721 isosurf=0
 D5/5: gvl_get_vol():
 D5/5:     id=81721
 D5/5: gvl_isosurf_set_att_const(): att=1, const=10.000000
 D5/5: gvl_isosurf_set_att_src
 D5/5: isosurf_get_att_src
 D5/5: gvl_isosurf_set_att_changed
 D3/5: GS_clear
 D3/5: GS_ready_draw
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_get_aspect(): left=0, right=797, top=545, bottom=0
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_draw_wire(): id=110658
 D5/5: gs_get_surf():
 D5/5:   id=110658
 D3/5: gsd_wire_surf(): id=110658
 D5/5: gs_get_att_src(): id=110658, desc=1
 D5/5: gs_get_att_typbuff(): id=110658 desc=1 to_write=0
 D5/5: gs_get_att_typbuff(): id=110658 desc=2 to_write=0
 D5/5: gs_update_curmask(): id=110658
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_done_draw
 D3/5: GS_ready_draw
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_get_aspect(): left=0, right=797, top=545, bottom=0
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_clear
 D5/5: gs_get_surf():
 D5/5:   id=110658
 D3/5: GS_get_zextents(): id=110658
 D3/5: GS_draw_surf(): id=110658
 D5/5: gs_get_surf():
 D5/5:   id=110658
 D5/5: gsd_surf(): id=110658
 D5/5: gs_get_att_src(): id=110658, desc=1
 D5/5: gs_get_att_typbuff(): id=110658 desc=1 to_write=0
 D5/5: gs_get_att_typbuff(): id=110658 desc=2 to_write=0
 D5/5: gs_update_curmask(): id=110658
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_ready_draw
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_get_aspect(): left=0, right=797, top=545, bottom=0
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_done_draw
 D3/5: GS_ready_draw
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_get_aspect(): left=0, right=797, top=545, bottom=0
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_done_draw
 D3/5: GS_ready_draw
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_get_aspect(): left=0, right=797, top=545, bottom=0
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D5/5: gvl_get_vol():
 D5/5:     id=81721
 D5/5: gvld_vol(): id=81721
 D5/5: gvl_slices_calc(): id=81721
 D5/5: color buf = [0% yellow]
 D5/5: color buf = [20% green]
 D5/5: color buf = [40% cyan]
 D5/5: color buf = [60% blue]
 D5/5: color buf = [80% magenta]
 D5/5: color buf = [100% red]
 D5/5: gvld_slices
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: gvl_write_char(): reallocate memory for pos : 0 to : 1000000 B
 pythonw2.6(12150,0xacbe1a28) malloc: *** error for object 0xdea2000:
 pointer being realloc'd was not allocated
 *** set a breakpoint in malloc_error_break to debug

 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1736#comment:10>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list