Comment 25 for bug 226878

Revision history for this message
Mike Trim (miketrim) wrote :

I am experiencing what appears to be this bug with 3.0.11+build2+nobinonly-0ubuntu0.9.04.1 on jaunty. Often (not always) when opening links, switching tabs or scrolling Firefox locks up and uses 100% of one core for several seconds. This may be exacerbated by me having approximately 50 tabs open at the moment.

After these freezes occur, an error is output on the error console, which says "too much recursion", and references line 1909 of nsSessionStore.js:

  saveState: function sss_saveState(aUpdateAll) {
    // if crash recovery is disabled, only save session resuming information
    if (!this._resume_from_crash && this._loadState == STATE_RUNNING)
      return;

    this._dirty = aUpdateAll;
    var oState = this._getCurrentState();
    oState.session = { state: ((this._loadState == STATE_RUNNING) ? STATE_RUNNING_STR : STATE_STOPPED_STR) };
>>> this._writeFile(this._sessionFile, oState.toSource());
    this._lastSaveTime = Date.now();
  },

Sometimes I instead/also get the following message, which references the same line:
Error: [Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: file:///usr/lib/firefox-3.0.11/components/nsSessionStore.js :: sss_saveState :: line 1909" data: no]
Source File: file:///usr/lib/firefox-3.0.11/components/nsSessionStore.js
Line: 1909