[GRASS-dev] [GRASS GIS] #3740: The "Quit GRASS GIS" button does not close the GRASS shell/session

GRASS GIS trac at osgeo.org
Tue Jan 29 10:28:22 PST 2019


#3740: The "Quit GRASS GIS" button does not close the GRASS shell/session
----------------------+-------------------------
  Reporter:  pmav99   |      Owner:  grass-dev@…
      Type:  defect   |     Status:  new
  Priority:  normal   |  Milestone:
 Component:  Startup  |    Version:  svn-trunk
Resolution:           |   Keywords:
       CPU:  x86-64   |   Platform:  Linux
----------------------+-------------------------

Comment (by pmav99):

 Just tested this on my main PC: Archlinux + trunk + python 2

 When I start the GUI there are two processes, 15369 and 15370:
 {{{
 feanor    2940  0.7  0.4 547480 75700 ?        Ssl  18:15   0:53
 /usr/bin/python2 /usr/bin/terminator
 feanor    2949  0.2  0.0  16336 11116 pts/0    Ss   18:15   0:20  \_
 /bin/zsh
 feanor   15305  0.5  0.0  21880 14140 pts/0    S    20:16   0:00      \_
 python bin.x86_64-pc-linux-gnu/grass77
 feanor   15369  3.4  0.0  14316  9416 pts/0    S    20:16   0:00
 \_ /bin/zsh
 feanor   15370 37.6  0.9 989800 148932 pts/0   Sl   20:16   0:01
 \_ python /home/feanor/Prog/svn/grass_svn/dist.x86_64-pc-linux-
 gnu/gui/wxpython/wxgui.py
 }}}
 When I click `Quit GRASS GIS`, the shell continues to run, while the gui
 one becomes a zombie.
 {{{
 feanor    2940  0.7  0.4 547864 76220 ?        Ssl  18:15   0:54
 /usr/bin/python2 /usr/bin/terminator
 feanor    2949  0.2  0.0  16336 11116 pts/0    Ss   18:15   0:20  \_
 /bin/zsh
 feanor   15305  0.0  0.0  21880 14140 pts/0    S    20:16   0:00      \_
 python bin.x86_64-pc-linux-gnu/grass77
 feanor   15369  0.1  0.0  14316  9420 pts/0    S    20:16   0:00
 \_ /bin/zsh
 feanor   15370  1.8  0.0      0     0 pts/0    Z    20:16   0:02
 \_ [python] <defunct>
 }}}
 Since I remain in the GRASS shell, I can restart the GUI with `g.gui`. If
 I do so, a new python process is spawned, which, interestingly enough,
 does not belong to the same process tree
 {{{
 feanor    2940  0.7  0.4 548432 76836 ?        Ssl  18:15   0:54
 /usr/bin/python2 /usr/bin/terminator
 feanor    2949  0.2  0.0  16336 11116 pts/0    Ss   18:15   0:20  \_
 /bin/zsh
 feanor   15305  0.0  0.0  21880 14140 pts/0    S    20:16   0:00      \_
 python bin.x86_64-pc-linux-gnu/grass77
 feanor   15369  0.1  0.0  14316  9420 pts/0    S    20:16   0:00
 \_ /bin/zsh
 feanor   15370  1.5  0.0      0     0 pts/0    Z    20:16   0:02
 \_ [python] <defunct>
 feanor   16326 37.8  0.9 989780 148956 pts/0   Sl   20:19   0:01 python
 /home/feanor/Prog/svn/grass_svn/dist.x86_64-pc-linux-
 gnu/gui/wxpython/wxgui.py
 }}}
 +
 {{{
 $ pstree -ps 16326
 systemd(1)───python(16326)─┬─{python}(16346)
                            ├─{python}(16352)
                            ├─{python}(16353)
                            ├─{python}(16354)
                            └─{python}(16362)
 }}}
 Nevertheless, if I type `exit` in the shell, all processes die as
 expected.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3740#comment:10>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list