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

GRASS GIS trac at osgeo.org
Sun Feb 3 14:08:03 PST 2013


#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):

 The Apple error report shows a crash after gvl_write_char, also in
 gvl_calc.c. Here is the last part of the GRASS Debug output for changing
 resolution from 3 to 2 (no crash) and 2 to 1 (crash).

 {{{

 CHANGING RESOLUTION FROM 3 TO 2. OK

 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
 D3/5: gvl_align_data(): reallocate memory finally to : 349308 B
 D5/5: gvld_isosurf():
 D5/5:   start : gvl: jr_7408MR_2m_t70 at test3d isosurf : 0

 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D5/5:   intialize OK
 D5/5:   end : isosurf : 0 datalength : 349308 B

 D3/5: GS_done_draw
 D3/5: GS_done_draw

 CHANGING RESOLUTION FROM 2 TO 1. CRASH

 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
 D3/5: gvl_write_char(): reallocate memory for pos : 1000000 to : 2000000 B
 D3/5: gvl_align_data(): reallocate memory finally to : 1840605 B
 D5/5: gvld_isosurf():
 D5/5:   start : gvl: jr_7408MR_2m_t70 at test3d isosurf : 0

 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D3/5: GS_get_zrange(): min=-0.09 max=22.33
 D5/5:   intialize OK

 }}}

 Maybe you can do a similar variable initialization to help gel_char_write
 that will fix this.

 Michael

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



More information about the grass-dev mailing list