Opened 14 years ago
Closed 13 years ago
#1355 closed defect (fixed)
Error starting wxpython v.digit session
Reported by: | epatton | Owned by: | martinl |
---|---|---|---|
Priority: | normal | Milestone: | 6.4.2 |
Component: | wxGUI | Version: | svn-develbranch6 |
Keywords: | digitizer | Cc: | grass-dev@… |
CPU: | x86-32 | Platform: | Linux |
Description (last modified by )
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.
Attachments (1)
Change History (11)
by , 14 years ago
Attachment: | digitizing_error.txt added |
---|
comment:1 by , 14 years ago
Component: | wxGUI → Python ctypes |
---|---|
Keywords: | G_gisinit() added; v.digit removed |
follow-up: 3 comment:2 by , 14 years ago
Cc: | added |
---|---|
Description: | modified (diff) |
Milestone: | 6.5.0 → 6.4.2 |
Owner: | changed from | to
Status: | new → assigned |
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
comment:3 by , 14 years ago
follow-up: 6 comment:4 by , 14 years ago
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.
comment:5 by , 14 years ago
Component: | Python ctypes → wxGUI |
---|---|
Keywords: | digitizer added; G_gisinit() removed |
comment:6 by , 14 years ago
Replying to 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.
follow-up: 8 comment:7 by , 14 years ago
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.
comment:8 by , 13 years ago
Replying to 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.
comment:10 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Should be fixed, please re-open if needed.
It's ctypes bug in GRASS 6 (in GRASS 7 working).