X
Stuknij, by przejść do witryny w wersji zoptymalizowanej dla urządzeń przenośnych.

Forum pomocy

FF won't restore old session anymore (blank tab)

Wysłano

Usually the very first tab that loads in Firefox is the "Oops, something went wrong, do you want to restore your last session?" one. Since today the tab doesn't show up anymore all of a sudden.

Firefox is still using 1-2gb of RAM (like the old, huge session is loaded), even though the only tab that's open is the one I'm using to write this.

The "profiles/xxxxx.default/sessionstore.jsonlz4" file is almost 70mb. I already deleted it and used the other 70mb one that was created yesterday ("sessionstore-backups/recovery.jsonlz4") instead but the first tab still loads up empty and FF is pretty slow/kind of laggy. "History > Restore Previous Session" is greyed out and there's nothing in "History > Recently Closed Windows".

I just updated to 68.0.1 but that didn't help either.

Any ideas how I can make FF load the old session or at least make it give me the option to restore it?

Usually the very first tab that loads in Firefox is the "Oops, something went wrong, do you want to restore your last session?" one. Since today the tab doesn't show up anymore all of a sudden. Firefox is still using 1-2gb of RAM (like the old, huge session is loaded), even though the only tab that's open is the one I'm using to write this. The "profiles/xxxxx.default/sessionstore.jsonlz4" file is almost 70mb. I already deleted it and used the other 70mb one that was created yesterday ("sessionstore-backups/recovery.jsonlz4") instead but the first tab still loads up empty and FF is pretty slow/kind of laggy. "History > Restore Previous Session" is greyed out and there's nothing in "History > Recently Closed Windows". I just updated to 68.0.1 but that didn't help either. Any ideas how I can make FF load the old session or at least make it give me the option to restore it?
Cytuj

Dodatkowe dane o systemie

Zainstalowane wtyczki

  • Shockwave Flash 32.0 r0

Aplikacja

  • Identyfikator przeglądarki: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0

Więcej informacji

jscher2000
  • Top 10 Contributor
8583 rozwiązań 70214 odpowiedzi

Neph said

Usually the very first tab that loads in Firefox is the "Oops, something went wrong, do you want to restore your last session?" one. Since today the tab doesn't show up anymore all of a sudden.

Hi, actually that page should only appear if (1) Firefox crashed instead of shutting down correctly, and (2) Firefox's standard automatic crash recovery failed.

I think your Reddit thread might be more up-to-date than this one?

https://www.reddit.com/r/firefox/comments/cexlis/ff_wont_restore_old_session_anymore/

If you get a chance to try the suggestions there, let us know how it goes.

