[GRASS-dev] [GRASS GIS] #1355: Error starting wxpython v.digit session

#1355: Error starting wxpython v.digit session
---------------------+------------------------------------------------------
Reporter: epatton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Keywords: v.digit | Platform: Linux
      Cpu: x86-32 |
---------------------+------------------------------------------------------
This error is printed to the Layer Manager output window when I try to
start editing an existing vector. I select "Digitize" from the drop-down
box on the Map Display, and then select the name of my vector under the
left-most drop-down box in the Map Display. The Map Display doesn't draw
any of my GIS layers, but goes completely white at this point.

I have rebuilt the vector topology, but the error still occurs. I have
tested the wxgui digitizer in a different mapset with a different vector,
with the same error occurring.

~ Eric.

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

#1355: Error starting wxpython v.digit session
---------------------------+------------------------------------------------
Reporter: epatton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: Python ctypes | Version: svn-develbranch6
Keywords: G_gisinit() | Platform: Linux
      Cpu: x86-32 |
---------------------------+------------------------------------------------
Changes (by martinl):

  * keywords: v.digit => G_gisinit()
  * component: wxGUI => Python ctypes

Comment:

It's ctypes bug in GRASS 6 (in GRASS 7 working).

{{{
>>> from grass.lib.gis import *
>>> G_gisinit('')
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/local/src/grass6_devel/dist.i686-pc-linux-
gnu/etc/python/grass/lib/gis.py", line 6986, in G_gisinit
     return (G__gisinit (GIS_H_VERSION, pgm))
NameError: global name 'G__gisinit' is not defined
}}}

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

#1355: Error starting wxpython v.digit session
---------------------------+------------------------------------------------
Reporter: epatton | Owner: martinl
     Type: defect | Status: assigned
Priority: normal | Milestone: 6.4.2
Component: Python ctypes | Version: svn-develbranch6
Keywords: G_gisinit() | Platform: Linux
      Cpu: x86-32 |
---------------------------+------------------------------------------------
Changes (by martinl):

* cc: grass-dev@… (added)
  * owner: grass-dev@… => martinl
  * status: new => assigned
  * milestone: 6.5.0 => 6.4.2

Old description:

This error is printed to the Layer Manager output window when I try to
start editing an existing vector. I select "Digitize" from the drop-down
box on the Map Display, and then select the name of my vector under the
left-most drop-down box in the Map Display. The Map Display doesn't draw
any of my GIS layers, but goes completely white at this point.

I have rebuilt the vector topology, but the error still occurs. I have
tested the wxgui digitizer in a different mapset with a different vector,
with the same error occurring.

~ Eric.

New description:

This error is printed to the Layer Manager o utput window when I try to
start editing an existing vector. I select "Digitize" from the drop-down
box on the Map Display, and then select the name of my vector under the
left-most drop-down box in the Map Display. The Map Display doesn't draw
any of my GIS layers, but goes completely white at this point.

I have rebuilt the vector topology, but the error still occurs. I have
tested the wxgui digitizer in a different mapset with a different vector,
with the same error occurring.

~ Eric.

--

Comment:

Hopefully fixed in r46171.

BTW, vector digizer in 6.4.2+ needs some testing. The component has been
recently ported from C++ to Python. It would be good to catch & fix major
part of possible bugs before we release 6.4.2 as the first version with
working wxGUI vector digitizer (including winGRASS).

Martin

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

#1355: Error starting wxpython v.digit session
---------------------------+------------------------------------------------
Reporter: epatton | Owner: martinl
     Type: defect | Status: assigned
Priority: normal | Milestone: 6.4.2
Component: Python ctypes | Version: svn-develbranch6
Keywords: G_gisinit() | Platform: Linux
      Cpu: x86-32 |
---------------------------+------------------------------------------------

Comment(by martinl):

Replying to [comment:2 martinl]:
> Hopefully fixed in r46171.

Backported to relbr64 in r46172

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

#1355: Error starting wxpython v.digit session
---------------------------+------------------------------------------------
Reporter: epatton | Owner: martinl
     Type: defect | Status: assigned
Priority: normal | Milestone: 6.4.2
Component: Python ctypes | Version: svn-develbranch6
Keywords: G_gisinit() | Platform: Linux
      Cpu: x86-32 |
