Opened 9 years ago

Closed 9 years ago

#2451 closed defect (fixed)

rendering vector in map display freezes when fonts is changed in GUI options: map display

Reported by: hellik Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: Display Version: svn-trunk
Keywords: fonts Cc:
CPU: Unspecified Platform: MSWindows 7

Description

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

Change History (3)

comment:1 by annakrat, 9 years ago

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.

in reply to:  1 ; comment:2 by mlennert, 9 years ago

Replying to 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

in reply to:  2 comment:3 by annakrat, 9 years ago

Resolution: fixed
Status: newclosed

Replying to mlennert:

Replying to 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.

Note: See TracTickets for help on using tickets.