[GRASS-dev] [GRASS GIS] #2476: vector digitizer crashing with _breakLineAtIntersection

GRASS GIS trac at osgeo.org
Wed Nov 26 07:38:03 PST 2014


#2476: vector digitizer crashing with _breakLineAtIntersection
-------------------------+--------------------------------------------------
 Reporter:  annakrat     |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  wxGUI        |     Version:  svn-trunk                
 Keywords:  vdigit       |    Platform:  Linux                    
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by mmetz):

 Replying to [comment:1 mmetz]:
 > Replying to [ticket:2476 annakrat]:
 > > Crashing happens in
 [http://trac.osgeo.org/grass/browser/grass/trunk/lib/vector/Vlib/level_two.c#L356
 level_two.c] in wxdigit.py in _addFeature. Without the line, the area
 closes without problem, so maybe _breakLineAtIntersection is where
 something goes wrong.
 >
 > The problem is in
 [https://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/vdigit/wxdigit.py#L1772
 wxdigit.py] in _addFeature: the line is broken, afterwards the digitizer
 tries to get the areas for this line. But this line no longer exists
 because it has been broken into new lines -> crash.
 >
 > You would need to get areas on each side before breaking the line, but
 the vector lib might only be able to build areas after the new line was
 broken. I would suggest to break the line only after trying to attach
 centroids.

 Fixed in r63077.

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



More information about the grass-dev mailing list