Closed Bug 467248 Opened 16 years ago Closed 15 years ago

SessionStore: The session file is invalid: TypeError: this._initialState.windows[0] is undefined

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 495123

People

(Reporter: antopando, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; it; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; it; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4

non compare la pagina iniziale.
appare una pagina vuota.
il difetto è comparso dopo l'ultimo aggiornamento effettuato.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
I am having the exact same problem in Windows Vista.  I reinstalled Firefox 3.0.7 making sure Norton 360 was turned off but the problem remains.
See also bug 494917.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows Vista → All
I'm able to reproduce this every time on trunk and 3.5.2
1) create a clean profile
2) set firefox to restore windows and tabs
3) open about:config and set browser.tabs.closeWindowWithLastTab to false
4) close about:config tab
5) close firefox
6) open firefox again, error console is showing the error and "undo close tab" is empty

I can reproduce this with any "empty" session (just undo close tabs)
Strangely, this doesn't happen if you restart Firefox using a "restart" button (extension enable/disable, update).
Apparently the problem occurs at when saving "sessionstore.js" on shutdown, but it is reflected by this error on startup.
HTH.
One more thing, if you manage to save your last "sessionstore.js" before shutdown, you'll see that it has all the correct data, but after shutdown it's replaced with this strange 112 byte file.
({"windows":[],"selectedWindow":0,"_closedWindows":[],"session":{"state":"stopped","lastUpdate":1253547469036}})
So after looking at this a bit more, this is the same as bug 516605 and bug 500315, which are all dupes of bug 495123 (it's the same root cause).

Pablo, thanks for looking into this on IRC
Status: NEW → RESOLVED
Closed: 15 years ago
OS: All → Windows XP
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.