Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear behavior of background Firefox process when quitting Browsh #455

Open
64kramsystem opened this issue Jan 1, 2023 · 1 comment
Open
Labels

Comments

@64kramsystem
Copy link

When Browsh exits (via Ctrl+q), the Firefox processes keep running in the background (described here).

However, when I try to connect back to Firefox (browsh --firefox.use-existing), Browsh can't connect:

Failed to connect to Firefox's Marionette within 30 seconds

This is odd, because Firefox is running in the background, seemingly with the proper options:

/usr/lib/firefox/firefox --marionette --headless --profile /home/myuser/.config/browsh/firefox_profile
 \_ /usr/lib/firefox/firefox -contentproc -parentBuildID 20221208122842 -prefsLen 25277 -prefMapSize 227396 -appDir /usr/lib/firefox/browser {c5b96a9e-bad9-43c0-8c5f-f89890ae2dab} 1
 \_ /usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 25418 -prefMapSize 227396 -jsInitLen 246772 -parentBuildID 20221208122842 -appDir /usr/lib/firefox/brows
 \_ /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 30692 -prefMapSize 227396 -jsInitLen 246772 -parentBuildID 20221208122842 -appDir /usr/lib/firefox/brows
 \_ /usr/lib/firefox/firefox -contentproc -childID 7 -isForBrowser -prefsLen 30692 -prefMapSize 227396 -jsInitLen 246772 -parentBuildID 20221208122842 -appDir /usr/lib/firefox/brows
 \_ /usr/lib/firefox/firefox -contentproc -childID 8 -isForBrowser -prefsLen 30692 -prefMapSize 227396 -jsInitLen 246772 -parentBuildID 20221208122842 -appDir /usr/lib/firefox/brows
 \_ /usr/lib/firefox/firefox -contentproc -parentBuildID 20221208122842 -prefsLen 30692 -prefMapSize 227396 -appDir /usr/lib/firefox/browser {e9fed409-97cb-4204-9427-b210956d8690} 1
 \_ /usr/lib/firefox/firefox -contentproc -parentBuildID 20221208122842 -sandboxingKind 0 -prefsLen 30692 -prefMapSize 227396 -appDir /usr/lib/firefox/browser {3fc6b70f-889d-4d1a-ae
 \_ /usr/lib/firefox/firefox -contentproc -childID 9 -isForBrowser -prefsLen 30692 -prefMapSize 227396 -jsInitLen 246772 -parentBuildID 20221208122842 -appDir /usr/lib/firefox/brows
 \_ /usr/lib/firefox/firefox -contentproc -childID 10 -isForBrowser -prefsLen 30692 -prefMapSize 227396 -jsInitLen 246772 -parentBuildID 20221208122842 -appDir /usr/lib/firefox/brow
 \_ /usr/lib/firefox/firefox -contentproc -childID 20 -isForBrowser -prefsLen 30701 -prefMapSize 227396 -jsInitLen 246772 -parentBuildID 20221208122842 -appDir /usr/lib/firefox/brow
 \_ /usr/lib/firefox/firefox -contentproc -childID 21 -isForBrowser -prefsLen 30701 -prefMapSize 227396 -jsInitLen 246772 -parentBuildID 20221208122842 -appDir /usr/lib/firefox/brow
 \_ /usr/lib/firefox/firefox -contentproc -childID 22 -isForBrowser -prefsLen 30701 -prefMapSize 227396 -jsInitLen 246772 -parentBuildID 20221208122842 -appDir /usr/lib/firefox/brow

I've left the issue title generic, because this problem could be interepreted in at least two ways:

  1. the processes should be killed on exit (in this case, this is a duplicate of firefox processes still running after quitting browsh #312)
  2. browsh should be able to connect to the running processes
@tombh
Copy link
Member

tombh commented Jan 27, 2023

I think you might have found the source of an often reported bug!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants