X
Nhấn vào đây để đến phiên bản di động của trang web.

Diễn đàn trợ giúp

Restore session does not work properly - get a previous session from hours or days ago

Được đăng

This issue has been happening for years, through several upgrades. Finally tired and frustrated enough to write about it now.

I'll close down Firefox, and when I re-open it, it gives me a window and tab scheme from hours (or days, or weeks) ago, not the most recent one that was just shut down. In other words, I'll have shut down certain tabs hours (or days) before, but they reappear when I restart Firefox, and the ones that actually were open, are nowhere to be found. It's like Firefox takes a snapshot whenever it feels like it, but not when I am shutting it down.

What I've had to do to get Firefox to open up from the last section *exactly* how I left it last is go into Windows 7 Process Manager and shut down Firefox from there. Then, when I restart Firefox, it gives me the "Oops, shut down last time didn't go so well..." apology, but at least when I click through, it opens up my desktop exactly how I left it previously.

It seems pretty stupid that I have to do this, so I am hoping someone can enlighten me as to what I am doing wrong.

This issue has been happening for years, through several upgrades. Finally tired and frustrated enough to write about it now. I'll close down Firefox, and when I re-open it, it gives me a window and tab scheme from hours (or days, or weeks) ago, not the most recent one that was just shut down. In other words, I'll have shut down certain tabs hours (or days) before, but they reappear when I restart Firefox, and the ones that actually were open, are nowhere to be found. It's like Firefox takes a snapshot whenever it feels like it, but not when I am shutting it down. What I've had to do to get Firefox to open up from the last section *exactly* how I left it last is go into Windows 7 Process Manager and shut down Firefox from there. Then, when I restart Firefox, it gives me the "Oops, shut down last time didn't go so well..." apology, but at least when I click through, it opens up my desktop exactly how I left it previously. It seems pretty stupid that I have to do this, so I am hoping someone can enlighten me as to what I am doing wrong.

Chi tiết hệ thống bổ sung

Phần bổ trợ đã cài đặt

  • Shockwave Flash 28.0 r0

Ứng dụng

  • Firefox 52.9.0
  • Chuỗi đại diện người dùng: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0
  • URL hỗ trợ: https://support.mozilla.org/1/firefox/52.9.0/WINNT/en-US/

Tiện ích mở rộng

  • Application Update Service Helper 2.0 (aushelper@mozilla.org)
  • Classic Theme Restorer 1.7.7.2 (ClassicThemeRestorer@ArisT2Noia4dev)
  • Exif Viewer 3.7.5 (exif_viewer@mozilla.doslash.org)
  • FireFTP 2.0.31 ({a7c6cf7f-112c-4500-a7ea-39801a327e5f})
  • Mozilla Archive Format 5.2.1 ({7f57cf46-4467-4c2d-adfa-0cba7c507e54})
  • Multi-process staged rollout 1.10 (e10srollout@mozilla.org)
  • Pocket 1.0.5 (firefox@getpocket.com)
  • Print Preview Button 0.5.1-signed.1-signed (mail@sindre.at)
  • Status-4-Evar 2017.08.20.15 (status4evar@caligonstudios.com)
  • Stop AutoPlay Next for YouTube™ 0.1.7 (jid1-nbzaq9ol2hyY64gGe@jetpack)
  • SuperStop 0.3 (superstop@gavinsharp.com)
  • Switch to Tab no more 0.3.1 ({7edcdfc0-3056-11e0-91fa-0800200c9a66})
  • Tab Mix Plus 0.5.0.4 ({dc572301-7619-498c-a57d-39143191b318})
  • Thumbnail Zoom Plus 4.2 (thumbnailZoom@dadler.github.com)
  • uBlock Origin 1.16.16 (uBlock0@raymondhill.net)
  • User Agent Switcher 1.1.2 (user-agent-switcher@ninetailed.ninja)
  • Video DownloadHelper 7.2.2 ({b9db16a4-6edc-47ec-a1f4-b86292ed211d})
  • Web Compat 1.0 (webcompat@mozilla.org)
  • YouTube High Definition 63.1.5 ({7b1bf0b6-a1b9-42b0-b75d-252036438bdc})
  • Zoom Page 15.8 (zoompage@DW-dev)
  • Adblock Plus 3.2 ({d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}) (không hoạt động)
  • Firefox Lightbeam 2.1.0 (jid1-F9UJ2thwoAm5gQ@jetpack) (không hoạt động)
  • Flashblock 1.5.20 ({3d7eb24f-2740-49df-8937-200b1cc08f8a}) (không hoạt động)
  • RememberPass 1.1.2.1-signed.1-signed (rememberpass@teesoft.info) (không hoạt động)
  • Self-Destructing Cookies 0.4.12 (jid0-9XfBwUWnvPx4wWsfBWMCm4Jj69E@jetpack) (không hoạt động)
  • Zoom toolbar 1.1.1-signed.1-signed ({FBFB7597-9E32-46b4-A500-8B6B0412777F}) (không hoạt động)