---------------------------+------------------------------------------------

Comment(by epatton):

Thanks. I refreshed my source, recompiled, and tried editing with the
WXGUI digitizer again, I get this error:

{{{
Traceback (most recent call last):
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/to
olbars.py", line 1127, in OnSelectMap

self.StartEditing(self.layers[selection])
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/to
olbars.py", line 1142, in StartEditing

self.parent.MapWindow.EraseMap()
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 830, in EraseMap

self.Draw(self.pdcVector, pdctype = 'clear')
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 293, in Draw

pdc.BeginDrawing()
AttributeError
:
'NoneType' object has no attribute 'BeginDrawing'
Traceback (most recent call last):
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 472, in OnPaint

self.pdcVector.DrawToDCClipped(gcdc, rgn)
AttributeError
:
'NoneType' object has no attribute 'DrawToDCClipped'

}}}

~ Eric.

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

#1355: Error starting wxpython v.digit session
-----------------------+----------------------------------------------------
Reporter: epatton | Owner: martinl
     Type: defect | Status: assigned
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: svn-develbranch6
Keywords: digitizer | Platform: Linux
      Cpu: x86-32 |
-----------------------+----------------------------------------------------
Changes (by martinl):

  * keywords: G_gisinit() => digitizer
  * component: Python ctypes => wxGUI

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

#1355: Error starting wxpython v.digit session
-----------------------+----------------------------------------------------
Reporter: epatton | Owner: martinl
     Type: defect | Status: assigned
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: svn-develbranch6
Keywords: digitizer | Platform: Linux
      Cpu: x86-32 |
-----------------------+----------------------------------------------------

Comment(by martinl):

Replying to [comment:4 epatton]:
> Thanks. I refreshed my source, recompiled, and tried editing with the
WXGUI digitizer again, I get this error:

I am unable to reproduce this error, could you describe in detail the
process? Thanks.

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

#1355: Error starting wxpython v.digit session
-----------------------+----------------------------------------------------
Reporter: epatton | Owner: martinl
     Type: defect | Status: assigned
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: svn-develbranch6
Keywords: digitizer | Platform: Linux
      Cpu: x86-32 |
-----------------------+----------------------------------------------------

Comment(by epatton):

Using the NC simpler subset, add the boundary_region vector to the layer
manager, choose 'Digitize' from the drop-down menu in the right-hand
corner of the Map Display, choose 'boundary_region' from the left drop-
down menu of the left-corner of the Map Display, then after the nodes and
centroids become visible, try zooming or panning - nothing should happen.
If I then try to erase and re-display the map window, I get the following
error (which is different from the one posted yesterday - not sure why)

{{{
Traceback (most recent call last):
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 571, in OnRender

self.MapWindow.display.SetSelected()
AttributeError
:
'VDigitWindow' object has no attribute 'display'
}}}

~ Eric.

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

#1355: Error starting wxpython v.digit session
-----------------------+----------------------------------------------------
Reporter: epatton | Owner: martinl
     Type: defect | Status: assigned
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: svn-develbranch6
Keywords: digitizer | Platform: Linux
      Cpu: x86-32 |
-----------------------+----------------------------------------------------

Comment(by martinl):

Replying to [comment:7 epatton]:
{{{
> Traceback (most recent call last):
> File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
> pdisp.py", line 571, in OnRender
>
> self.MapWindow.display.SetSelected()
> AttributeError
> :
> 'VDigitWindow' object has no attribute 'display'
}}}

please try more recent version from SVN.

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

#1355: Error starting wxpython v.digit session
-----------------------+----------------------------------------------------
Reporter: epatton | Owner: martinl
     Type: defect | Status: assigned
Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: svn-develbranch6
Keywords: digitizer | Platform: Linux
      Cpu: x86-32 |
-----------------------+----------------------------------------------------

Comment(by neteler):

yesterday GRASS 6.4.2RC1 has been released. Does this problem persist?

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

#1355: Error starting wxpython v.digit session
----------------------+-----------------------------------------------------
  Reporter: epatton | Owner: martinl
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.2
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords: digitizer
  Platform: Linux | Cpu: x86-32
----------------------+-----------------------------------------------------
Changes (by martinl):

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

Comment:

Should be fixed, please re-open if needed.

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