mullvad / mullvadvpn-app

The Mullvad VPN client app for desktop and mobile
https://mullvad.net/
GNU General Public License v3.0
5.11k stars 339 forks source link

Mullvad gui blocks shutdown #5879

Open jm355 opened 8 months ago

jm355 commented 8 months ago

Is it a bug?

I have checked if others have reported this already

Current Behavior

When I shut down my laptop (Arch linux), stopping my user session hangs until it times out and gets forcefully killed. When I quit mullvad vpn and then shutdown, the user session is ended gracefully.

Here's a snippet of the logs that prompted me to try quitting mullvad gui before shutting down:

Feb 28 18:27:17 linux systemd[1]: session-3.scope: Stopping timed out. Killing.
Feb 28 18:27:17 linux systemd[1]: session-3.scope: Killing process 17938 (mullvad-gui) with signal SIGKILL.
Feb 28 18:27:17 linux systemd[1]: session-3.scope: Failed to kill control group /user.slice/user-1000.slice/se>
Feb 28 18:27:17 linux systemd[1]: session-3.scope: Failed with result 'timeout'.

Expected Behavior

Mullvad gui should end gracefully when the computer is being shut down. The daemon shuts down gracefully, here are logs from the same boot as the previous logs:

Feb 28 18:25:48 linux mullvad-daemon[1726]: [mullvad_daemon][DEBUG] Process exiting with code 0
Feb 28 18:25:48 linux systemd[1]: mullvad-daemon.service: Deactivated successfully.

Steps to Reproduce

  1. Set up arch linux with Sway WM
  2. start Mullvad gui with exec "/opt/Mullvad VPN/mullvad-vpn" --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto --ozone-platform=wayland in the sway config
  3. connect to vpn
  4. run 'systemctl poweroff`
  5. wait a long time for computer to power off
  6. Boot again and check logs to see what happened journalctl -b-1

Failure Logs

There were no logs before 18:27 in the app

Operating system version

Arch linux

Mullvad VPN app version

2023.6

Additional Information

Possibly related to #5190?

albsch commented 8 months ago

I have the same issue since months, the Mullvad GUI refuses to close on shutdown. Sway, Arch Linux, starting GUI with exec mullvad-vpn.

linear[bot] commented 8 months ago

DES-684 Electron app isn't closing on shutdown

raksooo commented 8 months ago

Thank you for reporting this. We have added this to our backlog.