Javascript

  • incrementalGCEnabled: True

Đồ họa

  • adapterDescription: NVIDIA GeForce GTX 950
  • adapterDescription2:
  • adapterDeviceID: 0x1402
  • adapterDeviceID2:
  • adapterDrivers: nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
  • adapterDrivers2:
  • adapterRAM: 2048
  • adapterRAM2:
  • adapterSubsysID: 00000000
  • adapterSubsysID2:
  • adapterVendorID: 0x10de
  • adapterVendorID2:
  • clearTypeParameters: Gamma: 2.2 Pixel Structure: BGR ClearType Level: 0 Enhanced Contrast: 50
  • crashGuards: []
  • currentAudioBackend: wasapi
  • direct2DEnabled: True
  • directWriteEnabled: True
  • directWriteVersion: 6.2.9200.22164
  • driverDate: 3-23-2018
  • driverDate2:
  • driverVersion: 23.21.13.9135
  • driverVersion2:
  • featureLog: {u'fallbacks': [], u'features': [{u'status': u'available', u'description': u'Compositing', u'log': [{u'status': u'available', u'type': u'default'}], u'name': u'HW_COMPOSITING'}, {u'status': u'available', u'description': u'Direct3D11 Compositing', u'log': [{u'status': u'available', u'type': u'default'}], u'name': u'D3D11_COMPOSITING'}, {u'status': u'disabled', u'description': u'Direct3D9 Compositing', u'log': [{u'status': u'disabled', u'message': u'Disabled by default', u'type': u'default'}], u'name': u'D3D9_COMPOSITING'}, {u'status': u'available', u'description': u'Direct2D', u'log': [{u'status': u'available', u'type': u'default'}], u'name': u'DIRECT2D'}, {u'status': u'available', u'description': u'Direct3D11 hardware ANGLE', u'log': [{u'status': u'available', u'type': u'default'}], u'name': u'D3D11_HW_ANGLE'}]}
  • info: {u'AzureCanvasAccelerated': 0, u'AzureCanvasBackend': u'direct2d 1.1', u'AzureFallbackCanvasBackend': u'cairo', u'AzureContentBackend': u'direct2d 1.1'}
  • isGPU2Active: False
  • numAcceleratedWindows: 2
  • numTotalWindows: 2
  • supportsHardwareH264: Yes; Using D3D9 API
  • webgl2Renderer: Google Inc. -- ANGLE (NVIDIA GeForce GTX 950 Direct3D11 vs_5_0 ps_5_0)
  • webglRenderer: Google Inc. -- ANGLE (NVIDIA GeForce GTX 950 Direct3D11 vs_5_0 ps_5_0)
  • windowLayerManagerRemote: True
  • windowLayerManagerType: Direct3D 11

Thay đổi cài đặt

Linh tinh

  • Người dùng JS: Không
  • Có thể tiếp cận: Không
FredMcD
  • Top 10 Contributor
4270 giải pháp 59898 câu trả lời
Được đăng

You may have corrupt sessionstore [v56] sessionstore.jsonlz4 file(s). Delete all sessionstore* files and the sessionstore-backups folder.

Type about:support<enter> in the address bar.

Under the page logo on the left side, you will see Application Basics. Under this find Profile Folder. To its right press the button Show Folder. This will open your file browser to the current Firefox profile. Now Close Firefox.

Linux: Under the page logo on the left side, you will see Application Basics. Under this find Profile Directory. To its right press the button Open Directory.

Locate the above file. Then rename or delete it. Restart Firefox.


Don't delete the files if you need to rescue any data from them, just move them out of the profile folder to some location where Firefox doesn't look for them. You can try to read out their contents using this tool: https://www.jeffersonscher.com/res/scrounger.html

You may have corrupt '''sessionstore''' [v56] '''sessionstore.jsonlz4''' file(s). Delete all '''sessionstore*''' files and the '''sessionstore-backups''' folder. Type '''about:support'''<enter> in the address bar. Under the page logo on the left side, you will see '''Application Basics. ''' Under this find '''Profile Folder. ''' To its right press the button '''Show Folder. ''' This will open your file browser to the current Firefox profile. Now '''Close Firefox. ''' '''Linux: ''' Under the page logo on the left side, you will see '''Application Basics.''' Under this find '''Profile Directory. ''' To its right press the button '''Open Directory. ''' Locate the above file. Then rename or delete it. Restart Firefox. '''Don't delete the files''' if you need to rescue any data from them, just move them out of the profile folder to some location where Firefox doesn't look for them. You can try to read out their contents using this tool: https://www.jeffersonscher.com/res/scrounger.html
FredMcD
  • Top 10 Contributor
