[GRASS-dev] [GRASS GIS] #3429: g.gui.iclass: segfault when loading vector layer

GRASS GIS trac at osgeo.org
Sat Nov 11 10:25:50 PST 2017


#3429: g.gui.iclass: segfault when loading vector layer
--------------------------+------------------------------------------
  Reporter:  mlennert     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.4.0
 Component:  wxGUI        |    Version:  svn-trunk
Resolution:               |   Keywords:  g.gui.iclass import segfault
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+------------------------------------------

Comment (by mlennert):

 Replying to [comment:2 annakrat]:
 > Replying to [comment:1 mlennert]:
 > > Replying to [ticket:3429 mlennert]:
 > > > * define group
 > > > * define classes
 > > > * digitize a few training areas
 > > > * save training areas to vector map
 > > > * close g.gui.iclass
 > > > * reopen g.gui.iclass
 > > > * import saved vector maps
 > > > => segfault
 > >
 > > I still have this problem. Can anyone reproduce ? Does anyone have a
 hint on how to debug this ?
 >
 > Yes, I looked at it couple days ago, and I could see where the problem
 is, but I didn't have time to fix it. The problem is somewhere in
 iclass/frame, how it calls the C functions, but I need to explore it more.
 The simplest way to debug this (for me) is using debugger integrated into
 qtcreator (you need to import grass as a project there). First you run
 g.gui.iclass, then in qtcreator you attach this external process and then
 do the actions in gui and the debugger shows you the place where it
 crashes.
 >

 Thanks for the hint, but I have been pulling my hair out trying to make
 this work. On my machine, as soon as I attach to the process, the
 g.gui.iclass window blanks out completely and I cannot do anything. As
 soon as I detach the debugger from the process, I can again see the GUI
 window as expected and work with it. This makes it difficult to "do the
 action"...

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3429#comment:3>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list