X
Tap here to go to the mobile version of the site.

Support Forum

Sessionrestore Not Working

Posted

Yesterday morning my computer crashed.After rebooting and opening Firefox again all I saw was a blank new tab page(first picture).I copied my profile folder before doing anything else.After doing some googling and trying things I saw in forums including copying the contents of the backup to the currently used folder and deleting the sessionstore.jsonlz4 file and renaming a few of the sessionstore-backups folder files and the recovery.jsonlz4 file and using them in it's place all I could get was a blank about:sessionrestore page(the second picture)Is there anything I can do?

Yesterday morning my computer crashed.After rebooting and opening Firefox again all I saw was a blank new tab page(first picture).I copied my profile folder before doing anything else.After doing some googling and trying things I saw in forums including copying the contents of the backup to the currently used folder and deleting the sessionstore.jsonlz4 file and renaming a few of the sessionstore-backups folder files and the recovery.jsonlz4 file and using them in it's place all I could get was a blank about:sessionrestore page(the second picture)Is there anything I can do?
Attached screenshots
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36

More Information

McCoy
  • Top 10 Contributor
525 solutions 4914 answers

Hello Osiris3.0,

Your screenshot shows that you're using "Auto Tab Discard"; would you disable it and see if that will make a difference ?

I must admit that it's a stab in the dark, but might be worth a try ...

Hello Osiris3.0, Your screenshot shows that you're using "Auto Tab Discard"; would you disable it and see if that will make a difference ? I must admit that it's a stab in the dark, but might be worth a try ...
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17425 solutions 157456 answers

Did you check the sessionstore files with this utility?

Did you check the sessionstore files with this utility? *https://www.jeffersonscher.com/res/scrounger.html
Was this helpful to you?
Quote

Question owner

I did try disabling my add-ons and when I try loading the latest sessionstore files, the one that would have my last session, in that utility it freezes then crashes the tab.

I did try disabling my add-ons and when I try loading the latest sessionstore files, the one that would have my last session, in that utility it freezes then crashes the tab.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17425 solutions 157456 answers

How many tabs are you using?

How large are your sessionstore files ?

How many tabs are you using? How large are your sessionstore files ?
Was this helpful to you?
Quote

Question owner

You mean how many tabs in general, or just for this task?For loading the sessionstore file in the you utility you linked to I just use 1, but in general I have hundreds across 2 windows.They're not all active ofcourse.I'm only using a few to a small hand full, like 7, or 8, at any given time.

previous.jsonlz4 is 21.5MB

recovery.baklz4 is 21.5MB

upgrade.jsonlz4-20190619235627 is 21.4MB

You mean how many tabs in general, or just for this task?For loading the sessionstore file in the you utility you linked to I just use 1, but in general I have hundreds across 2 windows.They're not all active ofcourse.I'm only using a few to a small hand full, like 7, or 8, at any given time. previous.jsonlz4 is 21.5MB recovery.baklz4 is 21.5MB upgrade.jsonlz4-20190619235627 is 21.4MB
Was this helpful to you?
Quote
McCoy
  • Top 10 Contributor
525 solutions 4914 answers

Helpful Reply

You had a similar problem about 11 months ago (and again 5 months later) :

https://support.mozilla.org/en-US/questions/1213071

https://support.mozilla.org/en-US/questions/1250443

You had a similar problem about 11 months ago (and again 5 months later) : https://support.mozilla.org/en-US/questions/1213071 https://support.mozilla.org/en-US/questions/1250443
Was this helpful to you? 1
Quote

Question owner

Yes, but I believe those were caused by Firefox updates.The problem went away both times when I went back to a previous version of Firefox until another update came out.I tried that again this time and the problem remains.

Yes, but I believe those were caused by Firefox updates.The problem went away both times when I went back to a previous version of Firefox until another update came out.I tried that again this time and the problem remains.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17425 solutions 157456 answers

Note that Firefox 68 will be released in a few days, so there will be another update coming this week.

Note that Firefox 68 will be released in a few days, so there will be another update coming this week.
Was this helpful to you?
Quote

Question owner

If rolling it back to the previous version didn't fix it then a new update probably won't either.It seems like a similar problem, but I don't think it is the same problem.Those other times my tabs just wouldn't load after I rebooted my computer like normal.This time something seems to have gone wrong in recovering my session after my computer crashed.

If rolling it back to the previous version didn't fix it then a new update probably won't either.It seems like a similar problem, but I don't think it is the same problem.Those other times my tabs just wouldn't load after I rebooted my computer like normal.This time something seems to have gone wrong in recovering my session after my computer crashed.
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8643 solutions 70721 answers

Helpful Reply

The amount of data in your files is very large -- I tested the Scrounger with .jsonlz4 files in the range of 500KB to 1MB. If the web app cannot handle it, you may need to use Firefox's Browser Console to at least decompress the file to .json. Then there would be the mining of URLs, which would be the next challenge.

Decompression Scripts

