[GRASS-dev] [GRASS GIS] #2451: rendering vector in map display freezes when fonts is changed in GUI options: map display

#2451: rendering vector in map display freezes when fonts is changed in GUI
options: map display
-------------------------+--------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: fonts | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
error message:

{{{
Traceback (most recent call last):
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\gui
_core\forms.py", line 687, in OnApply

self)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\lmg
r\layertree.py", line 1649, in GetOptData

render = False)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\map
win\buffered.py", line 1796, in ZoomToMap

update=True)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\cor
e\render.py", line 657, in GetRegion

**cmd)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\cor
e\gcmd.py", line 695, in RunCommand

ps = grass.start_command(prog, flags, overwrite, quiet,
verbose, **kwargs)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass
\script\core.py", line 342, in start_command

return Popen(args, **popts)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass
\script\core.py", line 62, in __init__

subprocess.Popen.__init__(self, args, **kwargs)
   File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line
711, in __init__

errread, errwrite)
   File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line
948, in _execute_child

startupinfo)
TypeError
:
environment can only contain strings
Traceback (most recent call last):
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\lmg
r\layertree.py", line 351, in OnIdle

self.mapdisplay.GetMapWindow().UpdateMap(render=True)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\map
win\buffered.py", line 753, in UpdateMap

self._runUpdateMap()
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\map
win\buffered.py", line 782, in _runUpdateMap

self._updateM(self.render, self.renderVector)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\map
win\buffered.py", line 817, in _updateM

windres = windres)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\cor
e\render.py", line 947, in Render

maps, masks, opacities =
self.GetMapsMasksAndOpacities(force, windres, env)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\cor
e\render.py", line 918, in GetMapsMasksAndOpacities

return self._renderLayers(force=force, env=env)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\cor
e\render.py", line 890, in _renderLayers

if not layer.Render():
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\cor
e\render.py", line 165, in Render

ret, msg = self._runCommand(self.cmd)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\cor
e\render.py", line 196, in _runCommand

**cmd[1])
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\gui\wxpython\cor
e\gcmd.py", line 695, in RunCommand

ps = grass.start_command(prog, flags, overwrite, quiet,
verbose, **kwargs)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass
\script\core.py", line 342, in start_command

return Popen(args, **popts)
   File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass
\script\core.py", line 62, in __init__

subprocess.Popen.__init__(self, args, **kwargs)
   File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line
711, in __init__

errread, errwrite)
   File "C:\OSGeo4W\apps\Python27\lib\subprocess.py", line
948, in _execute_child

startupinfo)
TypeError
:
environment can only contain strings
}}}

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

#2451: rendering vector in map display freezes when fonts is changed in GUI
options: map display
-------------------------+--------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: fonts | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by annakrat):

I tried to fix it in r62269 and backported. The fix assumes there is no
font with non-ascii characters which might not be always true, I don't
know.

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

#2451: rendering vector in map display freezes when fonts is changed in GUI
options: map display
-------------------------+--------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: fonts | Platform: MSWindows 7
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by mlennert):

Replying to [comment:1 annakrat]:
> I tried to fix it in r62269 and backported. The fix assumes there is no
font with non-ascii characters which might not be always true, I don't
know.

I'm not sure I understand: your fix assumes that there is no font used in
GRASS with non-ascii characters, or that the issue that Helmut reports is
due to the use of a font without non-ascii characters ?

Moritz

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

#2451: rendering vector in map display freezes when fonts is changed in GUI
options: map display
--------------------------+-------------------------------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Resolution: fixed | Keywords: fonts
  Platform: MSWindows 7 | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by annakrat):

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

Comment:

Replying to [comment:2 mlennert]:
> Replying to [comment:1 annakrat]:
> > I tried to fix it in r62269 and backported. The fix assumes there is
no font with non-ascii characters which might not be always true, I don't
know.
>
> I'm not sure I understand: your fix assumes that there is no font used
in GRASS with non-ascii characters, or that the issue that Helmut reports
is due to the use of a font without non-ascii characters ?

Sorry for the confusing sentence. The limitation of the fix is that the
font name can't have any non-ascii characters.

I tested it with latest build, it works.

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