[GRASS-dev] [GRASS GIS] #3871: winGRASS Version: 7.7.dev - vector digitizing error messages

#3871: winGRASS Version: 7.7.dev - vector digitizing error messages
------------------------------------+-------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Display | Version: svn-trunk
Keywords: python3, py3, wingrass | CPU: All
Platform: MSWindows |
------------------------------------+-------------------------
winGRASS Version: 7.7.dev in a **german locale** win 10 box and winGRASS
locale **german** too.

{{{
GRASS Version: 7.7.dev
Code revision: 2929fffa9
Build date: 2019-07-19
Build platform: x86_64-w64-mingw32
GDAL: 2.4.1
PROJ.4: 5.2.0
GEOS: 3.7.2
SQLite: 3.26.0
Python: 3.7.0
wxPython: 4.0.3
Platform: Windows-10-10.0.18362-SP0 (OSGeo4W)
}}}

steps to reproduce

{{{
g.region -p -a raster=elevation@PERMANENT align=elevation@PERMANENT
projection: 99 (Lambert Conformal Conic)
zone: 0
datum: nad83
ellipsoid: a=6378137 es=0.006694380022900787
north: 228500
south: 215000
west: 630000
east: 645000
nsres: 10
ewres: 10
rows: 1350
cols: 1500
cells: 2025000
}}}

map display -> vector digitizer

{{{
Traceback (most recent call last):
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\core\gth
read.py", line 121, in OnDone

event.ondone(event)
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\core\ren
der.py", line 469, in OnRenderDone

self.updateProgress.emit(layer=self.layer)
   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\pydi
spatch\signal.py", line 229, in emit

dispatcher.send(signal=self, *args, **kwargs)
   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\pydi
spatch\dispatcher.py", line 349, in send

**named
   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\pydi
spatch\robustapply.py", line 60, in robustApply

return receiver(*arguments, **named)
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\core\ren
der.py", line 743, in ReportProgress

self.renderDone.emit()
   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\pydi
spatch\signal.py", line 229, in emit

dispatcher.send(signal=self, *args, **kwargs)
   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\pydi
spatch\dispatcher.py", line 349, in send

**named
   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\pydi
spatch\robustapply.py", line 60, in robustApply

return receiver(*arguments, **named)
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\core\ren
der.py", line 650, in OnRenderDone

raise GException(_("Rendering failed: %s" % msg))
core.gcmd
.
GException
:
Rendering failed: Expecting 807x466 image but got 807x501
image.
}}}

new vector myvector -> attribute table opens

