[GRASS-dev] [GRASS GIS] #1375: wxGUI: vector digitizer: cannot close (empty) vector map

#1375: wxGUI: vector digitizer: cannot close (empty) vector map
---------------------+------------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: svn-releasebranch64
Keywords: | Platform: Linux
      Cpu: x86-64 |
---------------------+------------------------------------------------------
When creating a new vector map, the digitizer does not close the session:
{{{
New vector map <ciao@neteler> created
Traceback (most recent call last):
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/layertree.py", line 1132, in
OnChangeSel

mapLayer = self.GetPyData(layer)[0]['maplayer']
TypeError
:
'NoneType' object is unsubscriptable
Traceback (most recent call last):
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 1130, in
OnSelectMap

self.StartEditing(self.layers[selection])
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 1174, in
StartEditing

lmgr.toolbar.Enable('vdigit', enable = False)
AttributeError
:
'GMFrame' object has no attribute 'toolbar'
Traceback (most recent call last):
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 708, in
OnExit

self.StopEditing()
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 1221, in
StopEditing

lmgr.toolbar.Enable('vdigit', enable = True)
AttributeError
:
'GMFrame' object has no attribute 'toolbar'
Traceback (most recent call last):
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 708, in
OnExit

self.StopEditing()
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 1221, in
StopEditing

lmgr.toolbar.Enable('vdigit', enable = True)
AttributeError
:
'GMFrame' object has no attribute 'toolbar'
Traceback (most recent call last):
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 708, in
OnExit

self.StopEditing()
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 1221, in
StopEditing

lmgr.toolbar.Enable('vdigit', enable = True)
AttributeError
:
'GMFrame' object has no attribute 'toolbar'
Traceback (most recent call last):
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 708, in
OnExit

self.StopEditing()
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 1221, in
StopEditing

lmgr.toolbar.Enable('vdigit', enable = True)
AttributeError
:
'GMFrame' object has no attribute 'toolbar'
Traceback (most recent call last):
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 708, in
OnExit

self.StopEditing()
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 1221, in
StopEditing

lmgr.toolbar.Enable('vdigit', enable = True)
AttributeError
:
'GMFrame' object has no attribute 'toolbar'
Traceback (most recent call last):
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/mapdisp.py", line 1197, in
OnCloseWindow

self.toolbars['vdigit'].OnExit()
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 708, in
OnExit

self.StopEditing()
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 1221, in
StopEditing

lmgr.toolbar.Enable('vdigit', enable = True)
AttributeError
:
'GMFrame' object has no attribute 'toolbar'
Traceback (most recent call last):
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/mapdisp.py", line 1197, in
OnCloseWindow

self.toolbars['vdigit'].OnExit()
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 708, in
OnExit

self.StopEditing()
   File "/home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/etc/wxpython/gui_modules/toolbars.py", line 1221, in
StopEditing

lmgr.toolbar.Enable('vdigit', enable = True)
AttributeError
:
'GMFrame' object has no attribute 'toolbar'

}}}

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

#1375: wxGUI: vector digitizer: cannot close (empty) vector map
-----------------------+----------------------------------------------------
Reporter: neteler | Owner: martinl
     Type: defect | Status: assigned
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: svn-releasebranch64
Keywords: wx.vdigit | Platform: Linux
      Cpu: x86-64 |
-----------------------+----------------------------------------------------
Changes (by martinl):

* cc: grass-dev@… (added)
  * keywords: => wx.vdigit
  * status: new => assigned
  * owner: grass-dev@… => martinl

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1375#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1375: wxGUI: vector digitizer: cannot close (empty) vector map
-----------------------+----------------------------------------------------
Reporter: neteler | Owner: martinl
     Type: defect | Status: assigned
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: svn-releasebranch64
Keywords: wx.vdigit | Platform: Linux
      Cpu: x86-64 |
-----------------------+----------------------------------------------------

Comment(by martinl):

Hopefully fixed in r46464 (trunk). Backported to devbr6 and relbr64.

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

#1375: wxGUI: vector digitizer: cannot close (empty) vector map
-----------------------+----------------------------------------------------
Reporter: neteler | Owner: martinl
     Type: defect | Status: assigned
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: svn-releasebranch64
Keywords: wx.vdigit | Platform: Linux
      Cpu: x86-64 |
-----------------------+----------------------------------------------------

Comment(by martinl):

Just note that wxGUI digitizer still crashes when GRASS is compiled with
`--enable-largefiles`.

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

#1375: wxGUI: vector digitizer: cannot close (empty) vector map
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: svn-releasebranch64
Resolution: fixed | Keywords: wx.vdigit
  Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Changes (by neteler):

  * status: assigned => closed
  * resolution: => fixed

Comment:

Thanks, works now. Also no crashed on Linux 64bit with --enable-largefiles
in GRASS 6.4.svn. Closing.

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