Firefox crash and recovery

by Jeremy Jones

While I was just creating a blog post on this site, Firefox decided to die horribly. No worries, right? I'm running Ubuntu Edgy and Firefox 2.0.0.1. It has crash recovery. It even preserves the text which you've typed in text areas. I guess it would have, too, had it decided to come up. Instead, each tab which was opened prior to the crash just sat and spun until each of them appeared to totally freeze and I became too impatient to wait any longer.

I figured Firefox had to keep that session information somewhere, so I began rummaging through my Firefox session folder (~/.mozilla/firefox/{{random text string}} on Ubuntu). Two files which showed promise were sessionstore.bak and sessionstore.js. I opened the .bak file and looked for some text that I had been typing in and to my (almost) surprise, I found it.

I saved off the section that I was interested in to its own file. It had been reformatted slightly. All the spaces were %20. The urllib module in the Python standard library has an "unquote" function, so a little ` urllib.unquote(open("/tmp/blogpost.txt", "r").read())` at an IPython prompt fixed my text right up.

6 Comments


2007-02-09 07:52:36
Yes, and this feature appears to accelerate firefox re-crashing: hit a site that makes firefox crash, and firefox restarts at the thing that makes it crash (however, my results are better after backing out from the latest version of flash)
Jeremy Jones
2007-02-09 08:07:31
@Anonymous,


I actually am using the latest flash. But I don't have frequent crashing problems. Actually, it's an anomaly for FF to crash on me. With as few crashes as I have, I'm happy to keep the latest Flash (9).

Lucian
2007-02-15 09:38:57
Firefox rarely crashes, it is very good software, but now with the option to restore session prevents data loss if you have microsoft software.

2007-03-10 00:39:30
I am experiencing severe crashing problems ever since I updated to Firefox 2.0, most notable with multiple tabs open or in anypart of the 4chan website {most recent tonight on the tv/film board] & I even when I choose to dump the crashed session data & start fresh It still crashes automaticaly.


I love FF & NEVER had this problem untill I updated to 2.0


2007-07-23 06:09:39
Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu Desu
Don
2008-07-09 22:01:36
Thanks for letting me know that Firefox rarely crashes. I guess just shutting down without warning is a feature. Or maybe I'm imagining it.


Well - I'm off to tell all the hundreds of other threads on other sites asking why firefox crashes that it doesn't.