#3897: d.mon errors when closing
-------------------------+---------------------------------
Reporter: veroandreo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.8.0
Component: Display | Version: git-releasebranch78
Keywords: d.mon | CPU: Unspecified
Platform: Unspecified |
-------------------------+---------------------------------
When I close the wx monitor after displaying a raster and trying to
display a raster legend, or only after displaying a raster or vector map,
I get:
{{{
wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this"
failed at ../src/common/wincmn.cpp(477) in ~wxWindowBase(): any pushed
event handlers must have been removed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/veroandreo/software/grass78_git/dist.x86_64-pc-linux-
gnu/gui/wxpython/mapdisp/main.py", line 565, in OnExit
for f in six.itervalues(monFile):
File "/usr/lib/python3.7/site-packages/six.py", line 584, in itervalues
return iter(d.values(**kw))
SystemError: <built-in method values of dict object at 0x7f730b192a00>
returned a result with an error set
}}}
Yes, GH 383650806c3505fb677cc2d5474cd1325ac17cc9 solved it.
Still I see this bug when entering a wrong map name (just happened when
testing, here I just a fun name):
{{{
GRASS 7.9.dev (nc_spm_08):~/software/grass_master > d.rast blabla
ERROR: Raster map <blabla> not found
Traceback (most recent call last):
File
"/home/mneteler/grassdata/nc_spm_08/landsat/.tmp/oboe/MONITORS/wx0/render.py",
line 41, in render
grass.run_command(cmd[0], env=env, **cmd[1])
File "/home/mneteler/software/grass_master/dist.x86_64-pc-linux-
gnu/etc/python/grass/script/core.py", line 441, in run_command
return handle_errors(returncode, returncode, args, kwargs)
File "/home/mneteler/software/grass_master/dist.x86_64-pc-linux-
gnu/etc/python/grass/script/core.py", line 343, in handle_errors
returncode=returncode)
grass.exceptions.CalledModuleError: Module run None d.rast map=blabla
bgcolor=white ended with error
Process ended with non-zero return code 1. See errors in the (error)
output.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/home/mneteler/grassdata/nc_spm_08/landsat/.tmp/oboe/MONITORS/wx0/render.py",
line 141, in <module>
render(cmd, mapfile)
File
"/home/mneteler/grassdata/nc_spm_08/landsat/.tmp/oboe/MONITORS/wx0/render.py",
line 43, in render
grass.debug(1, "Unable to render: {0}".format(e))
File "/home/mneteler/software/grass_master/dist.x86_64-pc-linux-
gnu/etc/python/grass/script/core.py", line 628, in debug
if debug_level() >= debug:
TypeError: '>=' not supported between instances of 'int' and 'str'
}}}