[GRASS-dev] [GRASS GIS] #3886: Importing vector training areas in g.gui.iclass (interactive)

#3886: Importing vector training areas in g.gui.iclass (interactive)
----------------------+---------------------------------
Reporter: pshapley | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Imagery | Version: svn-releasebranch76
Keywords: | CPU: x86-64
Platform: Linux |
----------------------+---------------------------------
The 'g.gui.iclass' module in 7.6.1 64bit stable version (ubuntu 18.04) GUI
interface does not allow 'import training areas from vector map' when I
attempt this Grass will instantly crash. On the cmdline (non-interactive)
module option I get the error below.

10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
Loading raster map <JPEG2000_composite@PERMANENT>...
Loading training map
<drainedbarepeat_signature@PERMANENT>...
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
G__open(read): Unable to open '/home/xxxx/Documents/TempLoc
ation_DO_NOT_DELETE/PERMANENT/.tmp/xxxx
OptiPlex-7010/vector/trAreas226970/frmt': No such file or
directory

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3886&gt;
GRASS GIS <https://grass.osgeo.org>

#3886: Importing vector training areas in g.gui.iclass (interactive)
-----------------------+---------------------------------
  Reporter: pshapley | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.3
Component: wxGUI | Version: git-releasebranch78
Resolution: | Keywords: g.gui.iclass
       CPU: x86-64 | Platform: Linux
-----------------------+---------------------------------
Changes (by neteler):

* keywords: => g.gui.iclass
* version: svn-releasebranch76 => git-releasebranch78
* component: Imagery => wxGUI

Old description:

The 'g.gui.iclass' module in 7.6.1 64bit stable version (ubuntu 18.04)
GUI interface does not allow 'import training areas from vector map' when
I attempt this Grass will instantly crash. On the cmdline (non-
interactive) module option I get the error below.

10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
Loading raster map <JPEG2000_composite@PERMANENT>...
Loading training map
<drainedbarepeat_signature@PERMANENT>...
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
G__open(read): Unable to open '/home/xxxx/Documents/TempLoc
ation_DO_NOT_DELETE/PERMANENT/.tmp/xxxx
OptiPlex-7010/vector/trAreas226970/frmt': No such file or
directory

New description:

The 'g.gui.iclass' module in 7.6.1 64bit stable version (ubuntu 18.04) GUI
interface does not allow 'import training areas from vector map' when I
attempt this Grass will instantly crash. On the cmdline (non-interactive)
module option I get the error below.

{{{
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
Loading raster map <JPEG2000_composite@PERMANENT>...
Loading training map
<drainedbarepeat_signature@PERMANENT>...
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
10:49:01: Debug: ScreenToClient cannot work when toplevel
window is not shown
G__open(read): Unable to open '/home/xxxx/Documents/TempLoc
ation_DO_NOT_DELETE/PERMANENT/.tmp/xxxx
OptiPlex-7010/vector/trAreas226970/frmt': No such file or
directory
}}}

--

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3886#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3886: Importing vector training areas in g.gui.iclass (interactive)
-----------------------+---------------------------------
  Reporter: pshapley | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.3
Component: wxGUI | Version: git-releasebranch78
Resolution: | Keywords: g.gui.iclass
       CPU: x86-64 | Platform: Linux
-----------------------+---------------------------------

Comment (by neteler):

I can confirm this in G78:

{{{
# tested with NC zipcode map, just to trigger the error
g.gui.iclass
G__open(read): Unable to open
'/home/mneteler/grassdata/nc_spm_08/user1/.tmp/oboe/vector/trAreas11066050/frmt':
No such file or directory
G__open(read): Unable to open
'/home/mneteler/grassdata/nc_spm_08/user1/.tmp/oboe/vector/trAreas11066050/frmt':
No such file or directory

Segmentation fault (core dumped)
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3886#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#3886: Importing vector training areas in g.gui.iclass (interactive)
-----------------------+---------------------------------
  Reporter: pshapley | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.3
Component: wxGUI | Version: git-releasebranch78
Resolution: | Keywords: g.gui.iclass
       CPU: x86-64 | Platform: Linux
-----------------------+---------------------------------

Comment (by mlennert):

Does https://github.com/OSGeo/grass/pull/1020 fix this issue ?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3886#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>