The amount of data in your files is very large -- I tested the Scrounger with .jsonlz4 files in the range of 500KB to 1MB. If the web app cannot handle it, you may need to use Firefox's Browser Console to at least decompress the file to .json. Then there would be the mining of URLs, which would be the next challenge. '''Decompression Scripts''' * Firefox 66+: https://gist.github.com/jscher2000/4403507e33df0918289619edb83f8193 * Firefox 57-65: https://gist.github.com/jscher2000/07f94249b0a5f6d565fb20d88b73bb91
Was this helpful to you? 1
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17425 solutions 157456 answers

Actually the Firefox 66+ script is working in Firefox 52 (and 45) as well as it uses a basic Promise.

The script for 57-65 uses Task.jsm and support for this file was removed in 66+.

Actually the Firefox 66+ script is working in Firefox 52 (and 45) as well as it uses a basic Promise. *https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise *https://gist.github.com/jscher2000/4403507e33df0918289619edb83f8193 The script for 57-65 uses Task.jsm and support for this file was removed in 66+.
Was this helpful to you?
Quote

Question owner

I don't know how to use those decompression scripts, but I tried the utility again and this is what I got.

I don't know how to use those decompression scripts, but I tried the utility again and this is what I got.
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8643 solutions 70721 answers

Hi Osiris3.0, thank you for the screenshot.

The file shows there is a crash recovery screen (about:sessionrestore) and the real list of windows and tabs is under "formdata". I didn't include any code in the current Scrounger to read out the formdata of a crash recovery screen. I will need to update my page.

For now, though, could you try the older version? It is less concerned with the precise structure of the JSON file: https://www.jeffersonscher.com/ffu/scrounger_20180826.html

If that doesn't see everything, perhaps we can pop out the formdata into its own file. However, I need to work with a small example to understand how to do it so I'll have to get back to you on that.

Hi Osiris3.0, thank you for the screenshot. The file shows there is a crash recovery screen (about:sessionrestore) and the ''real'' list of windows and tabs is under "formdata". I didn't include any code in the current Scrounger to read out the formdata of a crash recovery screen. I will need to update my page. For now, though, could you try the older version? It is less concerned with the precise structure of the JSON file: https://www.jeffersonscher.com/ffu/scrounger_20180826.html If that doesn't see everything, perhaps we can pop out the formdata into its own file. However, I need to work with a small example to understand how to do it so I'll have to get back to you on that.
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8643 solutions 70721 answers

Hi Osiris3.0, have you tried using that file for recovery? Since it is decompressed, Firefox will expect it to be named sessionstore.js instead of sessionstore.jsonlz4.

To try swapping in an older session history file so Firefox will load it, the "manual swap" method is as follows (assuming Firefox is still running):

(1) From inside Firefox, open your current Firefox settings (AKA Firefox profile) folder using either

  • "3-bar" menu button > "?" Help > Troubleshooting Information
  • (menu bar) Help > Troubleshooting Information
  • type or paste about:support in the address bar and press Enter/Return

In the first table on the page, click the "Open Folder" button. This should launch a Windows Explorer window listing the various files and folders in your profile.

(2) Leaving that window open, switch back to Firefox and Exit, either:

  • "3-bar" menu button > "power" button Exit
  • (menu bar) File > Exit

Pause while Firefox finishes its cleanup -- a file named sessionstore.jsonlz4 should appear in the folder.

(3) Once Firefox has stopped updating things, while viewing the main level of the profile folder, right-click > Rename sessionstore.jsonlz4 to sessionstoreOLD.jsonlz4

If you see an older sessionstore.js or sessionstore.bak file, move it somewhere else or delete it.

(4) Double-click into the sessionstore-backups folder

(5) Copy in the file you want to restore, and rename it with the name appropriate for its format:

  • Compressed file such as previous.jsonlz4 => recovery.jsonlz4
  • Uncompressed file such as sessionstore(recovery_jsonlz4).json => recovery.js

(6) Start Firefox and it should read the swapped in recovery file and restore whatever was in the substitute file; if you do not have Firefox set to restore your previous windows and tabs automatically, use History > Restore Previous Session

In this case, you'll also need to use the blue Restore Session button (see attached example).

Any luck?

Hi Osiris3.0, have you tried using that file for recovery? Since it is decompressed, Firefox will expect it to be named sessionstore.js instead of sessionstore.jsonlz4. To try swapping in an older session history file so Firefox will load it, the "manual swap" method is as follows (assuming Firefox is still running): (1) From inside Firefox, open your current Firefox settings (AKA Firefox profile) folder using either * "3-bar" menu button > "?" Help > Troubleshooting Information * (menu bar) Help > Troubleshooting Information * type or paste '''about:support''' in the address bar and press Enter/Return In the first table on the page, click the "Open Folder" button. This should launch a Windows Explorer window listing the various files and folders in your profile. (2) Leaving that window open, switch back to Firefox and Exit, either: * "3-bar" menu button > "power" button Exit * (menu bar) File > Exit Pause while Firefox finishes its cleanup -- a file named sessionstore.jsonlz4 should appear in the folder. (3) Once Firefox has stopped updating things, while viewing the main level of the profile folder, right-click > Rename sessionstore.jsonlz4 to sessionstoreOLD.jsonlz4 ''If you see an older sessionstore.js or sessionstore.bak file, move it somewhere else or delete it.'' (4) Double-click into the sessionstore-backups folder (5) Copy in the file you want to restore, and rename it with the name appropriate for its format: * Compressed file such as previous.jsonlz4 => recovery.jsonlz4 * Uncompressed file such as sessionstore(recovery_jsonlz4).json => recovery.js (6) Start Firefox and it should read the swapped in recovery file and restore whatever was in the substitute file; if you do not have Firefox set to restore your previous windows and tabs automatically, use History > Restore Previous Session In this case, you'll also need to use the blue Restore Session button (see attached example). Any luck?
Was this helpful to you?
Quote

Question owner

No luck, but I loaded the recovery and previous files into the utility you linked to in your last post and links came up this time, so I guess this might be as close to a recovery as i'm going to get.Unless there's something else to try thanx for your help.

No luck, but I loaded the recovery and previous files into the utility you linked to in your last post and links came up this time, so I guess this might be as close to a recovery as i'm going to get.Unless there's something else to try thanx for your help.
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.