How to restore the window of tabs crashed 1 day ago in Google Chrome

35,307

Solution 1

I created a pure web-app that deals with the problem of session restore. (motivated by a recent computer crash, and this thread and the avoidance of extensions.)

The User interface is leaned on Chrome's own UI design.

Use as follows:

  1. Drag and drop the requested files from one of the 'user profile-folders' into Chrome-Session-Restore.
  2. Click on the small arrow in the bottom-bar to open a list of restorable tabs
  3. To open a session, set the number-input of the max number of tabs to restore and click on the top Icon of the opening tabs-menu, when clicking on the arrow.

Update per 30.05.2012:

*Favicons are shown;

*better instructions;

*directly copyable file-paths to the session files.

Here is more technical information and some background to restoring-sessions.

Solution 2

I dug this out of Lo Sauer's excellent post linked above. In it he says:

PS: If your file isn't corrupt you can simply overwrite the current-tabs file with your last-tabs file and restart the Browser.

This worked like a charm. After restarting Chrome, it asked me if I wanted to reopen my tabs, and I clumsily closed that window. To recover using the above PS, I first copied my old session file (all commands entered in the same Terminal window) before quitting Chrome:

cd ~/Library/Application\ Support/Google/Chrome/Default/
cp Last\ Session /tmp

Then I quit Chrome, and copied the session file back:

cp /tmp/Last\ Session Current\ Session

Then I ran Chrome again, and whoosh all my tabs and windows reopened, without even another prompt.

Solution 3