4270 giải pháp 59898 câu trả lời
Được đăng

Separate Security Issue: Update your Flash Player or remove it using these links; http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html Uninstall Flash Player | Windows http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-mac-os.html Uninstall Flash Player | Mac

Note: Windows users should download the ActiveX for Internet Explorer. and the plugin for Plugin-based browsers (like Firefox).

Note: Windows 8 and Windows 10 have built-in flash players and Adobe will cause a conflict. Install the plugin only. Not the ActiveX.

Flash Player Version: Version 30.0.0.134

https://get.adobe.com/flashplayer/ Direct link scans current system and browser Note: Other software is offered in the download. <Windows Only>

https://get.adobe.com/flashplayer/otherversions/ Step 1: Select Operating System Step 2: Select A Version (Firefox, Win IE . . . .) Note: Other software is offered in the download. <Windows Only> +++++++++++++++++++ See if there are updates for your graphics drivers https://support.mozilla.org/en-US/kb/upgrade-graphics-drivers-use-hardware-acceleration

'''Separate Security Issue:''' Update your Flash Player or remove it using these links; http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html Uninstall Flash Player | Windows http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-mac-os.html Uninstall Flash Player | Mac '''Note: Windows users''' should download the '''ActiveX''' for ''Internet Explorer.'' '''and''' the '''plugin''' for ''Plugin-based browsers'' (like Firefox). '''Note: Windows 8 and Windows 10''' have built-in flash players and Adobe will cause a conflict. Install the plugin only. Not the ActiveX. Flash Player Version: '''Version 30.0.0.134 ''' https://get.adobe.com/flashplayer/ Direct link scans current system and browser '''Note: Other software''' is offered in the download. <Windows Only> https://get.adobe.com/flashplayer/otherversions/ Step 1: Select Operating System Step 2: Select A Version (Firefox, Win IE . . . .) '''Note: Other software''' is offered in the download. <Windows Only> +++++++++++++++++++ See if there are updates for your graphics drivers https://support.mozilla.org/en-US/kb/upgrade-graphics-drivers-use-hardware-acceleration
jscher2000
  • Top 10 Contributor
8793 giải pháp 71933 câu trả lời
Được đăng

Thank you for the interesting details:

rorge_retson said

What I've had to do to get Firefox to open up from the last section *exactly* how I left it last is go into Windows 7 Process Manager and shut down Firefox from there. Then, when I restart Firefox, it gives me the "Oops, shut down last time didn't go so well..." apology, but at least when I click through, it opens up my desktop exactly how I left it previously.

So Firefox is properly creating and maintaining session history files as you go (e.g., [profile]\sessionstore-backups\recovery.js), but when you shut down (normally), something goes wrong with creating the new [profile]\sessionstore.js file. Or something else tampers with the file. Either way, Firefox may go looking for a different session history file such as [profile]\sessionstore-backups\previous.js to restore your session.

Let's see if we can track down what's happening and why.


First, do you have Firefox set to bypass automatic crash recovery and display the Oops screen after any crash? That setting lives here:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste sess and pause while the list is filtered

(3) The browser.sessionstore.max_resumed_crashes preference determines this behavior:

  • 1 = try automatic restoration once, the default setting
  • 0 = go straight to the Oops screen

Second, do you use CCleaner or other utility programs to clear browser data?

When Firefox 56 came out, CCleaner users encountered a similar problem because the feature of cleaning up browser data would selectively delete files based on the older naming scheme. That was updated by November 2017 for compatibility with newer versions of Firefox, but I don't know what the status of compatibility is with pre-55 versions of Firefox.

If you use CCleaner or other cleaning programs, turn off the feature of clearing browser data as a test.

