Description of the issue:
Browser doesn’t close gracefully on SIGTERM.
This causes issues, because my session is not restored properly after a system restart.
How can this issue be reproduced?
- Open terminal.
pkill -TERM brave
- The browser freezes, but won’t close.
pkill -TERM brave
again.- Brave closes.
- Open Brave again.
- Get the
Brave didn't shut down properly. Restore?
popup.
Expected result:
Brave closes gracefully. Opening it again restores the session.
Brave Version( check About Brave
):
Version 1.63.169 Chromium: 122.0.6261.111 (Official Build)
Linux Version:
Linux Mint 21.3
Additional Information:
pkill -INT brave
works. It closes the browser and when I open it up again, my session restarts as it should. I guess I could write a custom script to use that instead, but that doesn’t really solve the problem.
Running pgrep -xa brave
after breaking results in 4 processes:
20813 /app/brave/brave --disable-features=WebAssemblyTrapHandler,DesktopPWAsRunOnOsLogin --component-updater=url-source=https://go-updater.brave.com/extensions,url-source=https://go-updater.brave.com/extensions,url-source=https://go-updater.brave.com/extensions,url-source=https://go-updater.brave.com/extensions --disable-domain-reliability --enable-distillability-service --enable-dom-distiller --lso-url=https://no-thanks.invalid --no-default-browser-check --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --restart --sync-url=https://sync-v2.brave.com/v2 --variations-insecure-server-url=https://variations.brave.com/seed --variations-server-url=https://variations.brave.com/seed --restart --no-default-browser-check
20835 brave
20881 brave
21231 brave
I have tried:
- Disabling/removing extenstions
- Enabling/disabling hardware acceleration
- Enabling/disabling the
Continue running background app when Brave is closed
setting - Enabling/disabling memory saver mode
Can you help me investigating the issue further?