Firefox Lorentz Keeps Plugin Crashes Under Control
pastababa writes "A beta of the Firefox Lorentz project is now available for download and public testing. Eming reports Firefox 'Lorentz' provides uninterrupted browsing for Windows and Linux users when there is a crash in plugins. Plugins run in a separate process from the browser. If a plugin crashes it will not crash the browser, and unresponsive plugins are automatically restarted. The process-isolation feature has been in Google's Chrome from the beginning. Chrome sandboxes individual tabs, and the crash of one tab does not affect the running of the rest of Chrome browser. Firefox currently isolates only Adobe Flash, Apple Quicktime, and Microsoft Silverlight, but will eventually isolate all plugins running on a page. Mozilla encourages users to test Firefox 'Lorentz' on their favorite websites. Users who install Firefox 'Lorentz' will eventually be automatically updated to a future version of Firefox 3.6 in which this feature is included."
Versions of Gnash have frequently segfaulted on my Linux box (the segfault is reported by dmesg), yet I've never had a browser crash because of it. I had thought that plugins were already isolated enough from the application as a whole.
but can it be extended so that plugins are not only run in their separate processes, but separate SELinux sandboxes as well?
Colorless green Cthulhu waits dreaming furiously.
Hmm, Google Chrome already handles plugins this way, but one flash-heavy site I know delivers a lot of streaming video and absolutely will crash either Firefox or Chrome in linux (I use Mint, mainly) without fail, if given enough time, Gnome or KDE. Crash as in the entire browser becomes unresponsive and must force-close. After it did this to Firefox a few times I tried Chrome, with the same result. Everything will be fine for a few minutes, sometimes up to an hour or so, then the whole browser will die. Haven't tried IE, tried Firefox with Windows 7 and had the same thing happen. I will certainly look into anything that prevents crashes for Firefox, since I strongly prefer it to every other browser I've tried, since most of the time it works perfectly.
This is a hacked account, for which the owner can not be held responsible.
Let's see how it goes. The auto-restart of plugins should be good, but could also cause a plugin DOS.
Excuse me, but please get off my Pennisetum Clandestinum, eh!
We've known about plugin crashiness for a long time. We're just now going multi-process for this?
Translating that to FOSS speak: We've known about plugin crashiness for a long time. This problem would never be fixed if it was up to me to fix it.
Eh?
Chrome sailed past 1.0 (on Windows) years ago. Look for the word "beta" in the About dialog (or anywhere else); you won't find it.
Even on Linux and MacOS, it's going to be released as a stable in a couple of weeks, and even that distinction is mostly a formality. And they haven't used the word "beta" in over six months, either (and are also in-step with the version numbering used for Windows builds).
No, this has not been the normal plugin architecture. When Linux moved to 64-bit, firefox was ported to 64-bit but all of the proprietary plugins were still 32-bit. The solution to this problem was to create nspluginwrapper which would run the apps in a separate process. It had some bugs of it's own, wasn't always reliable about letting you restart crashed plugins, and has itself crashed the browser on me, but it largely prevented plugins from crashing the browser as a side effect.
Older 32-bit versions of firefox on linux, and all versions on windows did not have this capability.
Konqueror has run flash (and more generally nsplugins) in a separate process since before Chrome was even a rumour. I used to run Konqueror as my primary browser and when I stopped using it I was surprised to discover that other browsers didn't run flash as a separate process.
Does this mean that, when "Lorentz" covers all plugins, we can install and update plugins without having to restart Firefox?
That would be a worthwhile feature. It's annoying having to restart the browser for any plugin changes.
Firefox currently isolate [sic] only Adobe Flash, Apple Quicktime and Microsoft Silverlight, but will eventually isolate all plugins running on a page.
The quote emphasizes that Lorentz affects only plugins, not extensions, a distinction that seems to be escaping many posters.
I've had flash behave pretty screwily short of crashing, so this might be nicer if it included a mechanism to manually stop & restart plugins. Perhaps it will expose API allowing other add-ons to do so.
The plugin that gives me by far the most trouble (on Windows) is Adobe Acrobat Reader. I can already restart that (by killing the process) without crashing firefox.
There appears to be a download for Mac available right at the same link - but from the FAQ:
2. Why aren't multi-process plugins available on Mac?
Mozilla is working on making multi-process plugins available on Mac. Because of architectural differences, the code is not ready for beta testing.
#DeleteChrome
Can anyone please explain to me why there's a need for completely new processes, as opposed to using threads?
I'm curious as to what's the difference, and where the thread mechanism "fails" here.
I think it's a combination of Flash! and Java but other things seem to take it out too.
Did Yahoo! buy out Flash while I wasn't looking?
== Jez ==
Do you miss Firefox? Try Pale Moon.
Crashes are a hassle for sure, but if you're lucky and don't have an unstable plugin installed, you rarely crash. What I tend to see is runaway memory and CPU usage that forces me to close the browser and start again.
These posts express my own personal views, not those of my employer
I'm using it now and I like it, but Chrome is not stable for me.
It's problem is that it gets "stuck" in flash in such a way that nothing on my system can use the sound card.
I can kill off all the tabs but there's still a chrome process running and until I kill that manually I can't play any music.
I find this an incredible nuisance. Firefox has the same problem but when I kill it it's gone - no processes left behind.
This is all just my personal opinion.
> Chrome sandboxes individual tabs, crashes of one tab does not affect the running of the rest of Chrome browser.
Will Chrome also restart sentences in the event of comma splices?
Been running nightly 64-bit Firefox, automatically updated. I guess I got Lorentz a couple of nights ago, not sure when because I was traveling.
Now no Flash instances run, they take 30 seconds or more to "initialize" before they crash, and the entire Lorentz-enabled Firefox browser crashed on me once. It just suddenly and unexpectedly disappeared. It's been a year or more since Firefox crashed on me.
So at this point there are lots of bugs to shake out. Going back to vanilla 3.6.3 for the time being.
sigfault (core dumped)
We've had it on FreeBSD for a while, and on x86-64 Linux too. It's been possible on most *NIX systems, but the motivation for doing it has been the lack of native plugins, not stability. Both FreeBSD and x86-64 Linux run 32-bit Linux plugins via nspluginwrapper, in a separate process. If you go to a site that crashes Flash, it just crashes another process. There's a little bit more overhead - an extra process instance, IPC between the plugin and browser instead of just function calls - so browsers on other platforms, with their focus on speed-at-all-costs have not bothered with it, until Google did and now everyone wants to.
I am TheRaven on Soylent News
The "beta" label has pretty much died. In Google-ese "beta" means a normal release, and when they hit the "1.0" and finally take of the beta tag, it pretty much means nothing.
Have you been able to tell the difference between the beta of Gmail, and the full on release? I haven't.
Now if you said this about the "dev channel", or Chromium daily, you would have a point. Though even being at "full-on release" status doesn't mean much, how often does Firefox update, and push bug patches, even at release status? The Mozilla team are tinkering with release versions about as much as Google is tinkering with their betas.
If we're talking about stability, this isn't really an argument either. Chrome is about as stable as Firefox is currently. Both have nagging issues that don't seem to ever be fixed, though I haven't had Chrome or Chromium full-on crash yet, and I pretty much ditched Firefox's last full release because it didn't play well on either Win7 or Karmic (a crash a day is unacceptable).
Also, you're talking about personal computing right, as opposed to business? And you're also talking about something as banal and inconsequential as a web browser, right? What's the worst that can happen (on a well protected OS), you loose your cookies or saved form data? We're not talking about running a server, or business app here, where you can loose data that actually matters, or worse, money.
A patriot must always be ready to defend his country against his government. -edward abbey