Not certain if this is the exact same issue, but a very similar issue
can be observed running from the commandline:

```
$ pgrep chromium | xargs kill # kill any running chromium (beware!)
$ pgrep chromium | wc -l
0 # There are non running
$ /snap/bin/chromium --product-version # command quits immediately.
$ pgrep chromium | wc -l
1
$ /snap/bin/chromium # opens a browser. 
# Quit browser manually.
$ pgrep chromium | wc -l
2
$ ps faux | grep chromium # check any processes running.
\_/bin/sh /snap/chromium/1100/bin/chromium.launcher --product-version
\_/bin/sh /snap/chromium/1100/bin/chromium.launcher
```

This shows that a process remains active after closing or running.
The `ps faux` shows the leftover running processes and clearly shows they no 
longer have a parent: it seems the parent process forks, then quits, but leaves 
its child running.

This hints at a mistake in the forking somewhere in the giant ball of
spagetti (sorry) that the snap exectuables, scripts, simlinks and
desktop files use to start a snap.

** Bug watch added: github.com/titusfortner/webdrivers/issues #168
   https://github.com/titusfortner/webdrivers/issues/168

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to chromium-browser in Ubuntu.
https://bugs.launchpad.net/bugs/1859878

Title:
  Chrome does not quit when closing the window, it remains in background

Status in chromium-browser package in Ubuntu:
  Confirmed

Bug description:
  When I close the chromium window it keeps magically running in the
  background. There is a invisible chrome icon in app indicator space
  however it can not be activated by clicking on it. The dash does not
  show that chrome is still active.  Not closing correctly further leads
  to the annoying problem chromium not saving its state when restarting.
  But this is an other problem.

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: chromium-browser 79.0.3945.79-0ubuntu1
  ProcVersionSignature: Ubuntu 5.4.0-9.12-generic 5.4.3
  Uname: Linux 5.4.0-9-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu15
  Architecture: amd64
  Date: Wed Jan 15 22:16:17 2020
  InstallationDate: Installed on 2019-12-19 (27 days ago)
  InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
  ProcEnviron:
   LANGUAGE=en_US
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/usr/bin/zsh
  Snap.Changes: Error: command ['snap', 'changes', '--abs-time', 'chromium'] 
failed with exit code 1: error: no changes found
  Snap.ChromeDriverVersion: ChromeDriver 79.0.3945.117 
(04f0a055010adab4484f7497fbfdbf312c307f1d-refs/branch-heads/3945@{#1019})
  Snap.ChromiumVersion:
   mkdir: cannot create directory '/run/user/0': Permission denied
   Chromium 79.0.3945.117 snap
  SourcePackage: chromium-browser
  UpgradeStatus: Upgraded to focal on 2019-12-21 (24 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1859878/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to