#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 annakrat):
I have just been looking at this, but since I have to leave right now,
this is where I got. I don't understand how the temporary maps work, so
it's hard to say what consequences this has, but please test.
{{{
Index: Vlib/open.c
===================================================================
--- Vlib/open.c (revision 71523)
+++ Vlib/open.c (working copy)
@@ -960,7 +960,7 @@
}
G_debug(1, "Vect_open_tmp_new(): name = '%s' with_z = %d", name,
with_z);
- return open_new(Map, tmp_name, with_z, TEMPORARY_MAP); /* temporary
map */
+ return open_new(Map, tmp_name, with_z, TEMPORARY_MAP_ENV); /*
temporary map */
}
}}}
{{{
Index: gui/wxpython/iclass/frame.py
===================================================================
--- gui/wxpython/iclass/frame.py (revision 71523)
+++ gui/wxpython/iclass/frame.py (working copy)
@@ -624,7 +624,8 @@
return
# copy features to the temporary map
- vname = self._getTempVectorName()
+ #vname = self._getTempVectorName()
+ vname = self.trainingAreaVector
# avoid deleting temporary map
os.environ['GRASS_VECTOR_TEMPORARY'] = '1'
if digitClass.CopyMap(vname, tmp=True) == -1:
}}}
For the debugging, you need to (after attaching the process) press
Continue to release the gui, then do things in gui and it then jumps in
qtcreator to segfaults or breakpoints.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3429#comment:4>
GRASS GIS <https://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev