[GRASS-dev] [GRASS GIS] #3915: wxGUI: crash with ValueError: list.remove(x): x not in list
GRASS GIS
trac at osgeo.org
Thu Oct 3 23:31:47 PDT 2019
#3915: wxGUI: crash with ValueError: list.remove(x): x not in list
--------------------------+----------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.8.1
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: python3, g.gui
CPU: Unspecified | Platform: Unspecified
--------------------------+----------------------------
Comment (by neteler):
Replying to [comment:1 annakrat]:
> Does this happen in any location?
No, see below.
> What does g.mapsets -l return?
It returns a list of mapsets, all exist.
> I don't see anything problematic and it works here, so you would have to
investigate what it is trying to remove in core/utils.py L308.
Ok, this helped to debug the problem:
The actual mapset lacks the `WIND` file:
{{{
g.region -p
ERROR: Unable to open element file <> for <WIND at ortsteil_1>
}}}
I have no clue how this happened but I thought we had an "auto-repair" in
place somewhere (like we do for the `sqlite/` subdir).
A possibility might be to catch such an error (earlier) and reject to
start GRASS with a broken mapset.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3915#comment:2>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list