{{{
Traceback (most recent call last):
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\vdigit\t
oolbars.py", line 856, in OnSelectMap

self.StartEditing(self.layers[selection])
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\vdigit\t
oolbars.py", line 922, in StartEditing

self.EnableAll()
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\gui_core
\toolbars.py", line 223, in EnableAll

for item in self._toolbarData():
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\vdigit\t
oolbars.py", line 268, in _toolbarData

return self._getToolbarData(data)
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\gui_core
\toolbars.py", line 233, in _getToolbarData

retData.append(self._defineTool(*args))
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\gui_core
\toolbars.py", line 241, in _defineTool

return (name, icon.GetBitmap(),
   File
"C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\icons\icon.py",
line 100, in GetBitmap

bmp = wx.Bitmap(name=self.imagepath)
wx._core
.
wxAssertionError
:
C++ assertion "wxString::Format("%.3f", 1.23).find(str) !=
wxString::npos" failed at ..\..\src\common\intl.cpp(1648) in
wxLocale::GetInfo(): Decimal separator mismatch -- did you
use setlocale()?If so, use wxLocale to change the locale
instead.
}}}

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

#3871: winGRASS Version: 7.7.dev - vector digitizing error messages
----------------------+------------------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: Display | Version: svn-trunk
Resolution: | Keywords: python3, py3, wingrass
       CPU: All | Platform: MSWindows
----------------------+------------------------------------

Comment (by hellik):

when I change the winGRASS language to **english**, open the digitizer and
create a new vector:

{{{
Traceback (most recent call last):
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\core\gth
read.py", line 121, in OnDone

event.ondone(event)
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\core\ren
der.py", line 469, in OnRenderDone

self.updateProgress.emit(layer=self.layer)
   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\pydi
spatch\signal.py", line 229, in emit

dispatcher.send(signal=self, *args, **kwargs)
   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\pydi
spatch\dispatcher.py", line 349, in send

**named
   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\pydi
spatch\robustapply.py", line 60, in robustApply

return receiver(*arguments, **named)
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\core\ren
der.py", line 743, in ReportProgress

self.renderDone.emit()
   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\pydi
spatch\signal.py", line 229, in emit

dispatcher.send(signal=self, *args, **kwargs)
   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\pydi
spatch\dispatcher.py", line 349, in send

**named
   File "C:\OSGEO4~1\apps\grass\grass77\etc\python\grass\pydi
spatch\robustapply.py", line 60, in robustApply

return receiver(*arguments, **named)
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\core\ren
der.py", line 650, in OnRenderDone

raise GException(_("Rendering failed: %s" % msg))
core.gcmd
.
GException
:
Rendering failed: Expecting 807x466 image but got 807x501
image.
Traceback (most recent call last):
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\vdigit\t
oolbars.py", line 856, in OnSelectMap

self.StartEditing(self.layers[selection])
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\vdigit\t
oolbars.py", line 922, in StartEditing

self.EnableAll()
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\gui_core
\toolbars.py", line 223, in EnableAll

for item in self._toolbarData():
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\vdigit\t
oolbars.py", line 268, in _toolbarData

return self._getToolbarData(data)
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\gui_core
\toolbars.py", line 233, in _getToolbarData

retData.append(self._defineTool(*args))
   File "C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\gui_core
\toolbars.py", line 241, in _defineTool

return (name, icon.GetBitmap(),
   File
"C:\OSGEO4~1\apps\grass\grass77\gui\wxpython\icons\icon.py",
line 100, in GetBitmap

bmp = wx.Bitmap(name=self.imagepath)
wx._core
.
wxAssertionError
:
C++ assertion "wxString::Format("%.3f", 1.23).find(str) !=
wxString::npos" failed at ..\..\src\common\intl.cpp(1648) in
wxLocale::GetInfo(): Decimal separator mismatch -- did you
use setlocale()?If so, use wxLocale to change the locale
instead.
}}}

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

#3871: winGRASS Version: 7.7.dev - vector digitizing error messages
----------------------+------------------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.0
Component: Display | Version: svn-trunk
Resolution: | Keywords: python3, py3, wingrass
       CPU: All | Platform: MSWindows
----------------------+------------------------------------
Changes (by hellik):

* milestone: => 7.8.0

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

#3871: winGRASS Version: 7.7.dev - vector digitizing error messages
----------------------+------------------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.0
Component: Display | Version: svn-trunk
Resolution: | Keywords: python3, py3, wingrass
       CPU: All | Platform: MSWindows
----------------------+------------------------------------

Comment (by hellik):

see also ticket #3871

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

#3871: winGRASS Version: 7.7.dev - vector digitizing error messages
----------------------+------------------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: blocker | Milestone: 7.8.0
Component: Display | Version: svn-trunk
Resolution: | Keywords: python3, py3, wingrass
       CPU: All | Platform: MSWindows
----------------------+------------------------------------
Changes (by hellik):

* priority: normal => blocker

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

#3871: winGRASS Version: 7.7.dev - vector digitizing error messages
-----------------------+------------------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.8.0
Component: Display | Version: svn-trunk
Resolution: | Keywords: python3, py3, wingrass
       CPU: All | Platform: MSWindows
-----------------------+------------------------------------
Changes (by neteler):

* priority: blocker => critical

Comment:

Tested Version: 7.8.dev in a German locale Linux box, no (more?) error.
Please re-test.

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

#3871: winGRASS: vector digitizing error messages
-----------------------+---------------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.8.1
Component: wxGUI | Version: git-releasebranch78
Resolution: | Keywords: python3, wingrass
       CPU: All | Platform: MSWindows
-----------------------+---------------------------------
Changes (by neteler):

* keywords: python3, py3, wingrass => python3, wingrass
* version: svn-trunk => git-releasebranch78
* component: Display => wxGUI

Comment:

Any news?

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

#3871: winGRASS: vector digitizing error messages
-----------------------+---------------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.8.1
Component: wxGUI | Version: git-releasebranch78
Resolution: | Keywords: python3, wingrass
       CPU: All | Platform: MSWindows
-----------------------+---------------------------------

Comment (by hellik):

see #3882 for new tests.

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

#3871: winGRASS: vector digitizing error messages
-----------------------+---------------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.8.1
Component: wxGUI | Version: git-releasebranch78
Resolution: | Keywords: python3, wingrass
       CPU: All | Platform: MSWindows
-----------------------+---------------------------------

Comment (by hellik):

see #3882
digitizing areas works now, closing ticket

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

#3871: winGRASS: vector digitizing error messages
-----------------------+---------------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: critical | Milestone: 7.8.1
Component: wxGUI | Version: git-releasebranch78
Resolution: fixed | Keywords: python3, wingrass
       CPU: All | Platform: MSWindows
-----------------------+---------------------------------
Changes (by hellik):

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

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