Opened 11 years ago

Closed 11 years ago

#1375 closed defect (fixed)

wxGUI: vector digitizer: cannot close (empty) vector map

Reported by: neteler Owned by: martinl
Priority: normal Milestone: 6.4.2
Component: wxGUI Version: svn-releasebranch64
Keywords: wx.vdigit Cc: grass-dev@…
CPU: x86-64 Platform: Linux

Description

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'

Change History (4)

comment:1 by martinl, 11 years ago

Cc: grass-dev@… added
Keywords: wx.vdigit added
Owner: changed from grass-dev@… to martinl
Status: newassigned

comment:2 by martinl, 11 years ago

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

comment:3 by martinl, 11 years ago

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

comment:4 by neteler, 11 years ago

Resolution: fixed
Status: assignedclosed

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

Note: See TracTickets for help on using tickets.