''Neph [[#question-1265004|said]]'' <blockquote> Usually the very first tab that loads in Firefox is the "Oops, something went wrong, do you want to restore your last session?" one. Since today the tab doesn't show up anymore all of a sudden.</blockquote> Hi, actually that page should only appear if (1) Firefox crashed instead of shutting down correctly, and (2) Firefox's standard automatic crash recovery failed. I think your Reddit thread might be more up-to-date than this one? https://www.reddit.com/r/firefox/comments/cexlis/ff_wont_restore_old_session_anymore/ If you get a chance to try the suggestions there, let us know how it goes.
Czy ta odpowiedź okazała się pomocna?
Cytuj
SHAIN 0 rozwiązań 12 odpowiedzi

Mozilla changed the format of session backup files and that means that the previous way of restoring sessions needed updating.

   -Close the Firefox browser. Make sure no instance of the browser is running.
   -Open the profile folder and rename the current session file sessionstore.jsonlz4 to sessionstore-backup.jsonlz4.
   -Open the sessionstore-backups folder of the profile.
   -Rename recovery.jsonlz4 to recovery-backup.jsonlz4.
   -Rename recovery.backlz4 to recovery-backup.backlz4.
   -Copy the session restore backup that you want to restore, e.g. previous.jsonlz4.
   Go back to the root directory of the Firefox profile.
  - Paste the copied file to the root folder.
  - Rename it to sessionstore.jsonlz4.
  - Restart the Firefox browser.
 -  Firefox might pick up the session automatically. If it does not, press the Alt-key on your keyboard and select History > Restore Previous Session.
Mozilla changed the format of session backup files and that means that the previous way of restoring sessions needed updating. -Close the Firefox browser. Make sure no instance of the browser is running. -Open the profile folder and rename the current session file sessionstore.jsonlz4 to sessionstore-backup.jsonlz4. -Open the sessionstore-backups folder of the profile. -Rename recovery.jsonlz4 to recovery-backup.jsonlz4. -Rename recovery.backlz4 to recovery-backup.backlz4. -Copy the session restore backup that you want to restore, e.g. previous.jsonlz4. Go back to the root directory of the Firefox profile. - Paste the copied file to the root folder. - Rename it to sessionstore.jsonlz4. - Restart the Firefox browser. - Firefox might pick up the session automatically. If it does not, press the Alt-key on your keyboard and select History > Restore Previous Session.
Czy ta odpowiedź okazała się pomocna?
Cytuj

Zadający pytanie

jscher2000 said

Hi, actually that page should only appear if (1) Firefox crashed instead of shutting down correctly, and (2) Firefox's standard automatic crash recovery failed. I think your Reddit thread might be more up-to-date than this one? https://www.reddit.com/r/firefox/comments/cexlis/ff_wont_restore_old_session_anymore/ If you get a chance to try the suggestions there, let us know how it goes.

I'm aware, I always shut down FF through the Task Manager to make sure that this popup always shows up because going through the "x" and the "are you sure you want to close all tabs" dialog made me lose my session before ("restore previous session" was greyed out too).

I was hoping that someone here might have come across this before.

SHAIN said

Mozilla changed the format of session backup files and that means that the previous way of restoring sessions needed updating.

I only updated FF after restoring my old session didn't work. What you posted is also suggested here and that's what I already tried to do but it didn't work. Alt-clicking on "History" doesn't open the dropdown menu.

''jscher2000 [[#answer-1238625|said]]'' <blockquote> Hi, actually that page should only appear if (1) Firefox crashed instead of shutting down correctly, and (2) Firefox's standard automatic crash recovery failed. I think your Reddit thread might be more up-to-date than this one? https://www.reddit.com/r/firefox/comments/cexlis/ff_wont_restore_old_session_anymore/ If you get a chance to try the suggestions there, let us know how it goes. </blockquote> I'm aware, I always shut down FF through the Task Manager to make sure that this popup always shows up because going through the "x" and the "are you sure you want to close all tabs" dialog made me lose my session before ("restore previous session" was greyed out too). I was hoping that someone here might have come across this before. ''SHAIN [[#answer-1238658|said]]'' <blockquote> Mozilla changed the format of session backup files and that means that the previous way of restoring sessions needed updating. </blockquote> I only updated FF after restoring my old session didn't work. What you posted is also suggested [https://www.ghacks.net/2013/06/03/how-to-restore-firefox-sessions-if-session-restore-is-not-working-correctly/ here] and that's what I already tried to do but it didn't work. Alt-clicking on "History" doesn't open the dropdown menu.
Czy ta odpowiedź okazała się pomocna?
Cytuj
jscher2000
  • Top 10 Contributor
8583 rozwiązań 70214 odpowiedzi

Hmm, while crashing Firefox is a pretty reliable way to get an automatic session recovery, it also could corrupt the session history files. A safer way is:

(1) Set Firefox to Restore Previous Session automatically on the Options page:

(2) Shut down using "Exit" from the menu, either:

  • "3-bar" menu button > Exit
  • (menu bar) File > Exit
Hmm, while crashing Firefox is a pretty reliable way to get an automatic session recovery, it also could corrupt the session history files. A safer way is: (1) Set Firefox to Restore Previous Session automatically on the Options page: <center><img src="https://user-media-prod-cdn.itsre-sumo.mozilla.net/uploads/images/2019-07-19-16-33-20-a04b40.png"></center> (2) Shut down using "Exit" from the menu, either: * "3-bar" menu button > Exit * (menu bar) File > Exit
Czy ta odpowiedź okazała się pomocna?
Cytuj
cor-el
  • Top 10 Contributor
  • Moderator
17348 rozwiązań 156811 odpowiedzi

Firefox keeps a lot of data in memory that is only written to the profile folder when you close Firefox properly. This includes disk cache management files. Using the Windows Task Manager to close Firefox can cause your profile folder to get corrupted and you shouldn't do this.

Firefox checks the sessionCheckpoints.json file in the profile folder at startup to check whether Firefox did close properly and that everything was saved to the profile folder.


You can look at this tool to inspect a compressed sessionstore file.

Firefox keeps a lot of data in memory that is only written to the profile folder when you close Firefox properly. This includes disk cache management files. Using the Windows Task Manager to close Firefox can cause your profile folder to get corrupted and you shouldn't do this. Firefox checks the sessionCheckpoints.json file in the profile folder at startup to check whether Firefox did close properly and that everything was saved to the profile folder. ---- You can look at this tool to inspect a compressed sessionstore file. *https://www.jeffersonscher.com/res/scrounger.html
Czy ta odpowiedź okazała się pomocna?
Cytuj

Zadający pytanie

jscher2000 said

(1) Set Firefox to Restore Previous Session automatically on the Options page:

I don't want it to restore everything automatically, as in open all the tabs again. I often use session restore to keep a list of pages that have stuff I have to look at, so I just keep them in session restore until I have the time to look at them.

cor-el said

You can look at this tool to inspect a compressed sessionstore file.

I did, the author posted a link in the reddit thread (only the older version worked), but it's a really, really long list with at least 100 windows and over 1000 tabs. There are even a lot of closed tabs from May and June and websites that I'm sure shouldn't even be in there. It's simply way too big of a list to find the important tabs again.

Is there no way to make Firefox read the file properly again?

''jscher2000 [[#answer-1238890|said]]'' <blockquote> (1) Set Firefox to Restore Previous Session automatically on the Options page: </blockquote> I don't want it to restore everything automatically, as in open all the tabs again. I often use session restore to keep a list of pages that have stuff I have to look at, so I just keep them in session restore until I have the time to look at them. ''cor-el [[#answer-1238930|said]]'' <blockquote> You can look at this tool to inspect a compressed sessionstore file. *https://www.jeffersonscher.com/res/scrounger.html </blockquote> I did, the author posted a link in the reddit thread (only the older version worked), but it's a really, really long list with at least 100 windows and over 1000 tabs. There are even a lot of closed tabs from May and June and websites that I'm sure shouldn't even be in there. It's simply way too big of a list to find the important tabs again. Is there no way to make Firefox read the file properly again?
Czy ta odpowiedź okazała się pomocna?
Cytuj
jscher2000
  • Top 10 Contributor
8583 rozwiązań 70214 odpowiedzi

I updated the code that generates the HTML list with the ability to dig out an embedded session: https://www.jeffersonscher.com/ffu/scrounger.html

That's useful for reference/clicking, but I it still don't have a feature to extract the embedded session to its own file.

I updated the code that generates the HTML list with the ability to dig out an embedded session: https://www.jeffersonscher.com/ffu/scrounger.html That's useful for reference/clicking, but I it still don't have a feature to extract the embedded session to its own file.
Czy ta odpowiedź okazała się pomocna?
Cytuj
jscher2000
  • Top 10 Contributor
8583 rozwiązań 70214 odpowiedzi

I added a button to find and save the first embedded session. That would provide the option to rename the file to sessionstore.js (at the main level of the profile folder) or recovery.js (in the sessionstore-backups folder) to try to get Firefox to use it. Note that you probably need to hide all the newer .jsonlz4 files in order for that to happen.

https://www.jeffersonscher.com/ffu/scrounger.html

If you do not see the updated options, reload the page bypassing the cache (Ctrl+Shift+r).

There is a four-second delay before the page checks for an embedded session and enables the embedded session button. Hopefully that's enough time for your large file (I'm testing with a 1MB file).

I added a button to find and save the first embedded session. That would provide the option to rename the file to sessionstore.js (at the main level of the profile folder) or recovery.js (in the sessionstore-backups folder) to try to get Firefox to use it. Note that you probably need to hide all the newer .jsonlz4 files in order for that to happen. https://www.jeffersonscher.com/ffu/scrounger.html If you do not see the updated options, reload the page bypassing the cache (Ctrl+Shift+r). There is a four-second delay before the page checks for an embedded session and enables the embedded session button. Hopefully that's enough time for your large file (I'm testing with a 1MB file).
Czy ta odpowiedź okazała się pomocna?
Cytuj
Zadaj pytanie

Aby odpowiadać na posty, musisz zalogować się na swoje konto. Zadaj pytanie, jeśli nie masz jeszcze konta.