Thank you for the interesting details: ''rorge_retson [[#question-1230018|said]]'' <blockquote> What I've had to do to get Firefox to open up from the last section *exactly* how I left it last is go into Windows 7 Process Manager and shut down Firefox from there. Then, when I restart Firefox, it gives me the "Oops, shut down last time didn't go so well..." apology, but at least when I click through, it opens up my desktop exactly how I left it previously. </blockquote> So Firefox is properly creating and maintaining session history files as you go (e.g., '''[profile]\sessionstore-backups\recovery.js'''), but when you shut down (normally), something goes wrong with creating the new '''[profile]\sessionstore.js''' file. Or something else tampers with the file. Either way, Firefox may go looking for a different session history file such as '''[profile]\sessionstore-backups\previous.js''' to restore your session. Let's see if we can track down what's happening and why. ---- First, do you have Firefox set to bypass automatic crash recovery and display the Oops screen after any crash? That setting lives here: (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk. (2) In the search box above the list, type or paste '''sess''' and pause while the list is filtered (3) The '''browser.sessionstore.max_resumed_crashes''' preference determines this behavior: * '''1''' = try automatic restoration once, the default setting * '''0''' = go straight to the Oops screen ---- Second, do you use CCleaner or other utility programs to clear browser data? When Firefox 56 came out, CCleaner users encountered a similar problem because the feature of cleaning up browser data would selectively delete files based on the older naming scheme. That was updated by November 2017 for compatibility with newer versions of Firefox, but I don't know what the status of compatibility is with pre-55 versions of Firefox. If you use CCleaner or other cleaning programs, turn off the feature of clearing browser data as a test.
jscher2000
  • Top 10 Contributor
8793 giải pháp 71933 câu trả lời
Được đăng

You might already be familiar with the sessionstore-backups folder but, if not:

Accessing The Folder

You can 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

In the first table on the page, click the "Open Folder" (or "Show Folder") button.

In your profile folder, double-click into the sessionstore-backups folder. We recommend saving all files here to a safe location such as your Documents folder before making drastic changes.

Folder Contents

The kinds of files you may find among your sessionstore files are:

Firefox 56+

  • recovery.jsonlz4: the windows and tabs in your currently live Firefox session (or, if Firefox crashed at the last shutdown and is still closed, your last session)
  • recovery.baklz4: previous recovery.jsonlz4 (lags by 15+ seconds)
  • previous.jsonlz4: the windows and tabs in your last Firefox session
  • upgrade.jsonlz4-build_id: the windows and tabs in the Firefox session that was live at the time of your last update
  • various .js files from Firefox 55 or earlier

Firefox 55 and earlier

  • recovery.js: the windows and tabs in your currently live Firefox session (or, if Firefox crashed at the last shutdown and is still closed, your last session)
  • recovery.bak: previous recovery.js (lags by 15+ seconds)
  • previous.js: the windows and tabs in your last Firefox session
  • upgrade.js-build_id: the windows and tabs in the Firefox session that was live at the time of your last update

If you find files like recovery-1.js, etc., it indicates Firefox wasn't able to use the correct file name -- the file might be locked or Firefox might not have privileges -- and was forced to create a new file, but it will lose track of that file later.

Do you see anything unusual?

You might already be familiar with the '''sessionstore-backups''' folder but, if not: '''''Accessing The Folder''''' You can 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 In the first table on the page, click the "Open Folder" (or "Show Folder") button. In your profile folder, double-click into the '''sessionstore-backups''' folder. We recommend saving all files here to a safe location such as your Documents folder before making drastic changes. '''''Folder Contents''''' The kinds of files you may find among your sessionstore files are: ''Firefox 56+'' * recovery.jsonlz4: the windows and tabs in your currently live Firefox session (or, if Firefox crashed at the last shutdown and is still closed, your last session) * recovery.baklz4: previous recovery.jsonlz4 (lags by 15+ seconds) * previous.jsonlz4: the windows and tabs in your last Firefox session * upgrade.jsonlz4-''build_id'': the windows and tabs in the Firefox session that was live at the time of your last update * various .js files from Firefox 55 or earlier ''Firefox 55 and earlier'' * recovery.js: the windows and tabs in your currently live Firefox session (or, if Firefox crashed at the last shutdown and is still closed, your last session) * recovery.bak: previous recovery.js (lags by 15+ seconds) * previous.js: the windows and tabs in your last Firefox session * upgrade.js-''build_id'': the windows and tabs in the Firefox session that was live at the time of your last update If you find files like recovery-1.js, etc., it indicates Firefox wasn't able to use the correct file name -- the file might be locked or Firefox might not have privileges -- and was forced to create a new file, but it will lose track of that file later. Do you see anything unusual?
cor-el
  • Top 10 Contributor
  • Moderator
17578 giải pháp 159013 câu trả lời
Được đăng

I was thinking that Firefox might restore an upgrade file.

You can try to rename the sessionstore-backups folder (sessionstore-backupsOLD) as a quick test.

I was thinking that Firefox might restore an upgrade file. You can try to rename the sessionstore-backups folder (sessionstore-backupsOLD) as a quick test.