If you run Chrome right after a crash, it will ask you if you want to restore your session and tabs. If you don’t click Restore, it won’t restore it. If you then close Chrome, the last session and tabs will be lost (they'll be replaced by the one that you had just before exiting).

Your best bet to avoid losing your tabs after a crash (and not having to go to the trouble of using the history) is to install a session-management extension. There are plenty to choose from, but my personal favorite (and recommendation) is Session Buddy. Among its features are that it is lightweight, easy to use, has the ability to import and export sessions, can manage tabs per-window, and best of all (particularly for this question), it can be set to auto-save the session in case of a crash.

Solution 4

I don't think you can "Restore" them if you have opened Chrome and navigated to other sites since the crash. You could look into your History to see the site you visited just prior to your crash if they were saved in there and manually reopen them.

Solution 5

Answers there mention the classic Session Savers (and a specific one - Session Buddy) and also there is advise to use bookmarks for storing important tabs, “rather than just leaving it open for long periods of time”.

So I think it worth to intervene and mention that all this solutions has serious flaws.

First of all usage of bookmarks is of course not automatic, and in additional this only pollute the bookmarks. The serious problem with Session Savers style solutions is that list of crashed windows is buried in some non editable list, in a completely separate context, unrelated to current one and in all practical aspects generally invisible. I use for many years all this solutions as in Firefox, as in Chrome, and mostly never check all this crashed sessions because of this.

Also most of this solution (if not all) does not allow to clean up,rearrange and edit this automatically saved crashed sessions.

All this flaws was the reason that I was done my own solution not very long ago, which combine best properties of both worlds (this is a mix of bookmarks and session savers approaches, and some more):

TabsOutliner (a Chrome extension)

It is go beyond simple session management and the ability to restart crashed windows, but i want show there exactly this use case, as actually that was the first reason why this tool was created. And also as I was tired to wait from Session Buddy author for the long promised ability to manage crashed sessions.

On next screenshot you can see how it represent your browsing session (2 opened windows) and several crashed windows from the other days:

enter image description here http://i.imgur.com/o8ZvIDH.jpg (same image but bigger and with more details)

Note that crashed windows is intermixed with open ones, this is because some crashed windows is restored already.

TabsOutliner has the ability to unload tabs “in place”, to save PC resources, this also gives him facility to treat crashed windows and tabs as unloaded. On this screenshot you can see that the crashed windows (which is gray, with green titles) is stay in same context as open ones (which is blue). And you are free to reopen them later, or simple reorganize and trash if they not needed anymore (and they are, most of the time), anytime you wish. All of this without going to some buried separate lists. The crashed windows become a part of your current session, without burden of being reopened and consume resources, this feels like they was actually not crashed at all, you will even find that you welcome crashes, as they will just free the ram and nothing is lost.

I never close Chrome completely, sometimes for a weeks, so actually Chrome always crashed for me, soon or later. And without any false modesty i can claim that it is the best available solution for this problem. It was absent at the time this question was asked, and yes, the Session Buddy was the best answer in those days. I used it myself, of all the alternatives. But things change, now exist much better solution.

Share:
35,307

Related videos on Youtube

user51210
Author by

user51210

Updated on September 17, 2022

Comments

  • user51210
    user51210 almost 2 years

    How do you restore the window of tabs crashed 1 day ago in Google Chrome? if I have used another window of many tabs in Chrome for 1 day.

  • user51210
    user51210 over 13 years
    Dear Nebru, I usually keep important tabs in that window. It were weeks ago I first open those pages and had been keeping them until yesterday. Even I look at the history, I can not find those tabs, because history in Chrome only has the tabs I opened in the last two days.
  • Eyal
    Eyal over 13 years
    @user: That's incorrect. Chrome keeps history for far longer than two days. Mine goes back at least a week. I didn't bother to click back any longer. You have to click the "Older" hyperlink at the bottom of the page.
  • Neberu
    Neberu over 13 years
    That's correct, unless you clear your history it'll keep history for months. You just have to surf back through the "older" links until you find your day. As an aside, have you considered using bookmarks to track your important tabs rather than just leaving it open for long periods of time?
  • Fiasco Labs
    Fiasco Labs over 12 years
    Thanks, just picked up Session Buddy. It auto backs up the session tabs nicely. Nothing like having seven tabs open and then a browser crash causing you to have to hunt down what you were looking up. (Probably was a flash problem that cleared with the next update)
  • Dan Dascalescu
    Dan Dascalescu over 12 years
    The best technical explanation I've seen of Chrome's session saver files. Unfortunately the JavaScript application didn't do anything after I drag and dropped the Last Tabs files on the bottom bar.
  • Lorenz Lo Sauer
    Lorenz Lo Sauer about 12 years
    @dandv - Could you please tell me if any errors (red-text) occurred when you press CTRL+SHIFT+J in Chrome? Per se the UI doesn't give much feedback that the loading was successful. Try to click on the bar with the upwards arrow first.
  • Moreaki
    Moreaki about 11 years
    That's mighty cool code you've provided, so thank you. In my case, I would need to have a history browser that allows me to select the tabs that have been opened in the last session, kind of Session Buddy mentioned below. I wasn't able to restore my lost session using your nifty tool, some of which were opened two weeks ago and some of which were opened just a couple of days ago. Such is life, I presume. Thanks to this post I found two invaluable tools for the future: yours and Session Buddy.
  • Moreaki
    Moreaki about 11 years
    @Neberu: I think most people use bookmarks to track important tabs, however every now and then, you open a couple of tabs in a context to have a look at or to later organize into the already existing bookmark structure, when you have to switch the context you're working in to do something else. You make a mental note to come back to the left context later that evening or tomorrow, and each day you look back at your tabs, happy that they are there waiting to be woken up by our context switch to finish what we originally started pursuing. Not sure I explain myself well here ;).
  • Augustin Riedinger
    Augustin Riedinger about 10 years
    I really don't understand how this peace of software works (though I'm not the dummiest with a computer ...) and it is now 3 years old which feels like a lot in a software lifetime. I love the philosophy of avoiding extensions though. How come no more recent results can be found? How come chrome doesn't provide any better tool since 3 years also? I'm giving a try to Session Buddy for the moment...
  • davidhq
    davidhq over 9 years
    http://lsauer.github.com/chrome-session-restore/ doesn't work :( Site Disabled
  • kenorb
    kenorb about 9 years
  • Syclone0044
    Syclone0044 almost 9 years
    However, isn't it true that this extension (like all tab manager extensions) will fail to restore your per-tab context (history back/forward)?
  • iconoclast
    iconoclast about 8 years
    That new URL doesn't work either.
  • peterflynn
    peterflynn almost 5 years
    This URL still works: lsauer.github.io/chrome-session-restore However, you need to have the relevant "Current Tabs" or "Last Tabs" file (from your Chrome profile folder) to restore from - if the OP continued using Chrome for a day without first making backups of those files, the tab data is likely gone...
  • Xsmael
    Xsmael almost 3 years
    now 10 year old