[GRASS-dev] [GRASS GIS] #3631: Mapset remains locked after switch to it and exit
GRASS GIS
trac at osgeo.org
Wed Aug 29 19:29:04 PDT 2018
#3631: Mapset remains locked after switch to it and exit
-------------------------------------------------+-------------------------
Reporter: wenzeslaus | Owner: grass-dev@…
Type: defect | Status: assigned
Priority: normal | Milestone: 7.6.0
Component: Startup | Version: svn-trunk
Keywords: init, grass.py, lock, gislock, | CPU: Unspecified
g.mapset |
Platform: Linux |
-------------------------------------------------+-------------------------
To reproduce:
1. Start in mapset A.
2. Switch to mapset B.
3. Exit.
4. Mapset B is still locked.
The problem is that `grass.py` tries to remove the lock from A, but that
was already removed. No warning or error is generated, because `grass.py`
''tries'' (`try_remove()`) and thus ignores any errors. This behavior
seems to be there at least since 7.0 (by looking at the code).
Influences:
* G7:g.mapset
* ''Settings > GRASS working environment > ...''
* workspace loading with "session" (#3575)
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3631>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list